WO2023092403A1 - 窗口显示控制方法、装置、显示装置和存储介质 - Google Patents

窗口显示控制方法、装置、显示装置和存储介质 Download PDF

Info

Publication number
WO2023092403A1
WO2023092403A1 PCT/CN2021/133238 CN2021133238W WO2023092403A1 WO 2023092403 A1 WO2023092403 A1 WO 2023092403A1 CN 2021133238 W CN2021133238 W CN 2021133238W WO 2023092403 A1 WO2023092403 A1 WO 2023092403A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
moving
target
movement
moving operation
Prior art date
Application number
PCT/CN2021/133238
Other languages
English (en)
French (fr)
Inventor
王家宇
Original Assignee
广州视源电子科技股份有限公司
广州视源创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视源创新科技有限公司 filed Critical 广州视源电子科技股份有限公司
Priority to PCT/CN2021/133238 priority Critical patent/WO2023092403A1/zh
Priority to CN202180007749.7A priority patent/CN116710883A/zh
Publication of WO2023092403A1 publication Critical patent/WO2023092403A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the embodiments of the present application relate to the field of interactive technologies, and in particular, to a window display control method, device, display device, and storage medium.
  • Existing electronic devices carry out the fitting and arrangement of software windows-mainly through the following methods: the user moves and operates a certain software window, and observes the display position of this window and other windows during the moving operation with the naked eye to complete the fitting arrangement, Or when the user moves and operates a certain software window, when the distance between the window and other windows is close to a certain degree, the window will be automatically aligned with the window closest to it, but both methods may occur Errors, for example: the former is easy to be misjudged by naked eyes; the latter automatically selects fit according to the distance, which may not be the fit arrangement result that the user wants.
  • the present application provides a window display control method, a device, a display device and a storage medium to solve the technical problem of operational errors in the conventional window adhering and arranging operation.
  • the embodiment of the present application provides a window display control method, including:
  • the target window In the process of responding to the window moving operation, the target window is separated from the first window, and the target window is controlled to move along the track of the window moving operation, so that the target window is separated from the first window Entering the adsorption state from the separation state; wherein, controlling the process of the target window and the first window from the separation state to the adsorption state, the movement trajectory of the target window is the same as the trajectory of the window moving operation;
  • the target window from moving in a first direction following the window moving operation; wherein, the first direction is vertically from the adsorption frame to the frame opposite to the adsorption frame in the first window;
  • the window moving operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to a first distance threshold, the adsorption state is ended, and the target window is controlled to follow The trace of the window moving operation continues to move.
  • the embodiment of the present application also provides a window display control method, including:
  • the target window In the process of responding to the window moving operation, the target window is separated from the first window, and the target window is controlled to move along the track of the window moving operation, so that the target window is separated from the first window Entering the adsorption state from the separation state; wherein, controlling the process of the target window and the first window from the separation state to the adsorption state, the movement trajectory of the target window is the same as the trajectory of the window moving operation;
  • the target window from moving in a first direction following the window moving operation; wherein, the first direction is vertically from the adsorption frame to the frame opposite to the adsorption frame in the first window;
  • the window moving operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to a first distance threshold, the adsorption state is ended, and the target window is controlled to follow The trace of the window moving operation continues to move.
  • the embodiment of the present application also provides a window display control device, including:
  • a window display unit configured to display the target window and the first window on the window display interface
  • a receiving unit configured to receive a window moving operation, and the window moving operation is used to move the target window
  • the adsorption response unit is configured to control the target window to move along the track of the window movement operation when the target window is separated from the first window during the process of responding to the window movement operation, so that the target window and the first window enters the adsorption state from the separation state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, and the movement trajectory of the target window is the same as the movement operation trajectory of the window ;
  • An adsorption and holding unit configured to stop the target window from moving in a first direction following the window movement operation; wherein, the first direction is vertically from the adsorption frame to a frame in the first window opposite to the adsorption frame; It is also used to stop the target window from following the window when the window moving operation continues to move, and there is a moving distance generated by the continuing movement in the first direction, and the moving distance is less than a first distance threshold The operation moves in the first direction and is in the adsorption state;
  • the adsorption termination unit is configured to end the window movement when the window movement operation continues to move, and the continued movement has a moving distance in the first direction, and the moving distance is greater than or equal to a first distance threshold.
  • the target window is controlled to continue moving along the track of the window moving operation.
  • the embodiment of the present application also provides a window display control device, including:
  • a window display unit configured to display the target window and the first window on the window display interface
  • a receiving unit configured to receive a window moving operation, and the window moving operation is used to move the target window
  • the adsorption response unit is configured to control the target window to move along the track of the window movement operation when the target window is separated from the first window during the process of responding to the window movement operation, so that the target window and the first window enters the adsorption state from the separation state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, and the movement trajectory of the target window is the same as the movement operation trajectory of the window ;
  • An adsorption and holding unit configured to stop the target window from moving in a first direction following the window movement operation; wherein, the first direction is vertically from the adsorption frame to a frame in the first window opposite to the adsorption frame;
  • an adsorption termination unit configured to end the adsorption state when the window movement operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to a first distance threshold, Controlling the target window to continue moving along the track of the window moving operation.
  • the embodiment of the present application further provides a display device, including:
  • processors one or more processors
  • memory for storing one or more programs
  • the display device When the one or more programs are executed by the one or more processors, the display device implements the window display control method as described in the first aspect or the second aspect.
  • the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the window display control method as described in the first aspect or the second aspect is implemented.
  • the target window and the first window are displayed on the window display interface; a window moving operation is received, and the window moving operation is used to move the target window;
  • the target window is separated from the first window, and the target window is controlled to move along the track of the window moving operation, so that the target window is separated from the first window
  • the state enters the adsorption state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, the movement track of the target window is the same as the window movement operation track; stop the target window from following the window
  • the move operation moves in the first direction; wherein, the first direction points vertically from the adsorption frame to the frame opposite to the adsorption frame in the first window; when the window move operation continues to move, and in the first direction There is a movement distance generated by the continued movement, and when the movement distance is less than the first distance threshold, the target window still stops moving in the first
  • the adsorption state is ended, and the target window is controlled to follow the The trajectory of the window moving operation described above continues to move.
  • the solution of this application continuously detects the distance between the moving target window and other windows during the window movement process.
  • the target window and other windows enter the adsorption state from the separation state during the movement process, if the window still exists The moving operation, and the moving operation has a moving distance caused by the continued movement in the first direction, the target window will remain in the adsorption state for a period of time, and the target window will not end the adsorption state until the moving operation satisfies a certain condition.
  • the solution of the present application improves the response accuracy of the user to the window movement operation, enables the user to precisely control the final desired adsorption effect, and is more in line with the user's real idea. At the same time, it also reduces the possible interference of the active adsorption in advance on the window moving operation process.
  • FIG. 1 is a method flow chart of a window display control method provided in an embodiment of the present application
  • Fig. 2 is a schematic diagram of the window layout of the screen
  • FIG. 3 is a schematic diagram of the movement of the target window following the window movement operation
  • Fig. 4 is a schematic diagram when the target window is in contact with the first window
  • Fig. 5 is the schematic diagram that the target window keeps in contact with the first window
  • FIG. 6 is a schematic diagram of the target window continuing to move in the first direction
  • Fig. 7 is a schematic diagram of the target window continuing to move after ending the adsorption state
  • FIG. 8 is a schematic structural diagram of a window display control device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of another window display control device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • window fitting arrangement is completely dependent on the user's observation and operation.
  • the actual operation result may be that the two windows are slightly separated. , fully fit or slightly overlapped, the fit arrangement of the windows is more of a visual approximate fit arrangement.
  • the other is automatic fitting, that is, the user selects a certain window to start moving, and when the distance between the selected window and the certain window is relatively close, the selected window is directly pasted to the relatively close window in a flashing manner.
  • the selected target window is automatically attached to another window in advance during the moving process.
  • this kind of advance does not necessarily meet the actual operation needs of users.
  • the existing technology cannot accurately meet the user's operation requirements and achieve the user's expected effect in terms of the final fitting accuracy or the active response of the operation process. Based on this, the present application proposes another window display control method to solve problems such as operation accuracy in existing solutions.
  • Fig. 1 is a method flowchart of a window display control method provided in the embodiment of the present application.
  • the window display control method is used for a display device.
  • the window display control method includes:
  • Step S110 displaying the target window and the first window on the window display interface.
  • human-computer interaction is generally realized by displaying images to the user through the screen of the electronic equipment, and receiving user operations acting on a certain position in the image through the touch screen or mouse.
  • a screen is used as a window display interface.
  • different software is correspondingly installed, and interactive interfaces of different software are visualized through respective corresponding software windows.
  • the screen presents the window display interface of the operating system carried by the electronic device as a whole during use. Each software window is displayed in a certain area of the window display interface or in full screen according to the user's display operation.
  • the electronic device has been controlled to display at least two software windows (or application windows) on the window display interface.
  • the software window is not confirmed as the target window or the first window when it is first displayed, but during the display process of the software window, any software window may move according to the received window
  • the operation is confirmed as the target window.
  • other software windows may be confirmed as the first window in this application; and the target window may also be switched during the display process of the software window.
  • the user will adjust the display position of the software window according to viewing or interaction needs.
  • the user's operation of adjusting the display position of a certain software window is defined as a window moving operation.
  • the electronic device can confirm a selected software window based on the window moving operation, and the software window is the target window.
  • the software windows currently displayed on the window display interface except the target window, all other windows are the first window.
  • the target window following the window it has different relative position states from the first window, and there are three main relative position states, namely separation state, adsorption state and overlapping state. This application is used to realize the design of corresponding interaction when the relative position relationship between two windows changes.
  • Step S120 Receive a window moving operation, the window moving operation is used to move the target window.
  • the window moving operation can be realized in different operation modes. For example, in an electronic device in the form of a personal computer, it is realized by mouse operation. Generally speaking, in a personal computer, if the signal of pressing the left mouse button is detected when the cursor lands on a set area of a window (such as the title bar), and the signal of mouse movement when the left button is kept pressed, it means Confirm that the window movement operation is detected. When the left mouse button is pressed, the software window where the cursor is located is the target window. According to the movement operation of the mouse, confirm the movement track corresponding to the cursor, and confirm and update the display position of the target window in real time according to the movement track. This realizes the window moving operation.
  • touch operations are implemented.
  • a long-press touch operation is detected in the setting area (such as the title bar) of a certain window, indicating that the window is confirmed.
  • the electronic device will generate a touch operation track corresponding to the detection, and confirm and update the display position of the target window in real time according to the touch operation track.
  • the window moving operation generally keep the target window moving completely following the touch operation track.
  • Step S130 During the process of responding to the window moving operation, the target window is separated from the first window, and the target window is controlled to move along the track of the window moving operation so that the target window is separated from the first window.
  • the first window enters the adsorption state from the separation state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, and the movement trajectory of the target window is the same as the movement operation trajectory of the window.
  • the moving target window is directly controlled according to the track corresponding to the window moving operation (that is, under this condition, the moving track of the target window is the same as the movement of the window moving operation same track).
  • the corresponding display state is controlled according to the positional relationship with other windows.
  • window 11, window 12 and window 13 are displayed in screen 10, wherein the window 13 selected by the user when performing the window movement operation by touching the operator 20 (such as the user's finger) is the target window, and the window movement operation Correspondingly, a moving track moving downward to the left is generated, wherein in the current moving direction, the distance between window 12 and window 13 is the closest. According to the positional relationship between window 13 and other windows, at this time, window 13 is separated from window 11 and window 12, and it can be confirmed that relative to window 13, window 11 and window 12 are both the first windows. As shown in FIG.
  • the real-time update of the display position of the window 13 can be performed by directly following the touch operation track corresponding to the touch operator 20 for moving update.
  • the moving track of the window 13 is the same as the moving track of the touch operator 20 .
  • the window 13a when the window 13a continues to move in response to the window moving operation until the distance between the window 13b and the window 12 is 0, it enters the adsorption state at this time, that is, the moment when the borders of the two windows touch is recorded as the first moment .
  • the adsorbed state the distance between the two borders of the two software windows that remain adsorbed is 0, and there is no limit to whether the endpoints of the borders that are adsorbed are coincident or staggered.
  • the adsorption state shown in Figure 4 is a state where the endpoints are staggered. If it is a state where two endpoints correspond to overlap, it is also adsorption. If it is a state where one endpoint corresponds to overlap and the other endpoint is staggered, it is also adsorption.
  • the movement track of the target window is the same as the track of the window movement operation.
  • the movement track of the detected touch operator is The line segment shown by the arrow, then when the control window 13 moves to the window 13a, the moving track is also the line segment shown by the arrow, and the moving speed and moving time are also kept in sync.
  • Step S140 Stop the target window from moving in a first direction following the window moving operation; wherein, the first direction is vertically from the suction frame to a frame in the first window opposite to the suction frame.
  • Step S150 When the window moving operation continues to move, and there is a moving distance generated by the continuing movement in the first direction, and the moving distance is greater than or equal to a first distance threshold, end the adsorption state , controlling the target window to continue moving along the track of the window moving operation.
  • this adsorption state is not maintained permanently, but will be interrupted or continued according to the window movement operation.
  • the first direction in this application points vertically from the adsorption frame to the frame opposite to the adsorption frame in the first window, corresponding to Figure 4, the frame where the adsorption occurs is the frame in the vertical direction, and the frame perpendicular to the adsorption is the horizontal frame Direction, towards the border opposite to the adsorption border in the first window, that is, the horizontal direction to the left, that is to say, from the perspective of user interaction, as shown in Figure 5, although the window movement operation has a horizontal movement trend to the left, but from the For a period of time starting from the first moment, the target window will not respond to the trend of moving horizontally to the left.
  • the moving direction is usually not horizontal or vertical.
  • window 13 moves to window 13b in FIG. It is a horizontal movement trend, and the downward movement of the value is a vertical movement trend.
  • the target window mainly responds to the window movement operation, and the target window will not deviate from the current motion track of the window movement operation, that is, it will not reach the touch point of the target window in the window movement operation in a pre-fitting manner.
  • the target window In front of a certain position, it actively absorbs to a certain window in front of the mobile operation in a predictive response manner, avoiding interference with the user's actual operation, making the operation of the window closer to the user's actual operation needs, and the operation is more accurate.
  • first direction mentioned here and the second, third, and fourth directions mentioned later are all directions parallel or perpendicular to the coordinate axes of the coordinate system where the screen is located. Based on these four directions The component decomposition of the movement of the window movement operation in two vertical directions can be realized.
  • the target window moves following the window move operation.
  • the window movement may have various target positions. In the process of reaching the target position, there may be a state of adsorption with other windows, but this state is not the target display state, so this state is kept for a short time.
  • the window moving operation it means that this is the target state, and the window fits and arranges. If the user continues the window moving operation, it means that this is not the target state.
  • the target window continues to follow the window moving operation. move.
  • the holding time of window adsorption is determined according to the moving distance of the window moving operation, that is, the moving reaches the first distance threshold, which can be greater than or equal to the set first distance threshold, and the target The window continues to move, wherein the first distance threshold can be a set number of pixels, such as 100 pixels, 50 pixels or 10 pixels, which is also related to the screen size and pixel density. It can be understood that a circle of virtual adsorption area is set within the boundary of the first window.
  • the first one is when the window moving operation continues to move, and there is a moving distance generated by the continued movement in the first direction, so When the moving distance is greater than or equal to the first distance threshold, the adsorption state is terminated, and the target window is controlled to move in compensation in the first direction.
  • the moving operation of the window begins to move in the first direction from entering the adsorption state distance, and continue to move following the track of the window moving operation. As shown in FIG.
  • window 13c when the window 13b confirms to continue moving, it will supplementary movement to the first direction (ie, horizontally to the left), and the moving distance of the window moving operation in the first direction from the first moment is displayed as window 13c,
  • the change of the display position of the window 13c relative to the display position of the window 13 is the same as the movement track change of the window moving operation, and the control anchor point of the window moving operation on the target window is also restored to the anchor point when the window moving operation is triggered.
  • the second is that when the window moving operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to the first distance threshold, the adsorption state is ended, and the control
  • the target window continues to move along the track of the window moving operation from the position where the adsorption state ends. That is, the target window continues to move synchronously with the window moving operation.
  • This processing method can reduce the update calculation of the target window and form a continuous motion track by itself. It should be noted that, for the second method, in the process of maintaining the adsorption state, the window moving operation continues, and the corresponding touch point may no longer be in the display area of the target window, but it does not affect the target window to continue to respond to the window moving operation. Move, the target window can change its display position according to the track shape of the window moving operation.
  • step S141 is also included, which is used to realize that when the window movement operation continues to move in the first direction on the basis of step S130, stop the target window within a certain period of time. Movement in the first direction.
  • Step S141 When the window moving operation continues to move, and there is a moving distance generated by the continued movement in the first direction, and the moving distance is smaller than the first distance threshold, still stop the target window from following the window movement The operation moves in the first direction and is in the suction state.
  • the window moving operation acts on the window 13b and continues to move to the left (the current first direction).
  • the window 13b (the current target window) still stops following the window
  • the move operation moves to the left, keeping the adsorption state of window 13b and window 12 .
  • the control of the window by the window movement operation does not necessarily only have the movement component in the first direction, so that further window movement and display control based on the sticking arrangement is realized through steps S160-S180.
  • Step S160 When there is still a window movement operation in the adsorption state, and the window movement operation has a moving distance in the second direction, end the adsorption state, and control the target window to follow the window movement operation The trajectory continues to move.
  • the moving component of the window moving operation in the second direction is detected, that is, the moving component opposite to the first direction, then confirm the end of the contact state, and the target window follows the window moving operation Synchronized movement.
  • Step S170 When there is still a window moving operation in the adsorption state, and the window moving operation has a moving distance in the third direction, control the target window to move following the moving distance in the third direction, the The third direction is a direction perpendicular to the first direction within the plane where the window display interface is located.
  • the third direction is a decomposition direction that is different from the first direction and the second direction in a contact state, which is equivalent to the movement component of the window movement operation in the third direction being parallel to the border of the contact.
  • there can be two Direction that is, it is not limited to whether it is perpendicular to the first direction at 90° clockwise or 90° counterclockwise.
  • the target window will follow the movement component in the third direction to move.
  • the window display control in step S170 is often executed simultaneously with step S130 and step S150, or with the window display control in step S160, because the window movement operation rarely has absolute horizontal or vertical movement.
  • the combined effect of the movement components in the third direction and the first direction does not respond to the movement of the window movement operation in the first direction at the beginning, that is, only the movement in the horizontal or vertical direction is initially realized, and the window movement operation operates in the first direction. After the movement in the direction reaches the first distance threshold, what is realized is that the target window moves following the window movement operation; if the combined action of the movement components in the third direction and the second direction, the following movement in step S160 is finally realized, this also includes the movement following the movement component in the third direction in step S170.
  • Step S180 When the target window is in contact with only one vertex of the first window during the movement in the third direction, the adsorption state is ended, and the target window is controlled to continue moving along the track of the window movement operation.
  • the user's interaction target is not the fit and arrangement of the windows, at least not the two windows.
  • the windows are aligned and displayed.
  • the window display control is directly performed as in step S160 and step S180, and the contact state is ended directly, and the target window moves following the window moving operation.
  • Step S190 Confirm that during the window moving operation, the boundary between the target window and the window display interface enters the adsorption state from the separated state, and the moment when the target window and the boundary enter the adsorption state is the first moment.
  • Step S191 When the window moving operation still exists from the first moment, and the moving distance of the window moving operation in the fourth direction, keep the adsorption state between the target window and the boundary; wherein, the The fourth direction is a direction of a velocity component perpendicular to the boundary at the first moment of the window moving operation.
  • the present application further provides a fitting display of the boundary between the window and the screen, so as to ensure that the entire window is displayed within the display range of the screen.
  • the window 13c has been moving to the left until the boundary with the left side of the screen 10 enters the adsorption state from the separated state.
  • the moving speed of the window moving operation can be based on the By decomposing the coordinate system where it is located, at least the velocity component of the vertically adsorbed boundary from the inside of the screen 10 and towards the outside of the screen 10 can be obtained, and the direction of the velocity component is the fourth direction.
  • the window movement operation does not perform display control on the situation at other times. For example, on the basis of FIG. 6, if the window 13c continues to move to the left, it will first follow the window movement operation, and then contact the right side of the window 11. Based on the steps S120 and S130, the window 13c will move from the window 11. Touching the change of overlapping, the change process is the same as the change of the relative position relationship between window 13 and window 12. After the window 13 ends the adsorption state with window 11, it continues to move to the lower left completely following the window moving operation until the window moving operation The end is displayed at the position of window 13d.
  • step S180 if the window moving operation continues to operate downward, the window 13b will continue to move downward correspondingly until it contacts the boundary below the screen 30. Based on the specific implementation of step S180, if the window moving operation is still downward, The window 13b will remain in contact with the lower border of the screen 30 .
  • there are multiple first windows in the window there may be more display controls, but the display control between the target window and any first window satisfies the above display control process. For example, on the basis of FIG.
  • the window 13b will continue to move upward correspondingly while maintaining the contact state with the window 12. , until it comes into contact with the lower side of another window, based on step S120 and step S130, the window 13b will change from contact to overlapping with another window.
  • the two windows are already in the fit arrangement state, if a window movement operation is detected on one of the windows, it is considered that the user's operation goal is not to realize the fit arrangement of the two windows, and the target window directly follows the window movement operation It can be moved without remaining snapped to the other of the two windows.
  • the above combined display control is only an example under different window layouts and different window moving operations.
  • the display control between the target window and any first window and the boundary of the screen all satisfy the display control design of the present application, so that precise control of the arrangement of the corresponding windows can be realized.
  • step numbers should not be regarded as a limitation on the specific implementation sequence, and each step should be regarded as the entire window moving process and the overall response idea for window display control.
  • the target window and the first window are actually confirmed based on the received window moving operation, but because the window moving operation will not change the substantive content of the currently displayed software window, the window moving operation is greatly used in the human-computer interaction process.
  • the probability exists, there must be a target window and the first window to be determined among the multiple software windows by default.
  • step S120 in the moving process of the target window, according to the window moving operation, it is confirmed that the target window is first adsorbed to the boundary of the window display interface, then after step S120, step S190 and step S191 are directly executed, but this specific implementation effect still does not depart from The design idea of this application.
  • the target window and the first window are displayed on the window display interface; a window moving operation is received, and the window moving operation is used to move the target window; in the process of responding to the window moving operation, the target window There is a state of separation from the first window, and the target window is controlled to move along the trajectory of the window movement operation, so that the target window and the first window enter the adsorption state from the separation state; wherein, the control of the target window and the first window In the process of the window from the separation state to the adsorption state, the movement track of the target window is the same as the track of the window moving operation; the target window is stopped to follow the window moving operation to move in the first direction; wherein, the second One direction is vertically pointing from the adsorption frame to the frame opposite to the adsorption frame in the first window; when the window moving operation continues to move, and there is a moving distance generated by the continued movement in the first direction, the moving distance is less than When the first distance threshold is reached, the target window still stops moving in
  • the solution of this application continuously detects the distance between the moving target window and other windows during the window movement process.
  • the target window and other windows enter the adsorption state from the separation state during the movement process, if the window still exists The moving operation, and the moving operation has a moving distance caused by the continued movement in the first direction, the target window will remain in the adsorption state for a period of time, and the target window will not end the adsorption state until the moving operation satisfies a certain condition. Therefore, the solution of the present application improves the response accuracy of the user to the window movement operation, enables the user to precisely control the final desired adsorption effect, and is more in line with the user's real idea. At the same time, it also reduces the possible interference of the active adsorption in advance on the window moving operation process.
  • FIG. 8 is a schematic structural diagram of a window display control device provided by an embodiment of the present application.
  • the window display control device includes a window display unit 210 , an operation receiving unit 220 , a snapping response unit 230 , a snapping holding unit 240 and a snapping termination unit 250 .
  • the window display unit 210 is used to display the target window and the first window on the window display interface;
  • the operation receiving unit 220 is used to receive the window moving operation, and the window moving operation is used to move the target window;
  • the adsorption response Unit 230 configured to control the target window to move along the track of the window movement operation when the target window is separated from the first window during the process of responding to the window movement operation, so that the target window is separated from the first window
  • the first window enters the adsorption state from the separation state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, the movement track of the target window is the same as the window movement operation track;
  • the adsorption holding unit 240 used to stop the target window from moving in the first direction following the window moving operation; wherein, the first direction is vertically from the adsorption frame to the frame opposite to the adsorption frame in the first window;
  • the adsorption termination unit 250 is specifically configured to when the window movement operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to When the first distance threshold is reached, end the adsorption state, control the target window to compensate for moving the moving distance of the window moving operation in the first direction from entering the adsorption state, and follow the The trace of the window move operation continues to move.
  • the adsorption termination unit 250 is specifically configured to when the window movement operation continues to move, and there is a movement distance generated by the continued movement in the first direction, and the movement distance is greater than or equal to
  • the adsorption state is ended, and the target window is controlled to continue moving along the track of the window moving operation from the position where the adsorption state ends.
  • the device also includes:
  • a reverse movement unit configured to end the adsorption state and control the target window to follow the The track of the window moving operation continues to move, and the second direction is opposite to the first direction.
  • the device further includes:
  • a parallel moving unit configured to control the target window to move following the moving distance in the third direction when there is a window moving operation in the adsorption state, and the window moving operation has a moving distance in the third direction
  • the third direction is a direction perpendicular to the first direction in the plane where the window display interface is located.
  • the device further includes:
  • a window following unit configured to end the adsorption state and control the target window to follow the track of the window movement operation when the target window is in contact with only one vertex of the first window during the movement in the third direction keep moving.
  • the device further includes:
  • the screen adsorption unit is used to confirm that during the window moving operation, the boundary between the target window and the window display interface enters the adsorption state from the separated state, and the moment when the target window and the boundary enters the adsorption state is the first Moment; when the window movement operation still exists from the first moment, and the movement distance of the window movement operation in the fourth direction, the adsorption state between the target window and the boundary is maintained; wherein, the The fourth direction is a direction of a velocity component perpendicular to the boundary at the first moment of the window moving operation.
  • the first distance threshold is a set number of pixels.
  • the window display control device provided in the embodiment of the present application is included in the electronic equipment of the device, and can be used to execute any window display control method provided in the above embodiments, and has corresponding functions and beneficial effects.
  • the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application.
  • FIG. 9 is a schematic structural diagram of a window display control device provided by an embodiment of the present application.
  • the window display control device includes a window display unit 310 , an operation receiving unit 320 , a snapping response unit 330 , a snapping holding unit 340 and a snapping termination unit 350 .
  • the window display unit 310 is used to display the target window and the first window on the window display interface;
  • the operation receiving unit 320 is used to receive the window moving operation, and the window moving operation is used to move the target window;
  • the adsorption response Unit 330 configured to control the target window to move along the track of the window movement operation when the target window is separated from the first window during the process of responding to the window movement operation, so that the target window is separated from the first window
  • the first window enters the adsorption state from the separation state; wherein, the process of controlling the target window and the first window from the separation state to the adsorption state, the movement trajectory of the target window is the same as the trajectory of the window moving operation;
  • the suction holding unit 340 is configured to stop the target window from moving in a first direction following the window moving operation; wherein, the first direction is vertically from the suction frame to the frame opposite to the suction frame in the first window ;
  • the adsorption termination unit 350 is configured to terminate the adsorption when the
  • the window display control device provided in the embodiment of the present application is included in the electronic equipment of the device, and can be used to execute any window display control method provided in the above embodiments, and has corresponding functions and beneficial effects.
  • This embodiment is based on the same design concept as the previous embodiment, and specific implementations in the previous embodiment that do not conflict with this embodiment can be commonly used in this embodiment.
  • FIG. 10 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • the display device includes a processor 410, a memory 420, an input device 430, an output device 440, and a communication device 450;
  • the processor 410 is taken as an example; the processor 410, memory 420, input device 430, output device 440, and communication device 450 in the display device can be connected via a bus or in other ways. In FIG. 10, connection via a bus is taken as an example.
  • the memory 420 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the window display control method in the embodiment of the present application (for example, the window display control device in the window display unit 210, operation receiving unit 220, suction response unit 230, suction holding unit 240, and suction termination unit 250).
  • the processor 410 executes various functional applications and data processing of the display device by running software programs, instructions and modules stored in the memory 420 , that is, realizes the above-mentioned window display control method.
  • the memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the display device, and the like.
  • the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • the memory 420 may further include memory located remotely relative to the processor 410, and these remote memories may be connected to the display device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input device 430 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the display device.
  • the output device 440 may include a display device such as a display screen.
  • the above display device includes a window display control device, which can be used to execute any window display control method, and has corresponding functions and beneficial effects.
  • the embodiment of the present application also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to perform related operations in the window display control method provided in any embodiment of the present application when executed by a computer processor, And possess corresponding functions and beneficial effects.
  • the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
  • the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • the present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions.
  • These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, may be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

一种窗口(11,12,13,13a,13b,13c,13d)显示控制方法、装置、显示装置和存储介质,在窗口显示界面显示目标窗口(13,13a,13b,13c,13d)和第一窗口(11,12)(S110);接收窗口移动操作,窗口移动操作用于对目标窗口(13,13a,13b,13c,13d)进行移动(S120);在响应窗口移动操作的过程中,目标窗口(13,13a,13b,13c,13d)与第一窗口(11,12)存在分离状态,控制目标窗口(13,13a,13b,13c,13d)跟随窗口移动操作的轨迹进行移动,使目标窗口(13,13a,13b,13c,13d)与第一窗口(11,12)从分离状态进入吸附状态(S130);停止目标窗口(13,13a,13b,13c,13d)跟随窗口移动操作在第一方向上进行移动;其中,第一方向从吸附边框垂直指向第一窗口(11,12)中与吸附边框相对的边框(S140);当窗口移动操作继续移动,且在第一方向上存在继续移动产生的移动距离,移动距离大于或等于第一距离阈值时,结束吸附状态,控制目标窗口(13,13a,13b,13c,13d)跟随窗口移动操作的轨迹继续移动(S150)。提高了窗口移动操作的精度。

Description

窗口显示控制方法、装置、显示装置和存储介质 技术领域
本申请实施例涉及交互技术领域,尤其涉及窗口显示控制方法、装置、显示装置和存储介质。
背景技术
在软件窗口显示过程中,往往涉及需要对多个软件窗口进行排列,尤其在需要多个软件同时显示使用的过程中,为提高显示区域的利用率,会有将多个窗口贴合排列的操作。
现有的电子设备进行软件窗口的贴合排列-主要通过以下方式来实现:用户移动操作某个软件窗口,并通过肉眼观察移动操作过程中该窗口与其他窗口的显示位置以完成贴合排列,或者在用户移动操作某个软件窗口过程中,当该窗口与其他窗口的距离靠近到一定程度时,自动将该窗口与距离其最近的窗口自动进行贴合排列,但是这两种方式均可能出现误差,例如:前者通过肉眼观察容易误判;后者根据距离自动选择贴合,可能并非用户想要的贴合排列结果。
发明内容
本申请提供了一种窗口显示控制方法、装置、显示装置和存储介质,以解决现有窗口贴合排列操作过程中存在操作误差的技术问题。
第一方面,本申请实施例提供了一种窗口显示控制方法,包括:
在窗口显示界面显示目标窗口和第一窗口;
接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的 移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;
当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
第二方面,本申请实施例还提供了一种窗口显示控制方法,包括:
在窗口显示界面显示目标窗口和第一窗口;
接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
第三方面,本申请实施例还提供了一种窗口显示控制装置,包括:
窗口显示单元,用于在窗口显示界面显示目标窗口和第一窗口;
操作接收单元,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
吸附响应单元,用于在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
吸附保持单元,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;还用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止 所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;
吸附终止单元,用于当所述窗口移动操作继续移动,且所述继续移动在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
第四方面,本申请实施例还提供了一种窗口显示控制装置,包括:
窗口显示单元,用于在窗口显示界面显示目标窗口和第一窗口;
操作接收单元,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
吸附响应单元,用于在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
吸附保持单元,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
吸附终止单元,用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
第五方面,本申请实施例还提供了一种显示装置,包括:
一个或多个处理器;
存储器,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述显示装置实现如第一方面或第二方面所述的窗口显示控制方法。
第六方面,本申请实施例还提供了计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面或第二方面所述的窗口显示控制方法。
上述窗口显示控制方法、装置、显示装置和存储介质,该方法中,在窗口显示界面显示目标窗口和第一窗口;接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;在响应所述窗口移动操作的过程中,所述目标窗 口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与窗口移动操作的轨迹相同;停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;当所述窗口移动操作继续移动,且所述继续移动在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。本申请的方案,通过在窗口移动过程中,不断检测移动的目标窗口与其它窗口的距离状态,当目标窗口在移动过程中与其它窗口从分离状态进入到吸附状态后,若还存在所述窗口移动操作,且该移动操作在第一方向上存在所述继续移动产生的移动距离,目标窗口会保持吸附状态一段时间,直至所述移动操作满足一定条件,所述目标窗口才会结束吸附状态。故本申请的方案使得提高了用户对窗口移动操作的响应精度,使用户能够精确控制最终想要呈现的吸附效果,更加符合用户真实想法。同时也减少了提前主动吸附对窗口移动操作过程可能的干扰。
附图说明
图1为本申请实施例提供的一种窗口显示控制方法的方法流程图;
图2为屏幕的窗口布局示意图;
图3为目标窗口跟随窗口移动操作移动的示意图;
图4为目标窗口与第一窗口接触时的示意图;
图5为目标窗口与第一窗口保持接触的示意图;
图6为目标窗口在第一方向继续移动的示意图;
图7为目标窗口结束吸附状态后继续移动的示意图;
图8为本申请实施例提供的一种窗口显示控制装置的结构示意图;
图9为本申请实施例提供的另一种窗口显示控制装置的结构示意图;
图10为本申请实施例提供的一种显示装置的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
在现有实现窗口贴合排列的窗口显示控制方案中,一种是手动控制贴合,即用户手动选择某个窗口开始移动,在移动过程中,肉眼观察移动的窗口与其他窗口的相对位置关系,当用户通过观察判断移动的窗口与其他窗口达到预想的贴合效果时,结束移动过程,这种窗口贴合排列完全依赖于用户观察和操作,实际的操作结果可能是两个窗口略有分离、完全贴合或略有重合,窗口的贴合排列更多情况下是一种视觉上的近似贴合排列。另一种是自动贴合,即用户选择某个窗口开始移动,当移动到与某个窗口距离比较接近时,选择的窗口直接以闪现的方式贴合到距离比较接近的窗口。对于前一种方案,手动移动操作时很容易出现误差,两个窗口之间容易存在缝隙或重叠的情况;对于后一种方案,选中的目标窗口在移动过程中提前向另一窗口自动吸附贴合,但这种提前并不一定符合用户的实际操作需求。整体而言,现有技术在最终的贴合精度上,或者在操作过程的主动响应上,不能精确满足用户的操作需求,达到用户预期效果。基于此,本申请提出另一种窗口显示控制方法,以解决现有方案中的操作精度等问题。
需要注意的是,由于篇幅所限,本申请说明书没有穷举所有可选的实施方式,本领域技术人员在阅读本申请说明书后,应该能够想到,只要技术特征不互相矛盾,那么技术特征的任意组合均可以构成可选的实施方式。
下面对各实施例进行详细说明。
图1为本申请实施例提供的一种窗口显示控制方法的方法流程图,该窗口显示控制方法,用于显示装置,如图所示,该窗口显示控制方法,包括:
步骤S110:在窗口显示界面显示目标窗口和第一窗口。
使用电子设备的过程中,人机交互一般通过电子设备的屏幕向用户显示画面,通过触摸屏或鼠标接收作用于画面中某个位置的用户操作综合实现。在电子设备中,屏幕作为窗口显示界面,为实现不同的使用目的,对应安装有不同的软件,不同的软件的交互界面通过各自对应的软件窗口进行可视化呈现。屏幕作为整个可视化呈现的硬件载体,其在使用过程中整体呈现电子设备搭载的 操作系统的窗口显示界面,各个软件窗口根据用户的显示操作,在窗口显示界面中的某个区域或者全屏进行显示。
在本申请中,主要针对电子设备已经控制在窗口显示界面中至少显示有两个软件窗口(或应用窗口)的情况。在至少两个软件窗口中,不是软件窗口在刚开始显示时即确认固定为目标窗口或第一窗口,而是在软件窗口的显示过程中,任何一个软件窗口都有可能根据接收到的窗口移动操作,确认为目标窗口,在目标窗口确认之后,其余软件窗口均有可能在本申请中确认为第一窗口;而且目标窗口也有可能在软件窗口的显示过程中发生切换。具体而言,在窗口显示过程中,用户会根据查看或交互需要调整软件窗口的显示位置,本申请申请中将用户调整某个软件窗口的显示位置的操作定义为窗口移动操作。电子设备在接收到用户的窗口移动操作之后,基于该窗口移动操作可以确认一个被选中的软件窗口,该软件窗口即为目标窗口。窗口显示界面当前显示的软件窗口中,除了目标窗口,其它的窗口均为第一窗口。在目标窗口跟随窗口移动的过程中,与第一窗口有不同的相对位置状态,主要的相对位置状态有三种,即分离状态、吸附状态和重叠状态。本申请用于实现两个窗口之间的相对位置关系发生变化时,相应交互的设计。
例如图2,根据窗口移动操作可以确认目标窗口是窗口13,第一窗口是窗口11和窗口12,当前根据窗口移动操作可以确认窗口13的移动方向上最近的窗口是窗口12,如果保持图2中的运动方向,首先会窗口13和窗口12之间执行本申请中区别于现有技术的交互设计。
另外需要说明的是,在确认当前窗口移动操作结束后,接收到下一窗口移动操作之前,对于当前显示的多个软件窗口,没有明确的目标窗口和第一窗口,直至接收到窗口移动操作,才有对应明确的目标窗口和第一窗口。
步骤S120:接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动。
窗口移动操作可以有不同的操作方式实现。例如在以个人计算机为设备形态的电子设备中,通过鼠标操作实现。通常而言,个人计算机中,如果在光标落在某一窗口的设定区域(例如标题栏)时检测到鼠标左键按下的信号,以及保持左键按下时的鼠标移动信号,则表示确认检测到窗口移动操作,鼠标左键按下时,光标所在的软件窗口为目标窗口,根据鼠标的移动操作,确认光标对应生成的移动轨迹,根据移动轨迹实时确认和更新目标窗口的显示位置,由此 实现窗口移动操作。又例如在以触屏手机、交互平板为设备形态的电子设备中,通过触控操作实现,在某一窗口的设定区域(例如标题栏)检测到长按的触控操作,表示确认该窗口为目标窗口,如果进一步检测到保持触控接触状态的同时,有触控接触位置的改变,电子设备对应检测生成触控操作轨迹,根据触控操作轨迹实时确认和更新目标窗口的显示位置,由此实现窗口移动操作。在窗口移动操作过程中,大体上保持目标窗口完全跟随触控操作轨迹进行移动,在两个窗口从吸附状态进入重叠状态的过程中,目标窗口的移动并不是完全同步跟随窗口移动操作实现,具体参考下文各步骤所述。
步骤S130:在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同。
在窗口移动操作过程,如果目标窗口没有与其它窗口或屏幕边界的接触,则直接根据窗口移动操作对应的轨迹控制移动目标窗口(即在该条件下,目标窗口的移动轨迹与窗口移动操作的移动轨迹相同)。在本申请中,重点考虑的目标窗口移动过程中根据与其它窗口的位置关系,对应的显示状态控制。在一次窗口移动操作开始前,如果屏幕中存在多个窗口,那么任意两个窗口之间的相对位置关系主要有三种,第一种是边框互相分离,即两个窗口没有重叠区域;第二中是边框相接,第三种是边框互相交叉,即两个窗口中有重叠区域。在一次窗口移动操作开始后,窗口移动操作选中的窗口确认为目标窗口,其它窗口确认为第一窗口,接下来具体描述在目标窗口与另一窗口进入第二种相对位置关系前后的实现细节。
如图2所示,在屏幕10中显示有窗口11、窗口12和窗口13,其中用户通过触控操作物20(如用户手指)进行窗口移动操作时选中的窗口13为目标窗口,窗口移动操作对应生成向左下方移动的移动轨迹,其中在当前的移动方向上,窗口12与窗口13距离最近。根据窗口13与其它窗口的位置关系,此时,窗口13与窗口11以及窗口12均处于分离状态,可以确认相对于窗口13,窗口11和窗口12均为第一窗口。如图3所示,在窗口13移动到窗口13a的过程中,尚未与其它窗口接触,窗口13的显示位置的实时更新,直接跟随触控操作物20对应的触控操作轨迹进行移动更新即可,该过程下,窗口13的移动轨迹与触控 操作物20的移动轨迹相同。
如图4所示,当窗口13a响应于窗口移动操作继续移动,直至窗口13b与窗口12之间的距离为0,此时进入吸附状态,也即两窗口的边框接触的时刻记录为第一时刻。在吸附状态下,保持吸附的两个软件窗口发生吸附的两条边框之间的距离为0,对于发生吸附的边框的端点是重合或错开,则不做限定。例如图4所示的吸附状态,是端点错开的状态,如果是两个端点对应重合的状态,也是吸附,如果是一个端点对应重合,另一个端点错开的状态,同样也是吸附。
在控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与窗口移动操作的轨迹相同,例如图3中,检测到触控操作物的移动轨迹是箭头所示的线段,那么控制窗口13移动到窗口13a的过程中,移动轨迹也是箭头所示的线段,且移动速度和移动时间也保持同步。
步骤S140:停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框。
步骤S150:当所述窗口移动操作继续移动,且所述继续移动在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
如果从第一时刻开始,检测到窗口移动操作存在第一方向上的移动趋势,则保持目标窗口和第一窗口处于吸附状态。当然,这种吸附状态不是永久保持,而是会根据窗口移动操作确认中断或继续。本申请中的第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框,对应到图4中,发生吸附的边框是竖直方向上的边框,垂直于吸附的边框即水平方向,朝向第一窗口中与吸附边框相对的边框即水平向左的方向,也就是说从用户交互角度而言,如图5所示,虽然窗口移动操作有水平向左的移动趋势,但是从第一时刻开始的一段时间内,目标窗口不会响应水平向左的移动趋势。在窗口移动操作中,移动方向通常不是水平或垂直,如图4中窗口13移动到窗口13b,该移动过程可以视为水平向左移动和竖直向下移动的结合,水平向左的移动即为水平移动趋势,数值向下的移动即为竖直移动趋势。
在本申请中,目标窗口对窗口移动操作主要是跟随响应,目标窗口不会脱离窗口移动操作当前的运动轨迹,即不会以提前贴合的方式将目标窗口在窗口移动操作的触控点到达某个位置前,以预测响应的方式主动吸附到移动操作前 方的某个窗口,避免了出现对用户的实际操作产生干扰的情况,使得窗口的操作更贴近用户的实际操作需求,操作更加精确。
需要说明的是,这里所说的第一方向以及后文所说的第二方向、第三方向和第四方向均为与屏幕所在坐标系的坐标轴平行或垂直的方向,基于这四个方向可以实现对窗口移动操作的移动在两个垂直方向上的分量分解。
从第一时刻开始,暂时保持目标窗口与第一窗口的吸附状态,即保持目标窗口和第一窗口的吸附边框的距离为0的状态,直至检测到在第一方向上的移动距离达到第一距离阈值,目标窗口跟随窗口移动操作移动。如图6所示,当窗口移动操作在水平向左方向上的移动距离达到第一距离阈值d,则窗口13b开始跟随窗口移动操作进行移动。对于用户而言,窗口移动可能会有各种目标位置,在达到目标位置的过程中,可能会有与其它窗口吸附的状态,但是这种状态不是目标显示状态,因此短时间保留这种状态,如果用户结束窗口移动操作,则表示这就是目标状态,进行窗口的贴合排列,如果用户继续窗口移动操作,则表示这不是目标状态,在短暂保持窗口吸附之后,目标窗口继续跟随窗口移动操作进行移动。在此,窗口吸附的保持时间根据窗口移动操作的移动距离确定,即移动达到第一距离阈值,具体可以是大于设定的第一距离阈值,也可以是等于设定的第一距离阈值,目标窗口继续跟随移动,其中所述第一距离阈值可以为设定数量的像素,例如100像素、50像素或10像素,具体也跟屏幕尺寸和像素密度相关。可以理解为在第一窗口的边界内设置有一圈虚拟的吸附区域,当目标窗口与第一窗口接触的边界在底层移动还位于吸附区域时,对这一移动距离不予视觉上的移动效果呈现,而是保持目标窗口和第一窗口的吸附状态,直到确认需要跟随用户的窗口移动操作进一步移动。
在具体的移动过程,窗口移动操作的后续移动方式可以有不同的实现方式,第一种是当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口向所述第一方向补偿移动所述窗口移动操作从进入所述吸附状态开始在第一方向上的移动距离,并跟随所述窗口移动操作的轨迹继续移动。如图6所示,当窗口13b确认继续移动,会向第一方向(即水平向左)补充移动所述窗口移动操作从第一时刻开始在第一方向上的移动距离,显示为窗口13c,使得窗口13c的显示位置相对于窗口13的显示位置的变化,与窗口移动操作的运动轨迹变化相同,窗口移动操作在目标窗口上的控制锚点也恢复到触发窗口 移动操作时的锚点。第二种是当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口从结束所述吸附状态的位置开始跟随所述窗口移动操作的轨迹继续移动。即目标窗口继续跟随窗口移动操作进行跟同步移动。这种处理方式能够减少目标窗口的更新计算,自身形成连续的运动轨迹。需要说明的是,对于第二种方式,在保持吸附状态的过程中,窗口移动操作继续,对应的触摸点可能已经不在目标窗口的显示区域,但是并不影响目标窗口继续响应于窗口移动操作进行移动,目标窗口根据窗口移动操作的轨迹形状对应变化显示位置即可。
具体实现本方案时,在步骤S140和步骤S150之间,还包括步骤S141,用于实现窗口移动操作在步骤S130的基础上继续存在第一方向上的移动时,在一定时间内停止目标窗口在第一方向上的移动。
步骤S141:当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态。
如图5所示,窗口移动操作作用于窗口13b上继续向左侧(当前的第一方向)移动,当移动距离小于第一距离阈值d时,仍然停止窗口13b(当前的目标窗口)跟随窗口移动操作向左侧移动,保持窗口13b与窗口12的吸附状态。
当然,在实际的用户使用过程中,窗口移动操作对窗口的控制不一定是只有第一方向的移动分量,由此通过步骤S160-步骤S180实现贴合排列基础上的进一步窗口移动显示控制。
步骤S160:当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第二方向上的移动距离时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
如果在目标窗口与第一窗口的接触状态下,检测到窗口移动操作在第二方向上的移动分量,也就是与第一方向相反的移动分量,则确认结束接触状态,目标窗口跟随窗口移动操作同步移动。
步骤S170:当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第三方向上的移动距离时,控制所述目标窗口跟随所述第三方向上的移动距离进行移动,所述第三方向为所述窗口显示界面所在平面内与所述第一方向垂直的方向。
第三方向为在一次接触状态下,与第一方向和第二方向均不同的分解方向,相当于窗口移动操作在第三方向上的移动分量为平行于接触的边框的方向,实际可以有两个方向,即不限定与第一方向是顺时针90°的垂直还是逆时针90°的垂直,只要有第三方向上的移动分量,目标窗口即跟随第三方向上的移动分量进行移动。实际上,步骤S170中的窗口显示控制很多时候和步骤S130以及步骤S150,或者和步骤S160中的窗口显示控制同时执行,因为窗口移动操作较少有绝对的水平或竖直方向上的移动,如果第三方向和第一方向上的移动分量综合作用,一开始不响应窗口移动操作在第一方向上的移动,即初始实现的只有水平方向或竖直方向上的移动,窗口移动操作在第一方向上的移动达到第一距离阈值之后,实现的是目标窗口跟随窗口移动操作进行移动;如果第三方向和第二方向上的移动分量的综合作用,最终实现的步骤S160中的跟随移动,此时也包含了步骤S170中跟随第三方向上的移动分量的移动。
步骤S180:当在所述第三方向上的移动过程中,所述目标窗口与第一窗口只有一个顶点接触,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
对于用户交互而言,如果在两个窗口已经处于接触状态的情况,有反方向的移动或者垂直方向的错开,则可以视为用户的交互目标不是窗口的贴合排列显示,至少不是这两个窗口的贴合排列显示,此时直接如步骤S160和步骤S180的窗口显示控制,直接结束接触状态,目标窗口跟随窗口移动操作移动。
步骤S190:确认在窗口移动操作的过程中,所述目标窗口与所述窗口显示界面的边界从分离状态进入吸附状态,所述目标窗口与所述边界进入吸附状态的时刻为第一时刻。
步骤S191:当从所述第一时刻开始还存在所述窗口移动操作,且所述窗口移动操作在第四方向上的移动距离,保持所述目标窗口与所述边界的吸附状态;其中,所述第四方向为所述窗口移动操作在所述第一时刻垂直所述边界的速度分量的方向。
在两个窗口之间贴合排列的基础上,本申请进一步提供窗口与屏幕的边界的贴合显示,保证窗口整体显示于屏幕的显示范围内。例如在图6的基础上,窗口13c一直向左移动,直至与屏幕10左边的边界从分离状态进入吸附状态,此时为第一时刻,在第一时刻,窗口移动操作的移动速度可以基于屏幕所在的坐标系做分解,至少可以得到从屏幕10内部垂直吸附的边界,并朝向屏幕10 外部的速度分量,该速度分量的方向即为第四方向。
需要说明的是,在以上处理过程中,并不是完成某个状态下的显示控制之后,该窗口移动操作就不对其它时刻的情况进行显示控制。例如在图6的基础上,窗口13c如果继续向左移动,首先根据窗口移动操作做跟随移动,进而与窗口11的右侧接触,基于步骤S120和步骤S130,窗口13c将会与窗口11发生从接触到重叠的变化,该变化过程与窗口13和窗口12的相对位置关系的变化相同,窗口13在结束与窗口11的吸附状态之后,继续完全跟随窗口移动操作向左下方移动,直至窗口移动操作结束,显示在窗口13d的位置。而且,以上步骤顺序也不是对整个方案执行顺序的绝对限定,步骤编号仅为说明在对应状态下有对应的显示控制细节。例如在图4的基础上,如果窗口移动操作继续向下操作,窗口13b对应继续向下移动,直至与屏幕30下方的边界接触,基于步骤S180的具体实施,如果窗口移动操作还是向下操作,窗口13b将与屏幕30下方的边界保持接触状态。此外,如果窗口中有多个第一窗口存在,可能会有更多的显示控制,但是对于目标窗口与任一第一窗口之间的显示控制,均满足以上的显示控制过程。例如在图4的基础上,如果窗口13b和屏幕10上方的边界之间还有另一窗口,且窗口移动操作继续向上操作,窗口13b在保持与窗口12的接触状态的同时,对应继续向上移动,直至与另一窗口的下侧接触,基于步骤S120和步骤S130,窗口13b将会与另一窗口发生从接触到重叠的变化。而在两个窗口本来就处于贴合排列状态下,如果检测到对其中一个窗口的窗口移动操作,则认为用户的操作目标不是实现这两个窗口的贴合排列,目标窗口直接跟随窗口移动操作进行移动即可,无需保持与这两个窗口中另一个窗口的贴合排列状态。
需要特别强调的是,以上组合显示控制仅是在不同的窗口布局下以及不同窗口移动操作下的举例说明,在窗口移动过程中,目标窗口与任意第一窗口以及屏幕的边界之间的显示控制,均满足本申请的显示控制设计,即可实现对应窗口排列的精确控制。
在理解本申请时,以上步骤编号不应视为对具体实施顺序的限定,各个步骤应视为整个窗口移动过程,对窗口显示控制的整体响应思路。例如目标窗口和第一窗口实际是基于接收到的窗口移动操作进行确认,但是因为窗口移动操作并不会改变当前显示的软件窗口的实质性内容,故基于窗口移动操作在人机交互过程中大概率存在的情况下,默认多个软件窗口中必然存在待定的目标窗 口和第一窗口。又例如,在目标窗口的移动过程,根据窗口移动操作确认目标窗口先与窗口显示界面的边界进行吸附,那么在步骤S120之后,直接执行步骤S190和步骤S191,但是这种特定实施效果依然不脱离本申请的设计思路。
上述方法,在窗口显示界面显示目标窗口和第一窗口;接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与窗口移动操作的轨迹相同;停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;当所述窗口移动操作继续移动,且所述继续移动在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。本申请的方案,通过在窗口移动过程中,不断检测移动的目标窗口与其它窗口的距离状态,当目标窗口在移动过程中与其它窗口从分离状态进入到吸附状态后,若还存在所述窗口移动操作,且该移动操作在第一方向上存在所述继续移动产生的移动距离,目标窗口会保持吸附状态一段时间,直至所述移动操作满足一定条件,所述目标窗口才会结束吸附状态。故本申请的方案使得提高了用户对窗口移动操作的响应精度,使用户能够精确控制最终想要呈现的吸附效果,更加符合用户真实想法。同时也减少了提前主动吸附对窗口移动操作过程可能的干扰。
图8为本申请实施例提供的一种窗口显示控制装置的结构示意图。参考图8,该窗口显示控制装置包括窗口显示单元210、操作接收单元220、吸附响应单元230、吸附保持单元240和吸附终止单元250。
其中,窗口显示单元210,用于在窗口显示界面显示目标窗口和第一窗口;操作接收单元220,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;吸附响应单元230,用于在响应所述窗口移动操作的过程中,所 述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与窗口移动操作的轨迹相同;吸附保持单元240,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;还用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;吸附终止单元250,用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
在上述实施例的基础上,所述吸附终止单元250,具体用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口向所述第一方向补偿移动所述窗口移动操作从进入所述吸附状态开始在第一方向上的移动距离,并跟随所述窗口移动操作的轨迹继续移动。
在上述实施例的基础上,所述吸附终止单元250,具体用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口从结束所述吸附状态的位置开始跟随所述窗口移动操作的轨迹继续移动。
在上述实施例的基础上,所述装置还包括:
反向移动单元,用于当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第二方向上的移动距离时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动,所述第二方向与所述第一方向相反。
在上述实施例的基础上,所述装置,还包括:
平行移动单元,用于当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第三方向上的移动距离时,控制所述目标窗口跟随所述第三方向上的移动距离进行移动,所述第三方向为所述窗口显示界面所在平面内与所述第一方向垂直的方向。
在上述实施例的基础上,所述装置,还包括:
窗口跟随单元,用于当在所述第三方向上的移动过程中,所述目标窗口与第一窗口只有一个顶点接触,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
在上述实施例的基础上,所述装置,还包括:
屏幕吸附单元,用于确认在窗口移动操作的过程中,所述目标窗口与所述窗口显示界面的边界从分离状态进入吸附状态,所述目标窗口与所述边界进入吸附状态的时刻为第一时刻;当从所述第一时刻开始还存在所述窗口移动操作,且所述窗口移动操作在第四方向上的移动距离,保持所述目标窗口与所述边界的吸附状态;其中,所述第四方向为所述窗口移动操作在所述第一时刻垂直所述边界的速度分量的方向。
在上述实施例的基础上,所述第一距离阈值为设定数量的像素。
本申请实施例提供的窗口显示控制装置包含在设备的电子设备中,且可用于执行上述实施例中提供的任一窗口显示控制方法,具备相应的功能和有益效果。
值得注意的是,上述窗口显示控制装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。
图9为本申请实施例提供的一种窗口显示控制装置的结构示意图。参考图9,该窗口显示控制装置包括窗口显示单元310、操作接收单元320、吸附响应单元330、吸附保持单元340和吸附终止单元350。
其中,窗口显示单元310,用于在窗口显示界面显示目标窗口和第一窗口;操作接收单元320,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;吸附响应单元330,用于在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;吸附保持单元340,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述 第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;吸附终止单元350,用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
本申请实施例提供的窗口显示控制装置包含在设备的电子设备中,且可用于执行上述实施例中提供的任一窗口显示控制方法,具备相应的功能和有益效果。本实施例与前一实施例基于相同的设计思想,前一实施例中与本实施例不冲突的具体实现,可以在本实施例中通用。
图10为本申请实施例提供的一种显示装置的结构示意图。如图10所示,该显示装置包括处理器410、存储器420、输入装置430、输出装置440以及通信装置450;显示装置中处理器410的数量可以是一个或多个,图10中以一个处理器410为例;显示装置中的处理器410、存储器420、输入装置430、输出装置440以及通信装置450可以通过总线或其他方式连接,图10中以通过总线连接为例。
存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的窗口显示控制方法对应的程序指令/模块(例如,窗口显示控制装置中的窗口显示单元210、操作接收单元220、吸附响应单元230、吸附保持单元240和吸附终止单元250)。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行显示装置的各种功能应用以及数据处理,即实现上述的窗口显示控制方法。
存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据显示装置的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至显示装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置430可用于接收输入的数字或字符信息,以及产生与显示装置的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。
上述显示装置包含窗口显示控制装置,可以用于执行任意窗口显示控制方法,具备相应的功能和有益效果。
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例中提供的窗口显示控制方法中的相关操作,且具备相应的功能和有益效果。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。
因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任 何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。

Claims (13)

  1. 一种窗口显示控制方法,其特征在于,包括:
    在窗口显示界面显示目标窗口和第一窗口;
    接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
    在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
    停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
    当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;
    当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
  2. 根据权利要求1所述的方法,其特征在于,所述当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动,包括:
    当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口向所述第一方向补偿移动所述窗口移动操作从进入所述吸附状态开始在第一方向上的移动距离,并跟随所述窗口移动操作的轨迹继续移动。
  3. 根据权利要求1所述的方法,其特征在于,所述当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动,包括:
    当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口从结束所述吸附状态的位置开始跟随所述窗口移动操作的轨迹 继续移动。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与第一窗口从分离状态进入吸附状态之后,还包括:
    当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第二方向上的移动距离时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动,所述第二方向与所述第一方向相反。
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与第一窗口从分离状态进入吸附状态之后,还包括:
    当在所述吸附状态下还存在窗口移动操作,且所述窗口移动操作存在第三方向上的移动距离时,控制所述目标窗口跟随所述第三方向上的移动距离进行移动,所述第三方向为所述窗口显示界面所在平面内与所述第一方向垂直的方向。
  6. 根据权利要求5所述的方法,其特征在于,所述控制所述目标窗口跟随所述第三方向上的移动距离进行移动之后,还包括:
    当在所述第三方向上的移动过程中,所述目标窗口与第一窗口只有一个顶点接触,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
  7. 根据权利要求1-3任一项所述的方法,其特征在于,还包括:
    确认在窗口移动操作的过程中,所述目标窗口与所述窗口显示界面的边界从分离状态进入吸附状态,所述目标窗口与所述边界进入吸附状态的时刻为第一时刻;
    当从所述第一时刻开始还存在所述窗口移动操作,且所述窗口移动操作存在第四方向上的移动距离,保持所述目标窗口与所述边界的吸附状态;其中,所述第四方向为所述窗口移动操作在所述第一时刻垂直所述边界的速度分量的方向。
  8. 根据权利要求1所述的方法,其特征在于,所述第一距离阈值为设定数量的像素。
  9. 一种窗口显示控制方法,其特征在于,包括:
    在窗口显示界面显示目标窗口和第一窗口;
    接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
    在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
    停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
    当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
  10. 一种窗口显示控制装置,其特征在于,包括:
    窗口显示单元,用于在窗口显示界面显示目标窗口和第一窗口;
    操作接收单元,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
    吸附响应单元,用于响应所述窗口移动操作;其中,在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
    吸附保持单元,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;还用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离小于第一距离阈值时,仍然停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动,处于吸附状态;
    吸附终止单元,用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
  11. 一种窗口显示控制装置,其特征在于,包括:
    窗口显示单元,用于在窗口显示界面显示目标窗口和第一窗口;
    操作接收单元,用于接收窗口移动操作,所述窗口移动操作用于对所述目标窗口进行移动;
    吸附响应单元,用于在响应所述窗口移动操作的过程中,所述目标窗口与第一窗口存在分离状态,控制所述目标窗口跟随所述窗口移动操作的轨迹进行移动,使所述目标窗口与所述第一窗口从分离状态进入吸附状态;其中,控制所述目标窗口与第一窗口从分离状态到进入吸附状态的过程,所述目标窗口的运动轨迹与所述窗口移动操作的轨迹相同;
    吸附保持单元,用于停止所述目标窗口跟随所述窗口移动操作在第一方向上进行移动;其中,所述第一方向从吸附边框垂直指向所述第一窗口中与吸附边框相对的边框;
    吸附终止单元,用于当所述窗口移动操作继续移动,且在第一方向上存在所述继续移动产生的移动距离,所述移动距离大于或等于第一距离阈值时,结束所述吸附状态,控制所述目标窗口跟随所述窗口移动操作的轨迹继续移动。
  12. 一种显示装置,其特征在于,包括:
    一个或多个处理器;
    存储器,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述显示装置实现如权利要求1-9任一所述的窗口显示控制方法。
  13. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9任一所述的窗口显示控制方法。
PCT/CN2021/133238 2021-11-25 2021-11-25 窗口显示控制方法、装置、显示装置和存储介质 WO2023092403A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/133238 WO2023092403A1 (zh) 2021-11-25 2021-11-25 窗口显示控制方法、装置、显示装置和存储介质
CN202180007749.7A CN116710883A (zh) 2021-11-25 2021-11-25 窗口显示控制方法、装置、显示装置和存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/133238 WO2023092403A1 (zh) 2021-11-25 2021-11-25 窗口显示控制方法、装置、显示装置和存储介质

Publications (1)

Publication Number Publication Date
WO2023092403A1 true WO2023092403A1 (zh) 2023-06-01

Family

ID=86538479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133238 WO2023092403A1 (zh) 2021-11-25 2021-11-25 窗口显示控制方法、装置、显示装置和存储介质

Country Status (2)

Country Link
CN (1) CN116710883A (zh)
WO (1) WO2023092403A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515220A (zh) * 2009-04-13 2009-08-26 青岛海信移动通信技术股份有限公司 对触摸屏幕中窗口移动、缩放和控制的方法及相关装置
CN103838498A (zh) * 2014-03-05 2014-06-04 深圳市深信服电子科技有限公司 实现窗口切换的方法和装置
CN106293314A (zh) * 2015-05-30 2017-01-04 腾讯科技(深圳)有限公司 一种显示控制方法、装置及终端
US20190317617A1 (en) * 2017-03-01 2019-10-17 Fujitsu Client Computing Limited Terminal Device And Recording Medium
CN111324402A (zh) * 2019-10-12 2020-06-23 杭州海康威视系统技术有限公司 窗口控制方法、装置、电子设备和计算机可读介质
CN113434073A (zh) * 2021-06-24 2021-09-24 北京高途云集教育科技有限公司 活动窗口的控制方法、装置、电子设备及可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515220A (zh) * 2009-04-13 2009-08-26 青岛海信移动通信技术股份有限公司 对触摸屏幕中窗口移动、缩放和控制的方法及相关装置
CN103838498A (zh) * 2014-03-05 2014-06-04 深圳市深信服电子科技有限公司 实现窗口切换的方法和装置
CN106293314A (zh) * 2015-05-30 2017-01-04 腾讯科技(深圳)有限公司 一种显示控制方法、装置及终端
US20190317617A1 (en) * 2017-03-01 2019-10-17 Fujitsu Client Computing Limited Terminal Device And Recording Medium
CN111324402A (zh) * 2019-10-12 2020-06-23 杭州海康威视系统技术有限公司 窗口控制方法、装置、电子设备和计算机可读介质
CN113434073A (zh) * 2021-06-24 2021-09-24 北京高途云集教育科技有限公司 活动窗口的控制方法、装置、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN116710883A (zh) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110928468B (zh) 智能交互平板的页面显示方法、装置、设备和存储介质
AU2015276995B2 (en) Methods, systems and media for controlling playback of video using a touchscreen
CN110941383B (zh) 双屏幕显示方法、装置、设备及存储介质
US11698721B2 (en) Managing an immersive interface in a multi-application immersive environment
CN111813302B (zh) 投屏显示方法、装置、终端设备和存储介质
WO2021068366A1 (zh) 智能交互平板的书写操作方法、装置、设备和存储介质
US20120299968A1 (en) Managing an immersive interface in a multi-application immersive environment
WO2021098832A1 (zh) 元素控制方法、装置、设备及存储介质
WO2016101810A1 (zh) 多窗口系统下切换显示对象的方法及其装置
CN107678652B (zh) 对目标物体的操作控制方法和装置
WO2021068365A1 (zh) 智能交互平板的页面交互方法、装置、设备和存储介质
CN105653177B (zh) 终端设备界面的可点击元素的选择方法和终端设备
CN106371755B (zh) 多屏互动方法与系统
WO2022073412A1 (zh) 触摸屏显示框调整方法、装置、触摸屏设备和存储介质
WO2016141597A1 (zh) 一种触控方法、装置、终端及终端上的图形用户界面
US10394442B2 (en) Adjustment of user interface elements based on user accuracy and content consumption
WO2023092403A1 (zh) 窗口显示控制方法、装置、显示装置和存储介质
WO2019218622A1 (zh) 元素控制方法、装置、设备及存储介质
CN110688190A (zh) 智能交互平板的控制方法和装置
CN111580713B (zh) 一种显示交互系统
TW201546656A (zh) 平板式投影裝置之手勢辨識系統及其辨識方法
WO2021068405A1 (zh) 元素传递方法、装置、设备及存储介质
TW201432556A (zh) 記錄軌跡的方法及電子裝置
CN109144397B (zh) 擦除方法、装置以及智能交互平板
US20230289048A1 (en) Managing An Immersive Interface in a Multi-Application Immersive Environment

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202180007749.7

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21965138

Country of ref document: EP

Kind code of ref document: A1