Application window display method, computing device and storage medium
By obtaining the configuration properties of the application window and generating new configuration properties according to the desktop background, the problem of applications in the existing technology that repeatedly build interface loading logic is solved, and more efficient window drawing and lower memory overhead are achieved, improving user experience.
Patent Information
- Application Number
- CN202111578998.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In the prior art, applications need to repeatedly build the same calling logic to load the interface, resulting in code duplication and memory overhead.
Draw the application's window by obtaining the configuration properties of the window to be drawn by the application and generating new configuration properties based on the background parameters of the desktop background. This method reduces the repeated construction logic of the application when loading the interface and improves the drawing efficiency.
This method reduces the repeated construction logic of the application when loading the interface, improves the drawing speed of the application window, reduces the system's memory overhead, and improves the user's operating experience.
Smart Images

Figure CN114281456B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of operating systems, and in particular to an application window display method, a computing device and a storage medium. Background Art
[0002] With the development of computer technology, people are increasingly using various applications to complete their work when using computers. When using applications, sometimes it is necessary to set window styles for the applications so that the applications can present personalized interfaces and become beautiful and easy to use.
[0003] In the prior art, an interface for loading an interface is usually constructed so that all applications can load the interface by themselves through the interface. When an application loads an interface in this way, each application needs to build the same calling logic and load the interface by itself according to the interface, which not only requires repeated code construction, but also increases the overall memory overhead of the system when it is running.
[0004] Therefore, a new application window display method is needed. Summary of the invention
[0005] To this end, the present invention provides an application window display method to try to solve or at least alleviate the above problems.
[0006] According to one aspect of the present invention, there is provided an application window display method, which is suitable for execution in a computing device, wherein a desktop is constructed in the computing device and one or more applications are running, and the method comprises the steps of: obtaining a first configuration attribute of a first window to be drawn by the application; obtaining a first desktop background of the desktop, and generating a second configuration attribute of the first window to be drawn by the application based on the background parameters of the first desktop background and the first configuration attribute; obtaining the first desktop background based on the second configuration attribute, and drawing the first window of the application on the desktop.
[0007] Optionally, in the method according to the present invention, a window attribute list is also stored in the computing device, and the method also includes the steps of: storing the characteristic value of the first configuration attribute in the window attribute list; generating the second configuration attribute of the window to be drawn by the application according to the background parameters of the first desktop background and the first configuration attribute, including the steps of: determining whether the characteristic value of the first configuration attribute exists in the window attribute list; if so, adding the background parameters of the first desktop background to the first configuration attribute to generate the second configuration attribute.
[0008] Optionally, in the method according to the present invention, the second configuration attribute includes multiple first window parameters, obtaining the first desktop background according to the second configuration attribute, and drawing the first window of the application on the desktop includes the steps of: determining whether each first window parameter in the second configuration attribute is valid; if each first window parameter in the second configuration attribute is valid, then obtaining the first desktop background according to the second configuration attribute, and drawing the first window of the application according to the first desktop background and the multiple first window parameters.
[0009] Optionally, in the method according to the present invention, drawing the first window of the application according to the first desktop background and multiple first window parameters includes the steps of: determining the size of the window background of the first window according to the first window parameters; drawing the first window of the application according to the size of the window background of the first window and the first desktop background.
[0010] Optionally, the method according to the present invention also includes the steps of: when receiving an adjustment instruction to adjust the window of an application, obtaining a third configuration attribute of a second window to be drawn by the application; obtaining a first desktop background of the desktop, and generating a fourth configuration attribute of the second window to be drawn by the application based on the background parameters of the first desktop background and the third configuration attribute; and drawing the second window of the application on the desktop according to the fourth configuration attribute.
[0011] Optionally, in the method according to the present invention, the fourth configuration attribute includes multiple second window parameters, and drawing the second window of the application on the desktop according to the fourth configuration attribute includes the steps of: determining the window background size of the second window according to the second window parameters; and drawing the second window of the application according to the window background size of the second window and the first desktop background.
[0012] Optionally, the method according to the present invention also includes the steps of: when the desktop background of the desktop is changed from the first desktop background to the second desktop background, generating a fifth configuration attribute based on the background parameters of the second desktop background and the second configuration attribute for drawing the first window; and drawing the third window of the application on the desktop according to the fifth configuration attribute.
[0013] Optionally, in the method according to the present invention, the fifth configuration attribute includes multiple third window parameters, and drawing the third window of the application on the desktop according to the fifth configuration attribute includes the steps of: determining the size of the window background of the third window according to the third window parameters; and drawing the third window of the application according to the size of the window background of the third window and the second window background.
[0014] According to another aspect of the present invention, a computing device is provided, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing the application window display method according to the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium storing one or more programs is provided. The one or more programs include instructions that, when executed by a computing device, cause the computing device to execute the application window display method according to the present invention.
[0016] The present invention discloses an application window display method, which is suitable for execution in a computing device. A desktop is constructed in the computing device, and one or more applications are running. The present invention obtains the first configuration attribute of the first window to be drawn by the application when drawing the first window of the first application, then obtains the first desktop background of the desktop, and generates the second configuration attribute of the first window to be drawn by the application according to the background parameter of the first desktop background and the first configuration attribute, then obtains the first desktop background according to the second configuration attribute, and draws the first window of the application on the desktop. The present invention obtains the first configuration attribute of the window to be displayed by the application, and then modifies the first configuration attribute according to the first desktop background of the desktop, so that the window of the application can be drawn on the desktop according to the desktop background, which speeds up the speed of the application drawing the window and improves the user experience of using the operating system and the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. By reading the following detailed description in conjunction with the accompanying drawings, the above and other purposes, features and advantages disclosed by the present invention will become more apparent. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0018] Figure 1 A schematic diagram showing an application and an operating system running in a computing device according to an exemplary embodiment of the present invention is shown;
[0019] Figure 2 shows a block diagram of a computing device 200 according to an exemplary embodiment of the present invention; and
[0020] Figure 3 A schematic flow chart of an application window display method 300 according to an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION
[0021] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to enable the scope of the present disclosure to be fully conveyed to those skilled in the art. The same reference numerals generally refer to the same components or elements.
[0022] Figure 1 FIG. 2 shows a schematic diagram of running applications and an operating system in a computing device according to an exemplary embodiment of the present invention. Figure 1 As shown, an operating system 140 is running in the computing device 200, and applications 111 and 112 are running based on the operating system 140. Figure 1 The number of applications running in the computing device shown is only exemplary, and the present invention does not limit the number and types of applications running in the computing device.
[0023] The computing device 200 also includes a window manager 120 and an interface drawing unit 130. The interface drawing unit 130 includes a custom style module 131, a native style module 132, and a style drawing module 133. The operating system 140 obtains the configuration properties of the application 111 or the application 112 through the window manager 120, and modifies the configuration properties of the application 111 or the application 112 through the style drawing module 133. The custom style module 131 and the native style module 132 provide a window pointer for modifying the configuration properties. When the window of the application is drawn for the first time, the custom style module 131 provides the window pointer, and then the application is added to the native style module 132. When the window of the application is not drawn for the first time, the native style module 132 provides the window pointer.
[0024] Among them, the window manager 120 can be implemented as a dde-kwin window manager, the interface drawing unit 130 can be implemented as a DTK (deepin tool kit), the custom style module 131 can be implemented as a dtkweigiht library, the native style module 132 can be implemented as a dtkgui library, and the style drawing module 133 can be implemented as a qt5platform-plugins library. The present invention does not limit the specific implementation of each unit and module.
[0025] The window manager 120 also includes a special effect plug-in module 121. The special effect plug-in module 121 includes one or more textures, and one is selected as a preset texture. When drawing the window background, the preset texture is added to the desktop background to obtain a desktop background with the preset texture added. When the preset texture is added to the desktop background to obtain the desktop background with the preset texture added, hardware acceleration can be performed. According to one embodiment of the present invention, the computing device also includes a graphics card. When hardware acceleration is performed, OpenGL in the graphics card is called to perform hardware acceleration. The special effect plug-in module 121 can be implemented as an effect plug-in module, and the present invention does not limit the specific implementation method of the special effect plug-in module 121.
[0026] The special effect plug-in module 121 is also suitable for being called by the operating system 140 to store the characteristic value of the first configuration attribute in the window attribute list in the window manager. The style drawing module 133 is also suitable for being called by the operating system 140 to determine whether there is a characteristic value of the first configuration attribute in the window attribute list, and if so, to add the background parameter of the first desktop background to the first configuration attribute to generate a second configuration attribute.
[0027] The style drawing module 133 is further adapted to be called by the operating system 140 to determine whether each window parameter in the configuration attribute is valid when the operating system 140 draws a window.
[0028] Figure 2 FIG. 2 shows a block diagram of a computing device 200 according to an exemplary embodiment of the present invention. Figure 2 As shown, in a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between processor 204 and system memory 206.
[0029] Depending on the desired configuration, the processor 204 can be any type of processor, including but not limited to: a microprocessor (μP), a microcontroller (μC), a digital information processor (DSP), or any combination thereof. The processor 204 can include one or more levels of cache such as a primary cache 210 and a secondary cache 212, a processor core 214, and registers 216. An example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 218 can be used with the processor 204, or in some implementations, the memory controller 218 can be an internal part of the processor 204.
[0030] Depending on the desired configuration, the system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 may include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the program 222 may be arranged to be executed by one or more processors 204 on the operating system using the program data 228 to execute the instructions 223 of the method 300 according to the present invention.
[0031] The computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus / interface controller 230. At least a portion of the operating system 220, the program 222, and the data 224 may be stored on the removable storage 236 and / or the non-removable storage 238, and when the computing device 200 is powered on or the program 222 is to be executed, it is loaded into the system memory 206 via the storage interface bus 234 and executed by the one or more processors 204.
[0032] The computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 258. Example communication devices 246 may include a network controller 260, which may be arranged to communicate with one or more other computing devices 200 via a network communication link via one or more communication ports 264.
[0033] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be carried out in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.
[0034] In the computing device 200 according to the present invention, the program 222 includes multiple program instructions of the application window display method 300, and these program instructions can instruct the processor 204 to execute some steps of the application window display method 300 running in the computing device 200 of the present invention, so that various parts in the computing device 200 can manage files simultaneously by executing the application window display method 300 of the present invention.
[0035] The computing device 200 can be implemented as a server, such as a file server, a database, a server, an application server, etc. These electronic devices can be such as personal digital assistants (PDAs), wireless network browsing devices, application-specific devices, or hybrid devices that can include any of the above functions. It can be implemented as a personal computer including desktop computers and notebook computer configurations. In some embodiments, the computing device 200 is configured to apply the window display method 300.
[0036] Figure 3 A flow chart of an application window display method 300 according to an exemplary embodiment of the present invention is shown. The application window display method 300 is suitable for running in a computing device, which includes an internal memory, has a desktop, and runs one or more applications. Multiple desktops can be built in the computing device, each of which can be used to display the window of the application and is provided with a desktop background, i.e., wallpaper. The desktop background of the desktop can be replaced as needed, and the desktop background of each desktop can be set as needed; the present invention does not limit the number of desktops built in the computing device, and the desktop can be implemented as a virtual desktop, which is not limited to the display device connected to the computing device. During the operation of the computing device, the desktop displayed on the display device can be switched in a variety of ways.
[0037] The application can be implemented as a custom application or a system application, and the present invention does not limit the type and nature of the application running in the computing device. In addition, any application running in the computing device can display an application window on the desktop according to the application window display method of the present invention.
[0038] In order to personalize the window of the application and make the application not need to set the window by itself, and not to repeatedly set the window construction logic for multiple applications, the present invention associates the window background of the window displayed by the application according to the desktop to be displayed by the application, and sets the implementation function of the application to achieve that the window of the application and the desktop use the same background and form the same theme as the desktop.
[0039] The computing device also runs an operating system, which can be implemented as a Linux system and a Windows system, etc. The present invention does not limit the type of the operating system. The application window display method is further suitable for being executed in the operating system by the kernel of the operating system.
[0040] In the application window display method, step S310 is first performed: obtaining the first configuration attribute of the first window to be drawn by the application. The application sets the first configuration attribute of the first window, and the first configuration attribute includes permission attribute, scaling attribute, filling attribute and size attribute.
[0041] In the first configuration attribute, the permission attribute stipulates that the first application does not draw the first window by itself, but the operating system draws the first window according to the desktop to be displayed by the first application. The permission attribute can be specifically set to: setAttribute(Qt::WA_NoBackground).
[0042] The scaling property specifies the scaling method of the desktop background when drawing the window background of the first window according to the desktop background, including scaling according to the screen resolution size and scaling according to the window size; the scaling property can be set through the parameter WallpaperScaleModesMode.
[0043] The fill attribute specifies the filling method of the desktop background when drawing the window background of the first window according to the desktop background, including proportional filling and uniform filling; when proportional filling is used, the aspect ratio of the picture used as the desktop background is maintained, and when uniform filling is used, the aspect ratio of the picture used as the desktop background is not restricted; the fill attribute can be set through the parameter WallpaperFillModefMode.
[0044] The size attribute specifies the size of the first window to be drawn by the first application, including the length and width of the first window, etc. The size attribute can be used as the initial size of the first window, and the size of the first window can be freely adjusted after being displayed on the desktop.
[0045] Subsequently, step S320 is executed to obtain the first desktop background of the desktop, and the second configuration attribute of the first window to be drawn by the application is generated according to the background parameters of the first desktop background and the first configuration attribute. In order to be able to draw the first window according to the first desktop background of the desktop when drawing the window on the desktop, the background parameters of the first desktop background are stored in the first configuration attribute as a newly added background attribute. The second configuration attribute includes the first configuration attribute and the background attribute. The computing device also includes an external memory, and the background parameters of the first desktop background are the storage location of the first desktop background in the external memory.
[0046] According to an embodiment of the present invention, a window attribute list is also stored in the computing device, and the window attribute list records the window attributes supported by the computing device for drawing. After the configuration attributes of the window are stored in the window attribute list, the window can be drawn according to the configuration attributes and the configuration attributes can be modified. Specifically, when storing, the characteristic value of the first configuration attribute is stored in the window attribute list, that is, the configuration attribute is stored in the window attribute list.
[0047] Generating the second configuration attribute of the window to be drawn by the application according to the background parameters of the first desktop background and the first configuration attribute includes the steps of: determining whether there is a characteristic value of the first configuration attribute in the window attribute list; if so, adding the background parameters of the first desktop background to the first configuration attribute to generate the second configuration attribute.
[0048] If the characteristic value of the first configuration attribute does not exist in the window attribute list, the first configuration attribute cannot be modified, and the first configuration attribute of the application is re-acquired and stored in the window attribute list.
[0049] According to an embodiment of the present invention, after the second configuration attribute is generated, the second configuration attribute is stored in the internal memory. By storing the second configuration attribute in the internal memory, when drawing the application window, the configuration attribute of the window to be drawn can be directly obtained from the memory, without having to obtain the configuration attribute from the application each time, thereby improving the speed of drawing the application window.
[0050] Furthermore, when the parameters of the desktop are modified or the window changes, such as when the desktop background of the desktop changes or the size of the window changes, the configuration properties can be directly obtained from the internal memory, and the configuration properties can be modified. The desktop background is redrawn according to the modified configuration properties, thereby quickly redrawing the drawn window to achieve the modification of the window.
[0051] Finally, step S330 is executed to obtain the first desktop background according to the second configuration attribute, and draw the first window of the application on the desktop. When the second configuration attribute needs to be used, the second configuration attribute can be obtained from the internal memory.
[0052] The second configuration attributes include background attributes, and the first configuration attributes, specifically including background attributes, permission attributes, scaling attributes, padding attributes, and size attributes.
[0053] The second configuration attributes include a plurality of first window parameters, and the background attribute, the permission attribute, the scaling attribute, the filling attribute and the size attribute are all first window parameters in the second configuration attributes.
[0054] According to one embodiment of the present invention, before drawing the first window, it is also determined whether each first window parameter in the second configuration attribute is valid. Specifically, it is determined whether the background attribute, permission attribute, scaling attribute, fill attribute and size attribute in the second configuration attribute are all configured. If each first window parameter in the second configuration attribute is configured with a specific value, the first window is drawn normally. Otherwise, the window cannot be drawn normally and the configuration attributes are reconfigured.
[0055] If each first window parameter in the second configuration attribute is valid, then the first desktop background is obtained according to the second configuration attribute. Specifically, it can be determined by the permission attribute that the first window is drawn by the operating system, and then the storage location of the first desktop background in the external memory is determined according to the background attribute.
[0056] Then, the first desktop background is obtained from the external memory according to the storage location. When drawing the first window of the application according to the first desktop background and a plurality of first window parameters, the size of the window background of the first window is first determined according to the first window parameters. Specifically, when determining to use the first desktop background as the window background of the first window according to the scaling attribute, the filling attribute and the size attribute, the processing method of the first desktop background needs to be determined, including the scaling method, the filling method and the size of the processed window background.
[0057] Finally, the first window of the application is drawn according to the size of the window background of the first window and the first desktop background. Specifically, a preset texture is added to the first desktop background, and the window background of the first window is drawn with the first desktop background with the texture added according to the size of the window background; then, multiple components required to be displayed in the first window are drawn based on the window background of the first window to obtain the first window. When drawing the window background, it is necessary to add a preset texture to the desktop background serving as the window background. The preset texture is a special style rule added to the window background, which can be set in advance. The preset texture can be modified, and after the modification, the first window needs to be redrawn according to the modified preset texture.
[0058] The present invention does not limit the drawing position of the first window. If it is necessary to draw the first window on another desktop, the first window can be drawn by creating another desktop or on another existing desktop.
[0059] According to an embodiment of the present invention, when an adjustment instruction for adjusting a window of an application is received, a third configuration attribute of a second window to be drawn by the application is obtained. The adjustment instruction may be triggered by a user and is used to adjust the window of the application, and may change attributes such as the size of the window. The third configuration attribute may be obtained by modifying the first configuration attribute, such as by modifying the size attribute in the first configuration attribute.
[0060] Then, the first desktop background of the desktop is obtained, and the fourth configuration attribute of the second window to be drawn by the application is generated according to the background parameter of the first desktop background and the third configuration attribute. When generating the fourth configuration attribute, the storage location of the first desktop background in the external memory is added to the third configuration attribute as the background attribute of the fourth configuration attribute to obtain the fourth configuration attribute.
[0061] The fourth configuration attribute may then be stored in the internal memory so as to draw the second window according to the fourth configuration attribute. The fourth configuration attribute includes a plurality of second window parameters: background attribute, permission attribute, scaling attribute, filling attribute and size attribute.
[0062] Finally, the fourth configuration attribute is obtained from the internal memory, and the second window of the application is drawn on the desktop according to the fourth configuration attribute. When the second window of the application is drawn on the desktop according to the fourth configuration attribute, the first desktop background is obtained from the external memory according to the background attribute in the second window parameter of the second window, and the window background size of the second window is determined according to the scaling attribute, the filling attribute and the size attribute in the second window parameter; finally, the second window of the application is drawn according to the window background size of the second window and the first desktop background.
[0063] According to one embodiment of the present invention, when the desktop background of the desktop is changed from the first desktop background to the second desktop background, a fifth configuration attribute is generated according to the background parameters of the second desktop background and the second configuration attribute for drawing the first window. When generating the fifth configuration attribute, the background attribute in the second configuration attribute is modified to the background parameter of the second desktop background, that is, the storage location of the second desktop background in the external memory, to obtain the fifth configuration attribute.
[0064] Then, the fifth configuration attribute can be stored in the internal memory. Finally, the fifth configuration attribute is obtained from the internal memory, and the third window of the application is drawn on the desktop according to the fifth configuration attribute. The fifth configuration attribute includes a plurality of third window parameters: background attribute, permission attribute, scaling attribute, filling attribute and size attribute.
[0065] When drawing the third window of the application, the second desktop background is obtained from the external memory according to the background attributes, the size of the window background of the third window is determined according to the scaling attribute, the filling attribute and the size attribute in the first window parameter, and then the third window of the application is drawn according to the size of the window background of the third window and the second window background.
[0066] According to one embodiment of the present invention, when a user uses an operating system and an application, a desktop display option is provided to the user, the desktop display option includes a special effects mode and a normal mode. When the user selects the special effects mode, the application window is displayed according to the application window display method of the present invention.
[0067] The present invention discloses an application window display method, which is suitable for execution in a computing device. A desktop is constructed in the computing device, and one or more applications are running. The present invention obtains the first configuration attribute of the first window to be drawn by the application when drawing the first window of the first application, then obtains the first desktop background of the desktop, and generates the second configuration attribute of the first window to be drawn by the application according to the background parameter of the first desktop background and the first configuration attribute, then obtains the first desktop background according to the second configuration attribute, and draws the first window of the application on the desktop. The present invention obtains the first configuration attribute of the window to be displayed by the application, and then modifies the first configuration attribute according to the first desktop background of the desktop, so that the window of the application can be drawn on the desktop according to the desktop background, which speeds up the speed of the application drawing the window and improves the user experience of using the operating system and the application. In the description provided herein, a large number of specific details are described. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some examples, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0068] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.
[0069] Those skilled in the art will appreciate that the modules or units or groups of the devices in the examples disclosed herein may be arranged in the device as described in the embodiment, or alternatively may be located in one or more devices different from the devices in the example. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0070] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or groups in the embodiments can be combined into one module or unit or group, and in addition they can be divided into multiple submodules or subunits or subgroups. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification can be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0071] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.
[0072] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0073] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0074] In the case where the program code is executed on a programmable computer, the computing device generally includes 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. The memory is configured to store the program code; the processor is configured to execute the application window display method of the present invention according to the instructions in the program code stored in the memory.
[0075] By way of example and not limitation, computer readable media include computer storage media and communication media. Computer readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. Any combination of the above is also included within the scope of computer readable media.
[0076] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0077] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and instructional purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art. The disclosure of the present invention is illustrative, rather than restrictive, with respect to the scope of the present invention.
Claims
1. A method for displaying an application window, suitable for being executed in a computing device, wherein a desktop is constructed in the computing device and one or more applications are running, the method comprising the steps of: Obtaining a first configuration attribute of a first window to be drawn by the application; Acquire a first desktop background of the desktop, and generate a second configuration attribute of the first window to be drawn by the application according to the background parameter of the first desktop background and the first configuration attribute, wherein the computing device further includes an external memory, the background parameter of the first desktop background is a storage location of the first desktop background in the external memory, and after the second configuration attribute is generated, the second configuration attribute is stored in the internal memory; Acquire a first desktop background according to the second configuration attribute, and draw a first window of the application on the desktop; The first configuration attribute includes a permission attribute, a scaling attribute, a filling attribute, and a size attribute, wherein the permission attribute stipulates that the first application does not draw the first window by itself, but the operating system draws the first window according to the desktop to be displayed by the first application; The scaling attribute specifies the scaling method of the desktop background when drawing the window background of the first window according to the desktop background, including scaling according to the screen resolution size and scaling according to the window size; The fill attribute specifies the filling method of the desktop background when drawing the window background of the first window according to the desktop background, including proportional filling and uniform filling. When proportional filling is used, the aspect ratio of the image used as the desktop background is maintained, and when uniform filling is used, the aspect ratio of the image used as the desktop background is not restricted; The size attribute specifies the size of the first window to be drawn by the first application, including the length and width of the first window.
2. The method of claim 1, wherein: The computing device also stores a window attribute list, and the method further comprises the steps of: storing the characteristic value of the first configuration attribute in the window attribute list; The step of generating the second configuration attribute of the first window to be drawn by the application according to the background parameter of the first desktop background and the first configuration attribute comprises the following steps: Determine whether the characteristic value of the first configuration attribute exists in the window attribute list; If it exists, the background parameters of the first desktop background are added to the first configuration attribute to generate the second configuration attribute.
3. The method of claim 2, wherein: The second configuration attribute includes a plurality of first window parameters, and the step of obtaining the first desktop background according to the second configuration attribute and drawing the first window of the application on the desktop includes the following steps: Determining whether each first window parameter in the second configuration attribute is valid; If each first window parameter in the second configuration attribute is valid, then the first desktop background is obtained according to the second configuration attribute, and the first window of the application is drawn according to the first desktop background and a plurality of first window parameters.
4. The method of claim 3, wherein: Drawing the first window of the application according to the first desktop background and a plurality of first window parameters comprises the steps of: determining a size of a window background of the first window according to the first window parameter; The first window of the application is drawn according to the size of the window background of the first window and the first desktop background.
5. The method according to any one of claims 1 to 4, wherein: The method further comprises the steps of: When receiving an adjustment instruction for adjusting the window of the application, obtaining a third configuration attribute of a second window to be drawn by the application; Acquire a first desktop background of the desktop, and generate a fourth configuration attribute of a second window to be drawn by the application according to background parameters of the first desktop background and a third configuration attribute; The second window of the application is drawn on the desktop according to the fourth configuration attribute.
6. The method of claim 5, wherein: The fourth configuration attribute includes a plurality of second window parameters, and drawing the second window of the application on the desktop according to the fourth configuration attribute includes the steps of: determining a window background size of the second window according to the second window parameter; The second window of the application is drawn according to the window background size of the second window and the first desktop background.
7. The method according to any one of claims 1 to 4, wherein: The method further comprises the steps of: When the desktop background of the desktop is changed from the first desktop background to the second desktop background, generating a fifth configuration attribute according to the background parameter of the second desktop background and the second configuration attribute for drawing the first window; A third window of the application is drawn on the desktop according to the fifth configuration attribute.
8. The method of claim 7, wherein: The fifth configuration attribute includes a plurality of third window parameters, and drawing the third window of the application on the desktop according to the fifth configuration attribute includes the steps of: Determine the size of the window background of the third window according to the third window parameter; The third window of the application is drawn according to the size of the window background of the third window and the second desktop background.
9. A computing device comprising: one or more processors; Memory; as well as One or more devices comprising instructions for executing the method according to any one of claims 1-8.
10. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a computing device, cause the computing device to perform the method according to any one of claims 1-8.