CN114935990A - Window processing method, computing device and readable storage medium - Google Patents

Window processing method, computing device and readable storage medium Download PDF

Info

Publication number
CN114935990A
CN114935990A CN202210539648.0A CN202210539648A CN114935990A CN 114935990 A CN114935990 A CN 114935990A CN 202210539648 A CN202210539648 A CN 202210539648A CN 114935990 A CN114935990 A CN 114935990A
Authority
CN
China
Prior art keywords
window
transparency
computing device
changing
application
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
CN202210539648.0A
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210539648.0A priority Critical patent/CN114935990A/en
Publication of CN114935990A publication Critical patent/CN114935990A/en
Pending legal-status Critical Current

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]
    • 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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/0482Interaction with lists of selectable items, e.g. menus
    • 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The invention discloses a window processing method, a computing device and a readable storage medium. The window processing method of the present invention is executed in a window manager of a computing device in which one or more applications are running, the method comprising: in response to an operation of opening a transparency setting function of a window of a target application among the one or more applications, monitoring an operation of changing transparency of the window of the target application; adjusting the transparency of the window of the target application in response to listening for an operation that changes the transparency of the window of the target application. Therefore, the invention provides the function of adjusting the transparency of the window, so that a user can adjust the transparency of any window. Therefore, when a plurality of application windows need to be displayed on the screen of the computing device at the same time, a user can display all the windows on the current screen by adjusting the transparency of the windows, and the windows controlled by the user can occupy enough screen space, so that the user experience can be improved.

Description

Window processing method, computing device and readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a window processing method, a computing device, and a readable storage medium.
Background
In everyday work and life, users often need to display multiple application windows on the screen of a computing device. Wherein, in order to make each window be presented on the screen at the same time, the user generally displays the plurality of windows side by side. For example, when a user edits a word document, the user also monitors messages in a wechat window in real time, and the word window and the wechat window are displayed side by side on the screen. However, the screen space of the computing device is limited, and when a plurality of windows are displayed on the screen at the same time, the screen space occupied by each window is relatively small, so that the user can operate the windows or the content therein very inconveniently, and the user experience is affected.
Therefore, a new window processing method is needed to solve the above problem.
Disclosure of Invention
To this end, the present invention provides a window processing method, a computing device and a readable storage medium in an effort to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided a window processing method adapted to be executed in a window manager of a computing device in which one or more applications are running, the method comprising: in response to an operation of opening a transparency setting function of a window of a target application of the one or more applications, monitoring an operation of changing transparency of the window; and adjusting the transparency of the window in response to monitoring the operation of changing the transparency of the window.
Optionally, in the window processing method according to the present invention, the operation of changing the transparency of the window is an operation of sliding a mouse wheel, and the step of adjusting the transparency of the window in response to monitoring the operation of changing the transparency of the window includes: determining the operation of changing the transparency of the window to be the operation of increasing the transparency or the operation of reducing the transparency according to the sliding direction of the mouse roller; if the operation of changing the transparency of the window is the operation of increasing the transparency, increasing the transparency of the window; and if the operation for changing the transparency of the window is the operation for reducing the transparency, reducing the transparency of the window.
Optionally, in the window processing method according to the present invention, the step of increasing the transparency of the window includes: when the mouse roller slides for a preset distance, increasing the transparency of the window by a first preset value; in response to the transparency of the window increasing to a second predetermined value, the increase in transparency of the window is stopped.
Optionally, in the window processing method according to the present invention, the step of reducing the transparency of the window includes: when the mouse roller slides for a preset distance, the transparency of the window is reduced by a first preset value; in response to the transparency of the window decreasing to a third predetermined value, the decrease in transparency of the window is stopped.
Optionally, in the window processing method according to the present invention, the method further includes: and responding to the operation of starting the transparency setting function of the window, and modifying the transparency of the window into a preset value.
Optionally, in the window processing method according to the present invention, the operation of starting the transparency setting function of the window of the target application of the one or more applications includes a trigger operation on a transparency interface in the window.
Optionally, in the window processing method according to the present invention, the method further includes: in response to an operation of opening a transparency setting function of a window, displaying a current transparency of the window on a screen of the computing device, and switching a style of a mouse cursor in the window to a predetermined style.
Optionally, in the window processing method according to the present invention, when the tab of the window of several applications of the one or more applications is drawn by the corresponding application, the size of the tab of the window thereof is sent to the window manager by the several applications.
According to yet another aspect of the present invention, there is provided a window processing method adapted to be executed in an application of a computing device, the method comprising: responding to the operation of opening the transparency setting function of the window of the application, and monitoring the operation of changing the transparency of the window; in response to listening for an operation to change the transparency of the window, an adjustment request to adjust the transparency of the window is sent to a window manager of the computing device, such that the window manager adjusts the transparency of the window based on the adjustment request.
According to yet another aspect of the invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the window processing method according to the present invention.
According to still another aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to execute a window processing method according to the present invention.
According to the window processing method of the present invention, in response to an operation of opening the transparency setting function of the window of the target application, an operation of changing the transparency of the window of the target application is monitored. And adjusting the transparency of the window of the target application in response to monitoring the operation of changing the transparency of the window of the target application. Therefore, the invention provides the function of adjusting the transparency of the window, so that a user can adjust the transparency of any window. Therefore, when a plurality of application windows need to be displayed on the screen of the computing device at the same time, the user can display all the windows on the current screen by adjusting the transparency of the windows, and the target windows controlled by the user can occupy enough screen space, so that the user experience can be improved. In addition, the window processing method can be realized in a window manager, so that the transparency of any window of the application in the computing equipment can be adjusted.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a block diagram of a computing device 100, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a window processing method 200 according to one embodiment of the invention;
FIG. 3 illustrates a schematic diagram of a right-click menu of a title bar of a window, according to one embodiment of the invention;
FIG. 4 illustrates a schematic view of a title bar of a window according to one embodiment of the invention;
FIG. 5 shows a schematic diagram of content displayed by a screen of a computing device, according to one embodiment of the invention;
FIG. 6 illustrates a diagram of a computing device displaying two application windows simultaneously on a screen according to one embodiment of the invention;
FIG. 7 shows a flow diagram of a window processing method 700 according to yet another embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides a window processing method suitable for being executed in a computing device, and based on the method, a user can adjust the transparency of any window. Therefore, when a plurality of application windows are required to be displayed on the screen of the computing device at the same time, a user can display all the windows on the current screen by adjusting the transparency of the windows, and the target windows controlled by the windows can occupy enough screen space, so that the user experience can be improved.
Fig. 1 illustrates a block diagram of the physical components (i.e., hardware) of a computing device 100. In a basic configuration, computing device 100 includes at least one processing unit 102 and system memory 104. According to one aspect, the processing unit 102 may be implemented as a processor depending on the configuration and type of computing device. The system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, operating system 105 is included in system memory 104, operating system 105 has window manager 150 running therein, and window manager 150 has integrated therein a window processing function module configured to perform window processing method 200 of the present invention.
According to one aspect, the operating system 105 is, for example, adapted to control the operation of the computing device 100. Further, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. This basic configuration is illustrated in fig. 1 by those components within dashed line 108. According to one aspect, the computing device 100 has additional features or functionality. For example, according to one aspect, computing device 100 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage device 109 and non-removable storage device 110.
As stated hereinabove, according to one aspect, program modules are stored in the system memory 104. According to one aspect, the program modules may include one or more applications, the invention not being limited to the type of application, for example, the applications may include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like.
According to one aspect, examples may be practiced in a circuit comprising discrete electronic elements, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, an example may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 1 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functions described herein may be operated via application-specific logic integrated with other components of the computing device 100 on a single integrated circuit (chip). Embodiments of the invention may also be practiced using other technologies capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum technologies. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuit or system.
According to one aspect, computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communications with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel, and/or serial ports.
The term computer readable media as used herein includes computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. System memory 104, removable storage 109, and non-removable storage 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include Random Access Memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and that can be accessed by the computer device 100. In accordance with one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more feature sets or that has been altered in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, Radio Frequency (RF), infrared, and other wireless media.
FIG. 2 illustrates a flow diagram of a window processing method 200 according to one embodiment of the invention, the method 200 being suitable for execution in a window manager of a computing device (e.g., the computing device 100 shown in FIG. 1) having one or more applications running therein. As shown in fig. 2, the method 200 begins at step S210.
In step S210, in response to an operation to open a transparency setting function of a window of a target application of the one or more applications, an operation to change transparency of the window is listened to. The operation of opening the transparency setting function of the window of the target application in the one or more applications may include a trigger operation of a transparency interface in the window of the target application. Further, the transparent interface may be called up by right-clicking on the title bar of the window of the target application. In this way, the step is to monitor the operation of changing the transparency of the window in response to the triggering operation of the transparency interface in the right-click menu of the title bar of the window of the target application.
The transparency interface may be embodied as a transparency option. That is, a transparency option is added to the right-click menu in the title bar of the window, as shown in FIG. 3. Thus, when the user clicks on the transparency option in the right-click menu of the title bar of the window of the target application, the window manager listens for an operation to change the transparency of the window of the target application.
It should be noted that the transparency option is set in the right-click menu of the window title bar, so the window manager needs to know the position of the title bar of the window of each application running in the computing device. In this regard, it is first explained that the window manager is responsible for managing the drawing, position, size, and movement of the windows of all applications, so the window manager can clearly know the position of the window of each application running in the computing device.
It is clear that if the title bar of a window of an application is also drawn by the window manager, the window manager can know the position of the tab bar of the window of the application. And the title bar for the window of the application, which can be drawn either by the window manager or by the application itself. That is, the title bar of a window of any application running in the computing device is either drawn by the system or is self-drawn by the application. It has been pointed out above that for applications whose title bar is drawn by the system, the window manager can clearly know the position of the tab bar of its window, and thus the window manager can know the position of the title bar of the window of each application running in the computing device as long as it is ensured that the window manager can also know the position of the tab bar of the window of the application from which the title bar is drawn.
Based on this, when the tab bar of the window of several applications in the one or more applications is drawn by the corresponding application, the size of the tab bar of the window can be sent to the window manager by the several applications, so that the window manager can clearly know the position of the tab bar of the window of the several applications. Specifically, when there are several applications in the self-drawing window title bar in the one or more applications running in the computing device, the height and width of the tab bar of the window are sent to the window manager by the several applications at initialization time, so that the window manager can clearly know the positions of the title bars of the windows of the applications running in the computing device. Further, with respect to applications that are self-drawing title bars, it may be possible to make the window manager know the location of the tab bar of its window by sending a protocol to the system at initialization. For example, a clientmessage message may be sent to the system with parameters of the height and width of the title bar.
As an example, there are A, B, C applications running in the computing device, the title bar of the windows for applications a and B being drawn by the system, and the title bar of the window for application C being self-drawn by application C. As can be seen, the title bar of the window of application C in the above three applications is drawn by the application itself, so that the application C needs to send a clientmessage to the system when it is initialized, and the specific parameters are the height and width of the title bar of the window, so that the window manager can clearly know the positions of the tab bars of the windows of the three applications A, B, C.
With respect to the title bar, it is generally located at the topmost portion of the window, and thus the title bar area generally refers to the topmost area of the application window. Specifically, the title bar area generally contains the application name, file name, and control buttons (e.g., minimize/maximize button, close button, etc.), as shown in FIG. 4. In some embodiments, the title bar area may also include a program icon. The above description of the title bar is for most applications, not all. In some embodiments, the title bar may also be located elsewhere in the window. For example, in mechanical drawing, a title field is located in the lower right corner of a window, displaying information related to a drawing.
It should be noted that, the foregoing is only an example of the call-out of the transparency interface, and other ways, such as call-out by triggering a predetermined shortcut key, may also be adopted, and the present invention is not limited thereto. Also, regarding the operation of opening the transparency setting function of the window of the target application, the above implementation by triggering the transparency interface is only an example, and in some embodiments, the implementation may also be implemented as an operation of triggering a predetermined shortcut key while placing a mouse in the title bar, and the present invention is not limited thereto. In the specific embodiment, the person skilled in the art can set the setting according to the actual needs.
In addition, considering that the user only performs the operation of opening the transparency setting function on the window of an application when the user needs to adjust the transparency of the window, after the user performs the operation of opening the transparency setting function on the window of an application, the user indicates that the user needs to adjust the transparency of the window, and based on this, the transparency of the window of the application can be preferably modified to a preset value. That is, in response to an operation of opening the transparency setting function of the window of the target application, the transparency of the window is modified to a preset value. Preferably, the preset value may be 50%. In this case, after the user performs an operation of opening the transparency setting function of the window of the target application, the window manager adjusts the transparency of the window to 50%.
After the user starts the transparency setting function of the window of the target application, according to an embodiment of the present invention, the current transparency of the window may also be displayed on the screen of the computing device, so that the user can know the transparency value of the window at this moment. In particular, the window's current transparency value may be displayed in the form of a floating frame in the upper right corner of the screen of the computing device, as in FIG. 5. Of course, this is merely an example, and the present invention is not limited with respect to the display position and manner of window transparency.
Further, after the user starts the transparency setting function of the window of the target application, a prompt can be set to remind the user that the window transparency setting function is started. Preferably, the user may be prompted by a mouse cursor. Specifically, after the user opens the transparency setting function of the window of the target application, the style of the mouse cursor is switched to a predetermined style. Wherein the predetermined pattern may be a double-headed arrow pattern, as shown in fig. 5.
It can be seen that, when the user starts the transparency setting function of the window of the target application, the window manager adjusts the transparency of the window to 50%, switches the style of the mouse cursor to a predetermined style, displays the current transparency of the window on the screen, and starts to monitor the operation of changing the transparency of the window.
After the operation of changing the transparency of the window is monitored, the process proceeds to step S220 to adjust the transparency of the window in response to the operation of changing the transparency of the window being monitored. Among them, in order to facilitate the user to adjust the transparency of the window, the operation of changing the transparency of the window may be preferably set to the operation of sliding the mouse wheel. That is, the user can adjust the transparency of the window by sliding the mouse wheel.
Next, a process of adjusting the transparency of the window will be explained. First, an operation of changing the transparency of the window is determined as an operation of increasing the transparency or an operation of decreasing the transparency according to the sliding direction of the mouse wheel. That is, it is determined whether the operation of changing the transparency of the window is the transparency increasing operation or the transparency decreasing operation according to the sliding direction of the mouse wheel. And if the operation of changing the transparency of the window is the operation of increasing the transparency, increasing the transparency of the window. If the operation of changing the transparency of the window is a transparency reducing operation, the transparency of the window is reduced.
Specifically, in some embodiments, when the sliding direction of the mouse wheel is upward sliding (i.e., when the user slides the mouse wheel upward), the operation of changing the transparency of the window (i.e., the operation of sliding the mouse wheel) is determined to be an operation of increasing the transparency, thereby increasing the transparency of the window. When the sliding direction of the mouse wheel is downward sliding (i.e. when the user slides the mouse wheel downward), the operation of changing the transparency of the window (i.e. the operation of sliding the mouse wheel) is determined to be the operation of reducing the transparency, and further the transparency of the window is reduced. Of course, in some other embodiments, the transparency of the window may be decreased when the user slides the mouse wheel upwards, and the transparency of the window may be increased when the user slides the mouse wheel downwards, which is not limited in this disclosure.
Further, when the transparency of the window is increased or decreased, the transparency of the window may be gradually increased or decreased as the mouse wheel slides. The method comprises the following specific steps:
when the transparency of the window is increased as the mouse wheel slides, the transparency of the window is increased by a first predetermined value every time the mouse wheel is monitored to slide by a predetermined distance, and the increase of the transparency of the window is stopped in response to the increase of the transparency of the window to a second predetermined value (i.e., a value to which the transparency of the window can be maximally increased, which is set by a user).
Specifically, every time the mouse wheel is monitored to slide for a preset distance, the transparency value of the window at the moment is added to the first preset value, and the value obtained by adding is compared with the second preset value. If the value obtained by adding is less than the second predetermined value, which indicates that the transparency value of the window after increasing the transparency of the window is still less than the value to which the transparency of the window set by the user can be increased at the maximum, then the transparency of the window is increased by the first predetermined value (i.e., the transparency value of the window is increased to the value obtained by adding). And if the value obtained by the addition is larger than or equal to the second preset value, the transparency value of the window is equal to or larger than the value to which the transparency of the window can be increased maximally, which is set by a user, so as to avoid increasing the transparency value of the window to exceed the set maximum transparency value, and then the transparency value of the window is directly increased to the second preset value, and the increase of the transparency of the window is stopped.
Similarly, when the transparency of the window is reduced along with the sliding of the mouse wheel, the transparency of the window is reduced by a first predetermined value every time the sliding of the mouse wheel is monitored for a predetermined distance, and the reduction of the transparency of the window is stopped in response to the reduction of the transparency of the window to a third predetermined value (i.e., a value to which the transparency of the window set by the user can be reduced to the maximum).
Specifically, every time the mouse wheel is monitored to slide for a preset distance, the transparency value of the window at the moment is subtracted from the first preset value, and the value obtained by subtraction is compared with a third preset value. If the value obtained by subtracting is larger than the third predetermined value, which indicates that the transparency of the window is reduced, the transparency value of the window is still larger than the value to which the transparency of the window set by the user can be reduced to the maximum, and then the transparency of the window is reduced by the first predetermined value (that is, the transparency value of the window is reduced to the value obtained by subtracting). And if the value obtained by subtracting is less than or equal to the third preset value, the transparency value of the window is equal to or less than the value to which the maximum transparency of the window set by a user can be reduced after the transparency of the window is reduced, in order to avoid reducing the transparency value of the window to be less than the set minimum transparency value, the transparency value of the window is directly reduced to the third preset value, and the reduction of the transparency of the window is stopped.
The transparency of the window is increased or decreased along with the sliding of the mouse wheel, which can be realized by a synthesizer of the window manager. Specifically, the transparency of the composite image on the window in front of the screen is modified by the compositor of the window manager as the transparency of the window is increased or decreased. In addition, in the process of increasing or decreasing the transparency of the window, the transparency value of the window displayed on the screen of the computing device can be updated, so that the user can accurately know the transparency value of the window at each moment. Specifically, the transparency value of the window is updated once every time the transparency of the window is increased by a first predetermined value. The transparency value of the window is updated each time the transparency of the window is decreased by a first predetermined value.
For the first predetermined value, the second predetermined value and the third predetermined value, according to an embodiment of the present invention, they may be set to 5%, 100% and 10%, respectively (other values are also possible, which is only one example here). This is so that the transparency of the window is increased or decreased by 5% each time the mouse wheel is monitored to slide a predetermined distance, and the transparency of the window can be increased to 100% at maximum (i.e., completely opaque) and decreased to 10% at minimum. Specifically, in the process of increasing the transparency of the window, the transparency of the window is increased by 5% every time the mouse wheel is monitored to slide a predetermined distance, and the increase of the transparency of the window is stopped when the transparency of the window is increased to 100%. Of course, if the user stops sliding the mouse wheel when the transparency of the window has not been increased to 100%, the increase of the transparency of the window is also stopped. And in the process of reducing the transparency of the window, reducing the transparency of the window by 5% for each monitoring of the sliding of the mouse wheel by a preset distance, and stopping reducing the transparency of the window when the transparency of the window is reduced to 10%. Similarly, if the user stops sliding the mouse wheel when the transparency of the window has not been reduced to 10%, the reduction of the transparency of the window is also stopped.
In addition, an operation of closing the transparency setting function may be set, so that the user may close the transparency setting function by performing the operation. Moreover, after the user performs the operation of closing the transparency setting function, according to an embodiment of the present invention, the mouse cursor may be switched from the predetermined style to the default style thereof, for example, the single arrow style, and further, the transparency floating frame displayed on the screen of the computing device may be hidden. That is, after the operation of closing the transparency setting function of the window of the target application is monitored, the transparency floating frame displayed on the screen of the computing device is hidden in response to the operation of closing the transparency setting function of the window of the target application, and the mouse cursor in the window is switched from the preset style to the default style.
The operation of closing the transparency setting function may be triggering a predetermined key of the mouse, for example, a left key of the mouse. Thus, if the user clicks the left button of the mouse with the transparency setting function already turned on, the transparency setting function is turned off, the transparency floating frame displayed on the screen of the computing device is hidden, and the mouse cursor in the window is switched from the predetermined style to the default style. Of course, the operation of turning off the transparency setting function may also be other operations, such as triggering the right mouse button, and the like, and the present invention is not limited thereto.
In addition, several points are also described herein. First, the predetermined distance for adjusting the transparency of the window once every time the mouse wheel is monitored to slide by the predetermined distance is set by the kernel of the operating system based on the operation of sliding the mouse wheel. The method for setting the predetermined distance by the kernel of the operating system based on the operation of the sliding mouse wheel is the prior art, and is not described herein again, but is within the protection scope of the present invention. Secondly, when modifying the transparency of the window of the target application, if multiple tabs exist in the window of the target application (i.e. multiple tab pages are opened in the target application by the user), the transparency of the multiple tabs in the window should be modified accordingly. Again, with respect to the operation of changing the transparency of the window, it has been pointed out that the operation of setting the window as a sliding mouse wheel is convenient for the user to adjust the transparency of the window, so that the operation can also be implemented as other operations, such as triggering a predetermined transparency value option in a transparency menu or inputting a transparency value in a custom transparency input box of the transparency menu, and with respect to the transparency menu (which should include at least several predetermined transparency values and one custom transparency input box), the window can be presented on the screen of the computing device after the user performs the operation of turning on the transparency setting function. The operation of changing the transparency of the window is not illustrated here. In the specific embodiment, the person skilled in the art can set the setting according to the actual needs. Finally, the invention does not limit the type of window. That is, the window of the present invention may be any type of window, such as a window of an office type program, a window of an instant messaging type program, a window of a multimedia play type program, and the like.
Therefore, based on the window processing method, a user can adjust the transparency of any window. Therefore, when a plurality of application windows need to be displayed on the screen of the computing device at the same time, the user can display all the windows on the current screen and enable the target windows controlled by the windows to occupy enough screen space by adjusting the transparency of the windows. For example, when a user needs to edit the content of a certain window and monitor the data in the certain window, the user may place the window whose content needs to be edited on the upper layer and place the window whose data needs to be monitored on the bottom layer, and then set a certain transparency for the upper layer window (i.e., the window whose content needs to be edited by the user) so that the upper layer window does not block the bottom layer window (i.e., the window whose data needs to be monitored by the user). Of course, the user may also place the window whose content needs to be edited on the bottom layer, place the window whose data needs to be monitored on the upper layer, and then set a certain transparency for the upper layer window (i.e., the window whose data needs to be monitored by the user) so that the upper layer window does not block the bottom layer window (i.e., the window whose content needs to be edited by the user). In any method, the upper and lower windows can be displayed on the current screen, and the window edited by the user can occupy any screen space, as shown in fig. 6, so that the office efficiency of the user can be improved.
The window processing method of the above embodiment is executed in a window manager of a computing device. Next, the present invention provides a window processing method executed in an application of a computing device.
FIG. 7 illustrates a flow diagram of a window processing method 700 according to yet another embodiment of the invention, the method 700 being suitable for execution in an application of a computing device (e.g., the computing device 100 shown in FIG. 1). As shown in fig. 7, the method 700 begins at step S710.
In step S710, in response to an operation of opening a transparency setting function of a window of an application, an operation of changing a transparency of the window of the application is listened.
The monitoring of the transparency operation of the window of the change target application in the present embodiment is similar to the monitoring of the transparency operation of the window of the change target application in step S210 in the above-mentioned method 200, and is only different in the execution subject (the application itself in the present embodiment, and the window manager in the method 200). Therefore, the method for monitoring the operation of changing the transparency of the window of the application in this embodiment is not described herein again, and reference may be made to the above description of step S210 for relevant points. In addition, the operation of opening the transparency setting function of the window of the application in this embodiment is the same as the operation of opening the transparency setting function of the window of the target application in step S210 in the method 200, and is not repeated here, please refer to the above description. It should be noted that, when the operation of starting the transparency setting function of the window of the application is a trigger operation on the transparency interface in the right-click menu of the title bar of the window of the application, the embodiment is applicable to the application of the self-drawing title bar.
Step S720 is then entered, and in response to the operation of changing the transparency of the window of the application being monitored, an adjustment request for adjusting the transparency of the window of the application is sent to a window manager of the computing device, so that the window manager adjusts the transparency of the window of the application based on the adjustment request.
Wherein the application may send an adjustment request to adjust the transparency of the window to the window manager in a manner of sending a protocol message. Specifically, the adjustment request includes a sliding direction of the mouse wheel, so that the window manager determines whether the operation of the user is an operation of increasing the transparency of the window or an operation of decreasing the transparency of the window according to the sliding direction of the mouse wheel. The adjustment request also includes a sliding distance (i.e., a scroll dimension) of the mouse wheel, such that the window manager makes a corresponding adjustment to the transparency of the window based on the sliding distance of the mouse wheel. For the method for adjusting the transparency of the window based on the adjustment request by the window manager in this embodiment, details are not repeated here, and it is similar to or the same as the method for adjusting the transparency of the window of the target application in response to the operation of monitoring to change the transparency of the window of the target application mentioned in step S220 in the above method 200, and for relevant points, reference may be made to the above description of step S220.
In addition, several points are explained here. First, when the application detects an operation of a user to open a window transparency setting function (such as a triggering operation of a transparency interface in a right-click menu of a title bar of a window by the user), the application sends an opening request for opening the transparency setting function to the window manager, so that the window manager displays a current transparency value of the window on a screen of the computing device and switches a style of a mouse cursor to a predetermined style based on the opening request, and further, the window manager can adjust the transparency of the window to 50% based on the opening request. Second, when the application detects an operation of closing its window transparency setting function by the user (e.g., a click operation of the left mouse button by the user), the application sends a close request to close the window transparency setting function to the window manager, so that the window manager hides the transparency floating frame displayed on the screen of the computing device based on the close request, and switches the mouse cursor in the window from a predetermined style to its default style. Finally, when the application detects that the user stops changing the transparency of the window (e.g., stops sliding the mouse wheel), the application sends a stop request to the window manager to stop adjusting the transparency of the window, so that the window manager stops adjusting the transparency of the application window based on the stop request. For specific details of the window processing method of this embodiment, reference may be made to the description based on fig. 1 to fig. 6, which is not repeated herein.
According to the window processing method of the present invention, in response to an operation of opening the transparency setting function of the window of the target application, an operation of changing the transparency of the window of the target application is monitored. Adjusting the transparency of the window of the target application in response to listening for an operation that changes the transparency of the window of the target application. Therefore, the invention provides the function of adjusting the transparency of the window, so that a user can adjust the transparency of any window. Therefore, when a plurality of application windows need to be displayed on the screen of the computing device at the same time, a user can display all the windows on the current screen by adjusting the transparency of the windows, and the target windows controlled by the windows can occupy enough screen space, so that the user experience can be improved.
Moreover, based on the window processing method provided by the invention, the user can adjust the transparency of the application window by sliding the mouse wheel, so that the method is convenient and quick, and the user experience is further improved. In addition, the window processing method can be realized in a window manager, so that the transparency of any window of the application in the computing equipment can be adjusted.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the window processing method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (11)

1. A window processing method adapted to be executed in a window manager of a computing device having one or more applications running therein, the method comprising:
in response to an operation of opening a transparency setting function of a window of a target application of the one or more applications, monitoring an operation of changing transparency of the window;
and adjusting the transparency of the window in response to monitoring the operation of changing the transparency of the window.
2. The method of claim 1, wherein the operation of changing the transparency of the window is an operation of sliding a mouse wheel, and
the step of adjusting the transparency of the window in response to monitoring the operation of changing the transparency of the window comprises:
determining the operation of changing the transparency of the window to be transparency increasing operation or transparency reducing operation according to the sliding direction of a mouse roller;
if the operation for changing the transparency of the window is the operation for increasing the transparency, increasing the transparency of the window;
and if the operation for changing the transparency of the window is the operation for reducing the transparency, reducing the transparency of the window.
3. The method of claim 2, wherein the step of increasing the transparency of the window comprises:
when the sliding of the mouse wheel is monitored to be a preset distance, the transparency of the window is increased by a first preset value;
in response to the transparency of the window increasing to a second predetermined value, the increase in transparency of the window is stopped.
4. A method as claimed in claim 2 or 3, wherein the step of reducing the transparency of the window comprises:
when the mouse roller slides for a preset distance, the transparency of the window is reduced by a first preset value;
in response to the transparency of the window decreasing to a third predetermined value, ceasing the decreasing of the transparency of the window.
5. The method of any of claims 1-4, further comprising:
and responding to the operation of starting the transparency setting function of the window, and modifying the transparency of the window into a preset value.
6. The method of any of claims 1-5, wherein the operation of opening a transparency setting function of a window of a target application of the one or more applications comprises a triggering operation of a transparency interface in the window.
7. The method of claim 6, further comprising:
and responding to the operation of starting the transparency setting function of the window, displaying the current transparency of the window on the screen of the computing equipment, and switching the style of a mouse cursor in the window into a preset style.
8. The method of claim 6 or 7, wherein when the tab of the window of a number of the one or more applications is drawn by the corresponding application, the size of the tab of its window is sent by the number of applications to the window manager.
9. A window processing method adapted to be executed in an application of a computing device, the method comprising:
responding to the operation of starting the transparency setting function of the window of the application, and monitoring the operation of changing the transparency of the window;
in response to listening to the operation of changing the transparency of the window, sending an adjustment request for adjusting the transparency of the window to a window manager of the computing device, so that the window manager adjusts the transparency of the window based on the adjustment request.
10. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-9.
11. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-9.
CN202210539648.0A 2022-05-17 2022-05-17 Window processing method, computing device and readable storage medium Pending CN114935990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210539648.0A CN114935990A (en) 2022-05-17 2022-05-17 Window processing method, computing device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210539648.0A CN114935990A (en) 2022-05-17 2022-05-17 Window processing method, computing device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114935990A true CN114935990A (en) 2022-08-23

Family

ID=82864969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210539648.0A Pending CN114935990A (en) 2022-05-17 2022-05-17 Window processing method, computing device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114935990A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030142132A1 (en) * 2002-01-28 2003-07-31 International Business Machines Corporation Selectively adjusting the translucency of windows in response to a scroll wheel rotation
US20040179017A1 (en) * 2003-01-31 2004-09-16 Nvidia Corporation System and method for providing transparent windows of a display
US20130104065A1 (en) * 2011-10-21 2013-04-25 International Business Machines Corporation Controlling interactions via overlaid windows
US8495514B1 (en) * 2005-06-02 2013-07-23 Oracle America, Inc. Transparency assisted window focus and selection
US20150378572A1 (en) * 2007-02-14 2015-12-31 International Business Machines Corporation Managing transparent windows
CN106303653A (en) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 A kind of image display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030142132A1 (en) * 2002-01-28 2003-07-31 International Business Machines Corporation Selectively adjusting the translucency of windows in response to a scroll wheel rotation
US20040179017A1 (en) * 2003-01-31 2004-09-16 Nvidia Corporation System and method for providing transparent windows of a display
US8495514B1 (en) * 2005-06-02 2013-07-23 Oracle America, Inc. Transparency assisted window focus and selection
US20150378572A1 (en) * 2007-02-14 2015-12-31 International Business Machines Corporation Managing transparent windows
US20130104065A1 (en) * 2011-10-21 2013-04-25 International Business Machines Corporation Controlling interactions via overlaid windows
CN106303653A (en) * 2016-08-12 2017-01-04 乐视控股(北京)有限公司 A kind of image display method and device

Similar Documents

Publication Publication Date Title
US10754603B2 (en) Systems, devices, and methods for dynamically providing user interface controls at a touch-sensitive secondary display
EP3465408B1 (en) Systems, devices, and methods for dynamically providing user interface controls at a touch-sensitive secondary display
US10235040B2 (en) Controlling application windows in an operating system
US9317201B2 (en) Predictive virtual keyboard
KR101541147B1 (en) Dynamic virtual input device configuration
US7992101B1 (en) Method and apparatus for controlling a display of a data processing system
US9606989B2 (en) Multiple input language selection
US5771032A (en) Method, system, and memory for modifying a window as information is being scrolled
US20180196582A1 (en) Method and electronic device for managing data items
WO2023045927A1 (en) Object moving method and electronic device
CN113296651A (en) Window management method and computing device
EP3649543A1 (en) Proximal menu generation
CN114935990A (en) Window processing method, computing device and readable storage medium
US9552132B2 (en) Application program preview interface and operation method thereof
CN114860149A (en) Content editing control method and device, electronic equipment and storage medium
US9804777B1 (en) Gesture-based text selection
CN115080175B (en) Display method, display device, computing equipment and readable storage medium
US11921981B2 (en) Windowing container
CN114968004A (en) Window processing method, computing device and readable storage medium
CN112799565B (en) Content list display method and computing device
CN115629832A (en) Display method, device, computing equipment and storage medium
CN115061771A (en) Display method, display device, computing equipment and storage medium
CN114880034A (en) Method and device for forcibly closing application program
CN115344151A (en) Display method and device of suspension control and storage medium
CN114817161A (en) Copying and pasting method and computing device

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