Summary of the invention
The object of the present invention is to provide a kind of literal input frame and data processing method thereof; Solve the problem that there is function singleness in current input frame control; The demand that the input frame of can satisfying the demand simultaneously rotation, input frame stretch, input frame increases functions such as Background, input frame translucent effect makes the literal input frame increase new function: can be implemented in satisfy the demand the simultaneously demand of functions such as input frame rotation, input frame stretching, input frame translucent effect of a literal input frame.
Technical scheme of the present invention is following:
A kind of literal input frame comprises an input frame control, and wherein, this input frame control comprises a plurality of functional modules with independent dynamic base; Each said dynamic base definition has interface, and said functional module with independent dynamic base is associated with said literal input frame control through said interface, on said literal input frame control, to load said dynamic base arbitrarily according to demand.
Described literal input frame, wherein, said a plurality of functional modules with independent dynamic base comprise with two in the lower module at least:
The rotary module that is used for the rotate type input frame;
The stretching module of literal input frame is used to stretch;
Be used for literal input frame background is carried out the background pinup picture module of pinup picture operation;
Be used for the literal input frame is provided with the translucent module of translucent;
Be used for the literal input frame is not had the no handle module of handleization.
Described literal input frame, wherein,
Said a plurality of functional module with independent dynamic base is the dynamic library file of suffix dll by name.
The data processing method of said literal input frame wherein, comprises step:
A, reception input data;
B, obtain the drawing board information that editor's input frame is drawn in corresponding being used to according to the input data;
C, said input data had the functional module of independent dynamic base through each successively by the order that sets arbitrarily, to accomplish data processing.
The data processing method of said literal input frame, wherein, said step C also comprises:
When handling the input data; Loaded the dynamic base of no handle module in advance when said literal input frame control; Importing data so will handle through the one or more modules in rotary module, stretching module, background pinup picture module, the translucent module earlier through the processing of no handle module again.
The data processing method of said literal input frame, wherein, when realizing the data processing of input frame background pinup picture function, said step C also comprises:
C1, be that said literal input frame adds background card figure according to said drawing board information.
The data processing method of said literal input frame, wherein, said drawing board is the memory block that is used to draw editor's input frame, the data in the said memory block will be input in the video card, show then.
The data processing method of said literal input frame wherein, also comprises after said step C: show said literal input frame.
The invention provides a kind of literal input frame and data processing method thereof; The Function Decomposition of input frame control is become a plurality of independent functional modules; Comprise rotary module; Stretching module; Background pinup picture module; Translucent module and do not have the handle module; Realized the input frame of multiple function one integrated; The user is as long as the different equipment of simple configuration connects the combination that switch just can be realized function; Reduced dependence to system resource; Just can realize the input frame pinup picture through simple configuration pinup picture engine simultaneously; Do not control and do not need to write again code, simplified the complexity of user's input, reduced cost.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, clear and definite; Develop simultaneously embodiment to further explain of the present invention below in conjunction with accompanying drawing; Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention provides a kind of literal input frame, comprises an input frame control 20, and as shown in Figure 2, said input frame control comprises a plurality of functional modules with independent dynamic base, and said a plurality of functional modules with independent dynamic base comprise with lower module:
The rotary module 21 that is used for the rotate type input frame;
The stretching module 23 of literal input frame is used to stretch;
Be used for literal input frame background is carried out the background pinup picture module 25 of pinup picture operation;
Be used for the literal input frame is provided with the translucent module 22 of translucent;
Be used for the literal input frame is not had the no handle module 24 of handleization.
These independent functional modules are essentially each independent dynamic base (file of suffix dll by name; Certainly be not limited to the .dll file; Can for the technical staff according to self needs or like self-defining dynamic base suffix name); Dynamic base can not be applied directly in the input frame; But need be these dynamic base defining interfaces; Defining interface is associated with the input frame control; Like this; Just can on the input frame control, load the dynamic base that designs arbitrarily according to demand; As long as the simple configuration different functional is connected with the input frame control, can realize the combination of difference in functionality.For example can in a literal input frame, use the two or more functional modules in above-mentioned each functional module simultaneously, to realize the combination of difference in functionality.
Fig. 3 is the connection process flow diagram of each functional module of one embodiment of the invention; At first receive the input data; The input data do not have the handle processing through no handle module earlier; Through background pinup picture module the background of input frame is carried out the pinup picture operation again; Import data afterwards and handle through translucent module, rotary module and stretching module successively, but realize no handleization background pinup picture, translucent, rotatable, stretchable multi-functional input frame.
In the described process flow diagram of Fig. 3, except no handle module, the order of other functional modules (being other dynamic base) can be exchanged arbitrarily, that is to say, the input data can be by the order that sets arbitrarily through each functional module; If, import the necessary first processing of data so, and then pass through the processing of other functional modules through no handle module such as the dynamic base that the technician has loaded no handle module.
Handle is meant the address of operating system for the memory source index of the other distribution of UI (abbreviation of User Interface user interface) demonstration.A handle is meant a unique round values of use; The numerical value that nybble is long; Different instance in the different objects that are used for the signage applications program and the homogeneous object, such as, a window; Button; Icon, scroll bar, output device; Control or file etc., application program can be visited the information of corresponding object through handle.But handle is not a pointer, and program can not utilize its handle to come the information in the direct reading file.If handle not be used in the I/O file, it is no-good.
And there is not handleization is the technology of a kind of multiplexing other window handle as the demonstration resource of oneself.For example: for display window A, system need be that A distributes and show resource, and if this time display window B again.Can adopt dual mode to realize in this case: first kind, the window handle of reallocating shows B; Second kind, we draw a B window on window A, and the logic of simulation B window.
Usually, no handle module is forced to be integrated into the editing machine the inside, promptly in advance no handle module loading has been advanced in the editing machine.
Based on above-mentioned literal input frame, the present invention also provides a kind of data processing method of literal input frame, and as shown in Figure 4, key step is following:
S11, reception input data;
S12, obtain the drawing board information that editor's input frame is drawn in corresponding being used to according to the input data;
S13, said input data had the functional module of independent dynamic base through each successively by the order that sets arbitrarily, on said literal input frame, to load arbitrarily said dynamic base according to demand;
S14, the said literal input frame of demonstration promptly show editing area.
When handling the input data; Loaded the dynamic base of no handle module in advance when said literal input frame control; Importing data so will handle through the one or more modules in rotary module, stretching module, background pinup picture module, the translucent module earlier through the processing of no handle module again.Be in the present embodiment, loaded certain dynamic base, then this literal input frame has possessed certain function, loads in advance, does not just load when being deal with data; The user is when using these functions, and data can be passed through this functional module.
Preferably, the present invention is provided with background pinup picture module, and through the setting of this module, the simple configuration pinup picture engine that the user can pass through is realized the input frame pinup picture, does not control and do not need to write again code, and as shown in Figure 5, concrete flow chart of data processing is following:
S21, reception input data;
S22, obtain the drawing board information that editor's input frame is drawn in corresponding being used to according to the input data;
Particularly, this drawing board is the memory block that is used to draw editor's input frame, and the data in this memory block will be input in the video card, show then;
S23, be that said literal input frame adds background card figure according to said drawing board information; Need to prove; If loaded other dynamic base, so with this drawing board information functional module successively, such as the dynamic base that has loaded rotary module through loading; So again the drawing board information of having added Background is added rotation parameter, said input frame is rotated or the like;
S24, the said literal input frame of demonstration promptly show editing area.
Certainly, the user can also define socket identification access standard simultaneously through on common input frame basis, increasing a function device expansion mouthful management equipment, and adaptive this insertion standard of external unit is to realize corresponding function device.At last, in the time of some specific function of needs, the literal input frame equipment of function is plugged the combination that just can realize difference in functionality.
In sum; A kind of literal input frame provided by the invention and data processing method thereof; Overcome the problem that there is function singleness in current input frame control; The Function Decomposition of input frame control is become a plurality of independent functional modules; Comprise rotary module; Stretching module; Background pinup picture module; Translucent module and do not have the handle module; Realized the input frame of multiple function one integrated; The user is as long as the different equipment of simple configuration connects the combination that switch just can be realized function; Reduced dependence to system resource; Just can realize the input frame pinup picture through simple configuration pinup picture engine simultaneously; Do not control and do not need to write again code, simplified the complexity of user's input, reduced cost.
The above; Only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.