CN117406900A - Application window control method, device, medium and equipment - Google Patents

Application window control method, device, medium and equipment Download PDF

Info

Publication number
CN117406900A
CN117406900A CN202310142605.3A CN202310142605A CN117406900A CN 117406900 A CN117406900 A CN 117406900A CN 202310142605 A CN202310142605 A CN 202310142605A CN 117406900 A CN117406900 A CN 117406900A
Authority
CN
China
Prior art keywords
application window
target
display screen
target application
current display
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310142605.3A
Other languages
Chinese (zh)
Inventor
李艺森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202310142605.3A priority Critical patent/CN117406900A/en
Publication of CN117406900A publication Critical patent/CN117406900A/en
Pending legal-status Critical Current

Links

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]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Abstract

The embodiment of the application provides an application window control method, an application window control device, a medium and application window control equipment, wherein the method comprises the following steps: when the dragging operation acting on the target application window in the current display screen is detected, determining a reference boundary of the target application window according to the dragging direction of the target application window relative to the current display screen; judging whether the reference boundary is outside the current display screen; if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen; if the distance value exceeds the preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, the target application window is limited to continue to be dragged in the current display screen. According to the method and the device, the situation that the target application window is lost on the current display screen due to the fact that the target application window is dragged to the horizontal direction or the vertical direction without limitation can be avoided.

Description

Application window control method, device, medium and equipment
Technical Field
The present disclosure relates to the field of electronic communications technologies, and in particular, to an application window control method, apparatus, medium, and device.
Background
The application window can be dragged randomly on the display interface of the current display screen, and in order to realize that the application window is dragged from the current display screen to other adjacent display screens in a multi-display mode, the frame of the application window cannot be limited to exceed the range of the current display screen, at this time, if the application window is dragged from the current display screen to the horizontal direction, the application window can be dragged to the horizontal direction without limitation due to lack of the limit of the boundary range, so that the application interface is lost in the current display screen, and the problem can be solved only by restarting the application.
Disclosure of Invention
The embodiment of the application window control method, the device, the medium and the equipment are used for determining whether a target application window can continue moving or limit moving according to the intersecting condition between the target application window and the target other display screen by determining the reference boundary of the target application window exceeding the current display screen and judging whether the intersecting target other display screen exists or not exceeding the reference boundary of the current display screen. Based on the technical scheme, the situation that the target application window is lost on the current display screen can be avoided from being dragged towards the horizontal direction or the vertical direction without limitation.
An aspect of an embodiment of the present application provides an application window control method, where the application window control method includes:
when a dragging operation acting on a target application window in a current display screen is detected, determining a reference boundary of the target application window according to a dragging direction of the target application window relative to the current display screen;
judging whether the reference boundary is outside the current display screen;
if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen;
and if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue dragging in the current display screen.
In the application window control method of the embodiment of the present application, the determining whether the reference boundary is outside the current display screen includes:
acquiring a first linear coordinate of the reference boundary and a second linear coordinate corresponding to the first boundary, which is close to and parallel to the reference boundary, of the current display screen;
comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen or not according to the magnitude relation.
In the method for controlling an application window according to the embodiment of the present application, before the limiting the target application window to continue dragging in the current display screen, the method further includes:
and if the distance value exceeds a preset threshold value and the target application window has other target display screens intersected with the target application window in the dragging direction, allowing the target application window to continue dragging in the current display screen and displaying the target application window on the other target display screens in a cross-screen mode.
In the method for controlling an application window according to the embodiment of the present application, the determining whether the target application window intersects with the other display screens of the target in the dragging direction includes:
acquiring first target point coordinates of other display screens of the target and second target point coordinates of the target application window;
judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
In the method for controlling an application window according to the embodiment of the present application, the determining, according to the first target point coordinate data and the second target point coordinate, whether the target application window intersects with the other target display screens in the dragging direction includes:
Determining the current horizontal center point distance and the current vertical center point distance between other display screens of the target and the target application window according to the first target point coordinate and the second target point coordinate;
comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result;
judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
In the application window control method according to the embodiment of the present application, after the limiting the target application window to continue dragging in the current display screen, the method further includes:
acquiring an initial position of the target application window before the dragging operation starts;
and moving the target application window to the initial position when the dragging operation is finished.
In the method for controlling an application window according to the embodiment of the present application, the positional relationship between the target display screen and other target display screens includes one or more of left-right placement, up-down placement, and diagonal placement.
Correspondingly, another aspect of the embodiment of the application also provides an application window control device, where the application window control device includes:
The determining module is used for determining a reference boundary of the target application window according to the dragging direction of the target application window relative to the current display screen when the dragging operation acting on the target application window in the current display screen is detected;
the judging module is used for judging whether the reference boundary is outside the current display screen;
the acquisition module is used for acquiring a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen;
and the limiting module is used for limiting the target application window to continue dragging in the current display screen if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the application window control method as described above.
Correspondingly, another aspect of the embodiment of the application also provides a terminal device, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the application window control method.
The embodiment of the application window control method comprises the steps of determining a reference boundary of a target application window according to a dragging direction of the target application window relative to a current display screen when a dragging operation acting on the target application window in the current display screen is detected; judging whether the reference boundary is outside the current display screen; if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen; and if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue dragging in the current display screen. By means of the application window control method, whether the target application window can continue moving or limit moving is determined according to the intersecting condition between the target application window and the target other display screen if the target application window exceeds the reference boundary of the current display screen by determining the reference boundary of the target application window exceeding the current display screen and judging whether the target other display screen intersecting the reference boundary of the current display screen exists or not. Based on the technical scheme, the situation that the target application window is lost on the current display screen can be avoided from being dragged towards the horizontal direction or the vertical direction without limitation.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an application window control method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an application window control device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of an application window control device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
It should be noted that the following is a simple description of the background of the present solution:
the technical problem that the application window is lost and can be solved only by restarting the application is solved is mainly surrounded by the technical problem that when the application window is dragged in the horizontal direction or the vertical direction in the current display screen, the application window is easy to drag excessively to exceed the display area of the current display screen. It can be understood that the application window can be dragged randomly on the display interface of the current display screen, and in order to enable the application window to be dragged from the current display screen to other adjacent display screens in the multi-display mode, the frame of the application window cannot be limited to exceed the range of the current display screen, if the application window is dragged from the current display screen from the horizontal direction, the application window can be dragged in the horizontal direction without limitation due to lack of the limit of the boundary range, so that the application interface is lost in the current display screen, and the problem can be solved only by restarting the application.
In order to solve the above technical problems, an embodiment of the present application provides an application window control method. By means of the application window control method, whether the target application window can continue moving or limit moving is determined according to the intersecting condition between the target application window and the target other display screen if the target application window exceeds the reference boundary of the current display screen by determining the reference boundary of the target application window exceeding the current display screen and judging whether the target other display screen intersecting the reference boundary of the current display screen exists or not. Based on the technical scheme, the situation that the target application window is lost on the current display screen can be avoided from being dragged towards the horizontal direction or the vertical direction without limitation.
Referring to fig. 1, fig. 1 is a flowchart of an application window control method according to an embodiment of the present application. The application window control method is applied to the terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
and step 101, when a dragging operation acting on a target application window in a current display screen is detected, determining a reference boundary of the target application window according to the dragging direction of the target application window relative to the current display screen.
In this embodiment, when it is detected that a user drags a target application window in a current display screen, the key point of the scheme is to avoid that the user drags the target application window limitlessly, so that the target application window excessively exceeds a display area of the current display screen, and is finally lost in the display area of the current display screen. Therefore, the position relation between the target application window and the current display screen needs to be determined, and the determination of the position relation needs to search for a reference target first. In this embodiment, the reference boundary of the target application window is determined according to the dragging direction of the target application window relative to the current display screen by using the reference boundary of the target application window, which exceeds the current display screen, as the reference target. For example, when it is detected that the target application window is dragged to the left in the horizontal direction, the left edge of the target application window is first contacted with the current display screen and exceeds the current display screen in the process of continuing the dragging, and then the left edge is taken as the reference boundary.
Step 102, determining whether the reference boundary is outside the current display screen.
In this embodiment, a first linear coordinate of a reference boundary and a second linear coordinate corresponding to the first boundary of the current display screen, which is close to and parallel to the reference boundary, are obtained; and comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen according to the magnitude relation.
Specifically, assuming that the first linear coordinate of the reference boundary is x= -2, and the second linear coordinate of the first boundary is x=0, by comparing the first linear coordinate with the second linear coordinate, it can be known that the first linear coordinate is smaller than the second linear coordinate, so that it can be obtained that the reference boundary is located on the left side of the first boundary, that is, the reference boundary is outside the current display screen.
And step 103, if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen.
The distance value of the reference boundary exceeding the current display screen can be obtained by simple mathematical calculation through the first linear coordinate and the second linear coordinate.
And 104, if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue to be dragged in the current display screen.
The preset threshold may be, for example, half the width of the target application window when the target application window is dragged to the left in the horizontal direction.
When the distance value is detected to exceed the preset threshold value and the target application window does not have other display screens intersecting the target application window in the dragging direction, the target application window is indicated to have exceeded the maximum movable distance, and because other display screens capable of enabling the target application window to realize cross-screen display in the dragging direction are not available, in order to avoid the situation that a user continues to drag the target application window, the target application window is lost on the current display screen, and meanwhile, no other display screen is available for the target application window to display. It is therefore necessary to limit the continued dragging of the target application window in the current display screen for the above situation.
In another embodiment, when the distance value is detected to exceed the preset threshold value and the target application window has other target display screens intersecting the target application window in the dragging direction, the user is indicated to perform a cross-screen display operation at this time, and the other display screens performing data interaction with the current display screen can display the target application window, so that the target application window can be allowed to continue to be dragged in the current display screen and cross-screen display on the other target display screens according to the situation.
It should be noted that, in order to determine whether the target application window intersects with other display screens of the target in the dragging direction, the first target point coordinates of the other display screens of the target and the second target point coordinates of the target application window may be obtained; and judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
Specifically, according to the first target point coordinates and the second target point coordinates, determining the current horizontal center point distance and the current vertical center point distance between other display screens of the target and the target application window; comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
Illustratively, assume that the first target point coordinates include the width w1 and height h1 of the other display screen and the second target point coordinates include the width w2 and height h2 of the target application window.
And respectively calculating the current horizontal center point distance w and the current vertical center point distance h between other display screens of the target and the target application window.
If w < (w1+w2)/2 and h < (h1+h2)/2, the other display screens of the target are intersected with the target application window, otherwise, the display screens are not intersected.
In summary, by using the application window control method provided by the embodiment of the application window control method, by determining the reference boundary of the target application window exceeding the current display screen, and judging whether the target other display screens intersected with the reference boundary exceeding the current display screen exist, if so, determining that the target application window can continue moving or limit moving according to the intersection condition between the target other display screens and the target application window. Based on the technical scheme, the situation that the target application window is lost on the current display screen can be avoided from being dragged towards the horizontal direction or the vertical direction without limitation. Meanwhile, the scheme is suitable for multiple multi-display modes, for example, the position relationship between the target display screen and other target display screens comprises one or more of left and right placement, up and down placement and diagonal placement.
In some embodiments, after limiting continued dragging of the target application window in the current display screen, the method further comprises the steps of:
acquiring an initial position of a target application window before starting a drag operation; and moving the target application window to the initial position at the end of the drag operation.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, the application window control method provided by the embodiment of the present application determines, when a drag operation acting on a target application window in a current display screen is detected, a reference boundary of the target application window according to a drag direction of the target application window relative to the current display screen; judging whether the reference boundary is outside the current display screen; if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen; and if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue dragging in the current display screen. By means of the application window control method, whether the target application window can continue moving or limit moving is determined according to the intersecting condition between the target application window and the target other display screen if the target application window exceeds the reference boundary of the current display screen by determining the reference boundary of the target application window exceeding the current display screen and judging whether the target other display screen intersecting the reference boundary of the current display screen exists or not. Based on the technical scheme, the situation that the target application window is lost on the current display screen can be avoided from being dragged towards the horizontal direction or the vertical direction without limitation.
The embodiment of the application also provides an application window control device which can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an application window control device according to an embodiment of the present application. The application window control device 30 may include:
a determining module 31, configured to determine, when a drag operation acting on a target application window in a current display screen is detected, a reference boundary of the target application window according to a drag direction of the target application window relative to the current display screen;
a judging module 32, configured to judge whether the reference boundary is outside the current display screen;
an obtaining module 33, configured to obtain a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen;
and the limiting module 34 is configured to limit the target application window to continue dragging in the current display screen if the distance value exceeds a preset threshold and the target application window does not have any other display screen intersecting the target application window in the dragging direction.
In some embodiments, the device further includes a comparison module, configured to obtain a first linear coordinate of the reference boundary, and a second linear coordinate corresponding to a first boundary of the current display screen that is close to and parallel to the reference boundary; comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen or not according to the magnitude relation.
In some embodiments, the device further includes a detection module, configured to allow the target application window to continue dragging in a current display screen and display the target application window across the other display screens if the distance value exceeds a preset threshold and the target application window has another display screen intersecting the target application window in a dragging direction of the target application window.
In some embodiments, the device further includes a pre-judging module, configured to obtain a first target point coordinate of the target other display screen and a second target point coordinate of the target application window; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
In some embodiments, the determining module 32 is configured to determine a current horizontal center point distance and a current vertical center point distance between the other display screen of the target and the target application window according to the first target point coordinate and the second target point coordinate; comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
In some embodiments, the apparatus further includes a reset module configured to obtain an initial position of the target application window before the drag operation starts; and moving the target application window to the initial position when the dragging operation is finished.
In some embodiments, the positional relationship between the target display screen and other display screens of the target includes one or more of a left-right placement, a top-bottom placement, and a diagonal placement.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the foregoing, the application window control device 30 provided in the embodiments of the present application is configured to, when a drag operation acting on a target application window in a current display screen is detected, determine a reference boundary of the target application window according to a drag direction of the target application window relative to the current display screen; the judging module 32 is configured to judge whether the reference boundary is outside the current display screen; the obtaining module 33 is configured to obtain a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen; the limiting module 34 is configured to limit the target application window from continuing to drag in the current display screen if the distance value exceeds a preset threshold and the target application window does not have any other display screen intersecting the target application window in the dragging direction.
Referring to fig. 3, fig. 3 is another schematic structural diagram of an application window control device according to an embodiment of the present application, where the application window control device 30 includes a memory 120, one or more processors 180, and one or more application programs, where the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a determination module 31, a determination module 32, an acquisition module 33, and a restriction module 34. For example, the structures and connection relationships of the above respective components may be as follows:
memory 120 may be used to store applications and data. The memory 120 stores application programs including executable code. Applications may constitute various functional modules. The processor 180 executes various functional applications and data processing by running application programs stored in the memory 120. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
a determining instruction, configured to determine, when a drag operation acting on a target application window in a current display screen is detected, a reference boundary of the target application window according to a drag direction of the target application window relative to the current display screen;
a judging instruction for judging whether the reference boundary is outside the current display screen;
The module obtaining instruction is used for obtaining a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen;
and the limiting instruction is used for limiting the target application window to continue dragging in the current display screen if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction.
In some embodiments, the program further includes a comparison instruction, configured to obtain a first linear coordinate of the reference boundary, and a second linear coordinate corresponding to a first boundary of the current display screen that is close to and parallel to the reference boundary; comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen or not according to the magnitude relation.
In some embodiments, the program further includes a detection instruction, configured to allow the target application window to continue dragging in a current display screen and display the target application window across the other display screens if the distance value exceeds a preset threshold and the target application window has another display screen intersecting the target application window in a dragging direction of the target application window.
In some embodiments, the program further includes a pre-determination instruction, configured to obtain a first target point coordinate of the target other display screen and a second target point coordinate of the target application window; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
In some embodiments, the determining instruction is configured to determine a current horizontal center point distance and a current vertical center point distance between the other display screens of the target and the target application window according to the first target point coordinate and the second target point coordinate; comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
In some embodiments, the program further includes a reset instruction, configured to obtain an initial position of the target application window before the drag operation starts; and moving the target application window to the initial position when the dragging operation is finished.
In some embodiments, the positional relationship between the target display screen and other display screens of the target includes one or more of a left-right placement, a top-bottom placement, and a diagonal placement.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a server, a smart phone, a computer, a tablet personal computer and the like.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the application window control method provided in the foregoing embodiment. The terminal device 1200 may be a television or a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be appreciated by those skilled in the art that the configuration of the terminal device 1200 shown in fig. 4 does not constitute a limitation of the terminal device 1200, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the application window control method in the above embodiment, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so that the vibration reminding mode can be automatically selected according to the current scene where the terminal device is located to perform application window control, which not only can ensure that the scenes such as a conference are not disturbed, but also can ensure that the user can perceive an incoming call, and the intelligence of the terminal device is improved. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory remotely located relative to processor 180, which may be connected to terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch control detection device detects the touch control direction of a user, detects signals brought by touch control operation and transmits the signals to the touch control controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch coordinates, sends the touch coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and after the touch-sensitive surface 131 detects a touch operation thereon or thereabout, the touch-sensitive surface is transferred to the processor 180 to determine a type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in fig. 4 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 1200 are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and terminal device 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of the peripheral headphones with terminal device 1200.
Terminal device 1200 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 1200 also includes a power supply 190 that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing discharge, and managing power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in the present embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions for:
a determining instruction, configured to determine, when a drag operation acting on a target application window in a current display screen is detected, a reference boundary of the target application window according to a drag direction of the target application window relative to the current display screen;
A judging instruction for judging whether the reference boundary is outside the current display screen;
the module obtaining instruction is used for obtaining a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen;
and the limiting instruction is used for limiting the target application window to continue dragging in the current display screen if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction.
In some embodiments, the program further includes a comparison instruction, configured to obtain a first linear coordinate of the reference boundary, and a second linear coordinate corresponding to a first boundary of the current display screen that is close to and parallel to the reference boundary; comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen or not according to the magnitude relation.
In some embodiments, the program further includes a detection instruction, configured to allow the target application window to continue dragging in a current display screen and display the target application window across the other display screens if the distance value exceeds a preset threshold and the target application window has another display screen intersecting the target application window in a dragging direction of the target application window.
In some embodiments, the program further includes a pre-determination instruction, configured to obtain a first target point coordinate of the target other display screen and a second target point coordinate of the target application window; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
In some embodiments, the determining instruction is configured to determine a current horizontal center point distance and a current vertical center point distance between the other display screens of the target and the target application window according to the first target point coordinate and the second target point coordinate; comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result; judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
In some embodiments, the program further includes a reset instruction, configured to obtain an initial position of the target application window before the drag operation starts; and moving the target application window to the initial position when the dragging operation is finished.
In some embodiments, the positional relationship between the target display screen and other display screens of the target includes one or more of a left-right placement, a top-bottom placement, and a diagonal placement.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a smart phone, a computer and other equipment.
As can be seen from the above, the embodiments of the present application provide a terminal device 1200, where the terminal device 1200 performs the following steps:
when a dragging operation acting on a target application window in a current display screen is detected, determining a reference boundary of the target application window according to a dragging direction of the target application window relative to the current display screen;
judging whether the reference boundary is outside the current display screen;
if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen;
and if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue dragging in the current display screen.
The embodiment of the application also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the application window control method described in any one of the embodiments.
It should be noted that, for the application window control method described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the application window control method described in the embodiments of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution process may include the flow of the embodiment of the application window control method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the application window control device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The method, the device, the medium and the equipment for controlling the application window provided by the embodiment of the application are described in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. An application window control method, comprising:
when a dragging operation acting on a target application window in a current display screen is detected, determining a reference boundary of the target application window according to a dragging direction of the target application window relative to the current display screen;
judging whether the reference boundary is outside the current display screen;
if the reference boundary is outside the current display screen, acquiring a distance value of the reference boundary beyond the current display screen;
and if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction, limiting the target application window to continue dragging in the current display screen.
2. The application window control method of claim 1, wherein the determining whether the reference boundary is outside the current display screen comprises:
acquiring a first linear coordinate of the reference boundary and a second linear coordinate corresponding to the first boundary, which is close to and parallel to the reference boundary, of the current display screen;
comparing the magnitude relation between the first linear coordinate and the second linear coordinate, and judging whether the reference boundary is outside the current display screen or not according to the magnitude relation.
3. The application window control method of claim 1, wherein before said restricting the target application window from continuing to drag in the current display screen, the method further comprises:
and if the distance value exceeds a preset threshold value and the target application window has other target display screens intersected with the target application window in the dragging direction, allowing the target application window to continue dragging in the current display screen and displaying the target application window on the other target display screens in a cross-screen mode.
4. The application window control method of claim 3, wherein the method further comprises:
acquiring first target point coordinates of other display screens of the target and second target point coordinates of the target application window;
Judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first target point coordinate data and the second target point coordinate.
5. The application window control method according to claim 4, wherein the determining whether the target application window intersects the target other display screen in the dragging direction according to the first target point coordinate data and the second target point coordinate data includes:
determining the current horizontal center point distance and the current vertical center point distance between other display screens of the target and the target application window according to the first target point coordinate and the second target point coordinate;
comparing the current horizontal center point distance and the current vertical center point distance with a first threshold value and a second threshold value respectively to obtain a first result and a second result;
judging whether the target application window intersects with other display screens of the target in the dragging direction according to the first result and the second result.
6. The application window control method of claim 1, wherein after said restricting the target application window from continuing to drag in the current display screen, the method further comprises:
Acquiring an initial position of the target application window before the dragging operation starts;
and moving the target application window to the initial position when the dragging operation is finished.
7. The application window control method of claim 1, wherein the positional relationship of the target display screen and the other target display screens includes one or more of left and right placement, up and down placement, and diagonal placement.
8. An application window control device, characterized by comprising:
the determining module is used for determining a reference boundary of the target application window according to the dragging direction of the target application window relative to the current display screen when the dragging operation acting on the target application window in the current display screen is detected;
the judging module is used for judging whether the reference boundary is outside the current display screen;
the acquisition module is used for acquiring a distance value of the reference boundary beyond the current display screen if the reference boundary is outside the current display screen;
and the limiting module is used for limiting the target application window to continue dragging in the current display screen if the distance value exceeds a preset threshold value and the target application window does not have other display screens of the target intersected with the target application window in the dragging direction.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the application window control method of any one of claims 1-7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the application window control method of any of claims 1-7.
CN202310142605.3A 2023-02-13 2023-02-13 Application window control method, device, medium and equipment Pending CN117406900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310142605.3A CN117406900A (en) 2023-02-13 2023-02-13 Application window control method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310142605.3A CN117406900A (en) 2023-02-13 2023-02-13 Application window control method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN117406900A true CN117406900A (en) 2024-01-16

Family

ID=89491426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310142605.3A Pending CN117406900A (en) 2023-02-13 2023-02-13 Application window control method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN117406900A (en)

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN109067418B (en) Antenna control method and mobile terminal
EP3136214A1 (en) Touch operation method and apparatus for terminal
CN109710139B (en) Page processing method, device, terminal and storage medium
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN108681427B (en) Access right control method and terminal equipment
CN109407949B (en) Display control method and terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN111339515A (en) Application program starting method and electronic equipment
CN108762606B (en) Screen unlocking method and terminal equipment
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN110597437A (en) Screen capturing method and terminal equipment
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111443968A (en) Screenshot method and electronic equipment
CN111310165A (en) Account switching or registering method and electronic equipment
CN111142998A (en) Sharing method of background application and electronic equipment
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN111045588B (en) Information viewing method and electronic equipment
CN109634503B (en) Operation response method and mobile terminal
CN108459789B (en) Application program management method and electronic equipment
CN117406900A (en) Application window control method, device, medium and equipment
CN112199005A (en) Content display method, content display device, storage medium and mobile terminal
CN110874141A (en) Icon moving method and terminal equipment
CN111045563A (en) Display control method, electronic equipment and storage medium
CN111026259A (en) Control method and device of mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination