Summary of the invention
The object of the invention is to exist in prior art, the problem that two the button spacing arranged in the menu bar left and right sides at top, handheld terminal operating system figure interface are longer, provides a kind of method generating handheld terminal operating system figure interface, comprising:
Obtain the coordinate parameters of Background From Layer and the coordinate parameters of the first button be positioned on menu bar and the second button of menu bar, the wherein absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the first button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the vertical direction the second boundary of Background From Layer, the absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the second button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the vertical direction the second boundary of Background From Layer,
According to the menu bar at the coordinate parameters of the Background From Layer of menu bar and the coordinate parameters synthetic image interface of the first button be arranged on menu bar and the second button and two buttons being positioned on menu bar.
Further, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer, is less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer.
Further, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer, is less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer.
Further, the response events that switching push button produces is received;
According to the response events that button produces, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
Further, be provided with the sensor producing and switch instruction in the non-screen region of handheld terminal, also comprise:
The switching instruction that receiving sensor produces;
According to the switching instruction that sensor produces, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
The embodiment of the present invention also provides a kind of terminal generating handheld terminal operating system figure interface, comprising:
Acquisition module, for the coordinate parameters of the coordinate parameters and the first button be positioned on menu bar and the second button that obtain the Background From Layer of menu bar, the wherein absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the first button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the vertical direction the second boundary of Background From Layer, the absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the second button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the vertical direction the second boundary of Background From Layer,
Generation module, the menu bar for the coordinate parameters of the Background From Layer according to menu bar and the coordinate parameters synthetic image interface of the first button be arranged on menu bar and the second button and two buttons be positioned on menu bar.
Further, acquisition module, specifically for obtaining the coordinate parameters of Background From Layer and the coordinate parameters of the first button be positioned on menu bar and the second button of menu bar, the wherein absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer.
Further, acquisition module, specifically for obtaining the coordinate parameters of Background From Layer and the coordinate parameters of the first button be positioned on menu bar and the second button of menu bar, the wherein absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer.
Further, also comprise:
Receiver module, for receiving the response events that switching push button produces;
Acquisition module, specifically for the response events produced according to button, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
Further, be provided with sensor, sensor in described terminal non-screen region, for generation of switching instruction;
Acquisition module, specifically for the switching instruction produced according to sensor, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
Owing to making two buttons near the side, left and right of menu bar according to the setting of X-coordinate parameter, thus shorten the spacing of two buttons.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention will be described, exist to solve in prior art, the problem that two the button spacing arranged in the menu bar left and right sides at top, handheld terminal operating system figure interface are longer, first embodiment of the invention is a kind of method generating handheld terminal operating system figure interface, the method can be applied to i Phone and the ipad handheld terminal of each model, such as iphone, iphone3G, iphone3GS, iphone4, ipod touch, ipodtouch4, this comprises as shown in Figure 2:
Step 101, the coordinate parameters of Background From Layer obtaining menu bar and the coordinate parameters of " note " button be positioned on menu bar and the Edit button.
In this step, menu bar is that rectangle is in units of pixel, the coordinate parameters of four drift angles of its Background From Layer, be respectively the upper left corner (0, 0), the lower left corner (0, 60), the upper right corner (320, 0), the lower right corner (320, 60), only top left co-ordinate (0 need be obtained when the coordinate parameters of the Background From Layer of acquisition menu bar, 0), " note " button on menu bar and the coordinate parameters of the Edit button are also the coordinates using the coordinate on the summit, the left side of each button as button, the coordinate of " note " button obtained is (250, 10), the coordinate parameters of the Edit button is (300, 15), the absolute value of the difference of the X-coordinate parameter of the right margin of " note " button and Background From Layer is 70, be less than the absolute value 250 of the difference of the X-coordinate parameter of the left margin of " note " button and Background From Layer.The absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the Edit button and the right margin of Background From Layer is 20, is less than the absolute value 300 of the difference of the X-coordinate parameter of the left margin of the Edit button and Background From Layer.Like this, the spacing of the coordinate of " note " button and the Edit button is nearer.
The coordinate of " note " button of certain acquisition can also be (10,10), the coordinate parameters of the Edit button is can (60,15), the absolute value of the difference of the X-coordinate parameter of the left margin of " note " button and Background From Layer is 10, is less than the absolute value 310 of the difference of the X-coordinate parameter of the right margin of " note " button and Background From Layer.The absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the Edit button and the left margin of Background From Layer is 60, is less than the absolute value 260 of the difference of the X-coordinate parameter of the right margin of the Edit button and Background From Layer.The spacing of the coordinate of " note " button and the Edit button is nearer equally.
As can be seen from embodiment above, the absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of two buttons and a left side (or right) border of Background From Layer, is all less than the absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of two buttons and the right side (left side) border of Background From Layer.
Step 102, according to the coordinate parameters of the Background From Layer of menu bar and the coordinate parameters of " note " button and the Edit button, the menu bar in synthetic image interface and two buttons be positioned on menu bar.
In order to reach user can in main separation MAC operating system figure interface the object of " note " button and the Edit button position, MAC operating system figure interface can also be arranged a switching push button, after user clicks switching push button, switching push button produces a response events, after the response events receiving switching push button generation, according to the response events that button produces, select from the coordinate parameters set representing " note " button, this coordinate parameters set comprises the coordinate parameters (10 that expression " note " button is positioned at left side, 10) and represent " note " button be positioned at right side coordinate parameters (250, 10), and " note " button coordinate parameters (10 obtained needed for synthetic image interface, 10) or (250, 10).Simultaneously according to the response events that button produces, select from the coordinate parameters set representing " editor's letter " button, this coordinate parameters set comprises and represents that the Edit button is positioned at the coordinate parameters (60 in left side, 15) and represent the Edit button be positioned at right side coordinate parameters (300,15), and the Edit button coordinate parameters (60,15) obtained needed for synthetic image interface or (300,15).
Also for ease of reach user can in main separation MAC operating system figure interface the object of " note " button and the Edit button position, the upper left corner of the reverse side of iphone mobile phone can arrange a sensor, this sensor can be temperature sensor or pressure transducer, when in the process forming MAC operating system figure interface, finger contact is to temperature sensor, or point after pressure is produced to pressure transducer, sensor can produce right-handed mode and switch instruction, instruction is switched according to the right hand that the sensor received produces, select to represent that " note " button is positioned at the coordinate parameters (250 on right side from the coordinate parameters set of " note " button, 10), select to represent that the Edit button is positioned at the coordinate parameters (300 on right side from the coordinate parameters set of the Edit button, 15).The object arranging a sensor in the upper left corner at the iphone mobile phone back side is, during the hand-held iphone mobile phone of the right hand, easily touch the sensor in the upper left corner, the iphone mobile phone back side, now two buttons are positioned at the right side of screen, adopt hand thumb to click more convenient.The upper right corner of the reverse side of similar iphone mobile phone can also arrange a sensor, if formed in the process at MAC operating system figure interface, finger contact is to temperature sensor, or point after pressure is produced to pressure transducer, sensor can produce left-handed mode and switch instruction, subsequent step and the right hand similar, repeat no more herein.According to the demand of actual design, the position that can also keep left at the lower frame of iphone mobile phone arranges a sensor again, coordinate with the sensor in the upper left corner of the reverse side of iphone mobile phone, with detect whether be right hand handheld mobile phone, the similar position can also kept right at the lower frame of iphone mobile phone arranges a sensor again, whether coordinate with the sensor in the upper right corner of the reverse side of iphone mobile phone, be left hand handheld mobile phone to detect.The embodiment of the present invention does not limit the particular location of sensor setting, but should be arranged at the non-screen region of iphone mobile phone in principle.
After adopting above-mentioned method, the embodiment of the present invention provides right handed handheld terminal operating system figure interface schematic diagram as shown in Figure 3, " note " button 1 that the menu bar 3 at the top of iphone mobile phone screen viewing area 10 is arranged and the Edit button 2, be positioned at the left side of menu bar 3.The embodiment of the present invention provides left hand type handheld terminal operating system figure interface schematic diagram as shown in Figure 4, " note " button 1 on the menu bar 3 at the top of iphone mobile phone screen viewing area 10 and the Edit button 2, be positioned at the right side of menu bar 3, between " note " button 1 and the Edit button 2, spacing is shorter like this, moves nearer distance time saving and energy saving during user operation.
The embodiment of the present invention also provides a kind of terminal generating handheld terminal operating system figure interface, as shown in Figure 5, comprising:
Acquisition module 201, for the coordinate parameters of the coordinate parameters and the first button be positioned on menu bar and the second button that obtain the Background From Layer of menu bar, the wherein absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the first button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the vertical direction the second boundary of Background From Layer, the absolute value of the difference of the X-coordinate parameter on the X-coordinate parameter of the second button and vertical direction first border of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the vertical direction the second boundary of Background From Layer,
Generation module 202, the menu bar for the coordinate parameters of the Background From Layer according to menu bar and the coordinate parameters synthetic image interface of the first button be arranged on menu bar and the second button and two buttons be positioned on menu bar.
Further, acquisition module 201, specifically for obtaining the coordinate parameters of Background From Layer and the coordinate parameters of the first button be positioned on menu bar and the second button of menu bar, the wherein absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer.
Further, acquisition module 201, specifically for obtaining the coordinate parameters of Background From Layer and the coordinate parameters of the first button be positioned on menu bar and the second button of menu bar, the wherein absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the right margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the first button and the left margin of Background From Layer, the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the right margin of Background From Layer, be less than the absolute value of the difference of the X-coordinate parameter of the X-coordinate parameter of the second button and the left margin of Background From Layer.
Further, also comprise:
Receiver module 203, for receiving the response events that switching push button produces;
Acquisition module 201, specifically for the response events produced according to button, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
Further, handheld terminal non-screen region is provided with sensor 204, sensor 204, for generation of switching instruction;
Acquisition module 201, specifically for the switching instruction produced according to sensor, the multiple coordinate parameters set being arranged in diverse location from expression first button are selected, and the first button coordinate parameters obtained needed for synthetic image interface, the multiple coordinate parameters set being arranged in diverse location from expression second button are selected, and obtain the second button coordinate parameters needed for synthetic image interface.
It is last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention but not to be limited, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to technical scheme of the present invention or equivalent replacement, and these are revised or be equal to the spirit and scope that replacement also can not make amended technical scheme disengaging technical solution of the present invention.