CN114281457A - Application window display method, computing device and storage medium - Google Patents

Application window display method, computing device and storage medium Download PDF

Info

Publication number
CN114281457A
CN114281457A CN202111579216.4A CN202111579216A CN114281457A CN 114281457 A CN114281457 A CN 114281457A CN 202111579216 A CN202111579216 A CN 202111579216A CN 114281457 A CN114281457 A CN 114281457A
Authority
CN
China
Prior art keywords
desktop
application
window
mapping table
background
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.)
Granted
Application number
CN202111579216.4A
Other languages
Chinese (zh)
Other versions
CN114281457B (en
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 CN202111579216.4A priority Critical patent/CN114281457B/en
Publication of CN114281457A publication Critical patent/CN114281457A/en
Application granted granted Critical
Publication of CN114281457B publication Critical patent/CN114281457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an application window display method, a computing device and a storage medium, and the method comprises the following steps: when a first window of a first application is drawn, a first desktop background of a first desktop is stored in a storage, and a first memory mapping table is constructed. And then generating a second configuration attribute of the first window according to the first memory mapping table and the first configuration attribute of the first window, acquiring the first desktop background, and drawing the first window on the first desktop, thereby realizing uniform configuration of the applied windows according to the desktop background. And other application programs do not need to obtain pictures and redraw the window by themselves, the configuration attributes of other applications are generated by the first memory mapping table, the desktop background is obtained from the internal memory according to the generated configuration attributes, and the window is drawn. The method and the device do not need to repeatedly construct calling logic in the application, reduce the consumption of the memory in the system, accelerate the speed of drawing the window by the application, and improve the use experience of the user in using the operating system and the application.

Description

Application window display method, computing device and storage medium
Technical Field
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
With the development of computer technology, people use various application programs to complete work more and more in the process of using a computer; in the process of using the application program, sometimes a window style needs to be set for the application program, so that the application program presents a personalized interface, and the application program becomes beautiful and easy to use.
In the prior art, an interface for loading an interface is usually constructed, so that all applications load the interface by themselves through the interface. When the application program loads the interface in this way, each application program needs to construct the same call logic and loads the interface according to the interface by itself, which not only results in the need to repeatedly construct codes, but also increases the overall memory overhead when the system runs.
For this reason, a new application window display method is required.
Disclosure of Invention
To this end, the present invention provides an application window display method in an attempt to solve or at least alleviate the above-existing problems.
According to an aspect of the present invention, there is provided an application window display method adapted to be executed in a computing device, the computing device including an internal memory, the computing device having a first desktop built therein and running a plurality of applications, the method comprising the steps of: acquiring a first configuration attribute of a first window to be drawn by a first application; when a first window is drawn on a first desktop, acquiring a first desktop background of the first desktop, and storing the first desktop background in an internal memory; constructing a first memory mapping table according to the first desktop and the storage position of the first desktop background in the internal storage; generating a second configuration attribute of the first window according to the first configuration attribute and the first memory mapping table; and acquiring a first desktop background according to the second configuration attribute, and drawing a first window on the first desktop.
Optionally, in the method according to the present invention, further comprising the step of: acquiring a fourth configuration attribute of a third window to be drawn by the second application; if the third window needs to be drawn on the first desktop, generating a fifth configuration attribute of the third window according to the fourth configuration attribute and the first memory mapping table; and acquiring a first desktop background according to the fifth configuration attribute, and drawing a third window on the first desktop.
Optionally, in the method according to the present invention, further comprising the step of: constructing a first application mapping table of a first desktop according to the application of the first desktop display window, wherein the first application mapping table comprises the first desktop, and a first application and a second application of the first desktop display window; when the first desktop background of the first desktop is changed into a second desktop background, the second desktop background is stored in an internal memory; generating a second memory mapping table according to the storage position of the second desktop background stored in the internal storage and the first memory mapping table; and redrawing windows of the first application and the second application in the first desktop display window according to the second storage mapping table and the first application mapping table.
Optionally, in the method according to the present invention, redrawing the window of the application on the first desktop display window according to the second storage mapping table and the first application mapping table includes: determining the application of the first desktop display window according to the first application mapping table; acquiring a second desktop background from the internal memory according to a second memory mapping table; and redrawing the windows of the first application and the second application in the first desktop display window according to the second desktop background.
Optionally, in the method according to the present invention, further comprising the step of: when a second desktop is constructed in the computing equipment and a window of a second application needs to be moved to the second desktop for displaying according to a received switching instruction, acquiring a third desktop background of the second desktop and storing the third desktop background in an internal memory; generating a third memory mapping table according to the storage positions of the first memory mapping table, the second desktop and the third desktop background in the internal memory; generating a sixth configuration attribute according to a fourth configuration attribute of the second application and the third memory mapping table; and drawing a fourth window of the second application on the second desktop according to the sixth configuration attribute.
Optionally, in the method according to the present invention, further comprising the step of: and constructing a second application mapping table of the second desktop according to the application of the second desktop display window, wherein the second application mapping table comprises the second desktop and the second application of the second desktop display window, so that when the desktop background of the second desktop changes, the window of the second application is redrawn according to the second application mapping table.
Optionally, in the method according to the present invention, further comprising the step of: when the window with the application in the first desktop is moved to other desktops to be displayed, judging whether the window with other applications is displayed in the first desktop; and if the first desktop does not display other application windows, releasing the memory for storing the first desktop background in the internal memory, and deleting the first desktop and the corresponding first desktop background in the third memory mapping table to obtain a fourth memory mapping table.
Optionally, in the method according to the present invention, further comprising the step of: when an instruction for destroying the first desktop is received, deleting the first desktop and the corresponding desktop background in the third memory mapping table to obtain a fifth memory mapping table; generating a third configuration attribute of the first application according to the second configuration attribute and a fifth memory mapping table; and drawing a second window of the first application on the second desktop according to the third configuration attribute.
Optionally, in the method according to the present invention, further comprising the step of: and releasing the memory for storing the first desktop background in the internal memory.
According to another aspect of the present invention, there is provided a computing device 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, the one or more programs including instructions for performing the application window display method according to the present invention.
According to still another aspect of the present invention, there is provided 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 an application window display method according to the present invention.
The invention discloses an application window display method which is suitable for being executed in computing equipment. The computing device comprises an internal storage, a first desktop is built in the computing device, and a plurality of applications run on the first desktop. And then, generating a second configuration attribute of the first window according to the first memory mapping table and the first configuration attribute of the first window, acquiring a first desktop background according to the second configuration attribute, and drawing the first window on the first desktop, thereby realizing uniform configuration of the applied windows according to the desktop background. And other application programs do not need to obtain pictures and redraw the window by themselves, the configuration attributes of other applications are generated by the first memory mapping table, the desktop background is obtained from the internal memory according to the generated configuration attributes, and the window is drawn. According to the invention, the call logic does not need to be repeatedly constructed in the application, so that the consumption of the memory in the system is reduced, the window drawing speed of the application is increased, and the use experience of the user in using the operating system and the application is improved.
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 when read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a schematic diagram of running applications and an operating system in a computing device according to an exemplary embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention; and
FIG. 3 illustrates a flowchart of an application window display method 300 according to an exemplary 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 to 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. Like reference numerals generally refer to like parts or elements.
FIG. 1 is a diagram illustrating an application and operating system running in a computing device according to an exemplary embodiment of the invention. As shown in fig. 1, the computing device 200 runs the operating system 140, and runs the applications 111 and 112 based on the operating system 140, the number of applications run in the computing device shown in fig. 1 is only exemplary, and the invention does not limit the number and kinds of applications run in the computing device.
Also included in the computing device 200 are a window manager 120 and an interface rendering 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 acquires the configuration attribute of the application 111 or 112 through the window manager 120 and modifies the configuration attribute of the application 111 or 112 through the style drawing module 133. The custom style module 131 and the native style module 132 provide a window pointer that modifies the configuration attributes, the window pointer being provided by the custom style module 131 when the window of the application is first rendered, the subsequent application being added to the native style module 132, the window pointer being provided by the native style module 132 when the window of the application is not first rendered.
The window manager 120 may be implemented as dde-kwin window manager, the interface drawing unit 130 may be implemented as dtk (deep tool kit), a depth tool suite, the custom style module 131 may be implemented as dtkweight library, the native style module 132 may be implemented as dtkgui library, and the style drawing module 133 may be implemented as qt5 platform-plugs library. The invention is not limited to the specific implementation of each unit and module.
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention. As shown in FIG. 2, in a basic configuration 202, a 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 the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, 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. 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 execute the instructions 223 of the method 300 according to the invention on an operating system by one or more processors 204 using the program data 228.
Computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus/interface controller 230. Operating system 220, programs 222, and at least a portion of data 224 can be stored on removable storage 236 and/or non-removable storage 238, and loaded into system memory 206 via storage interface bus 234 and executed by one or more processors 204 when computing device 200 is powered on or programs 222 are to be executed.
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. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may 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 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to communicate with one or more other computing devices 200 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In a computing device 200 according to the present invention, the program 222 comprises program instructions of the application window display method 300 that may direct the processor 204 to perform some of the steps of the application window display method 300 operating in the computing device 200 of the present invention such that various portions of the computing device 200 enable simultaneous management of files by performing the application window display method 300 of the present invention.
Computing device 200 may be implemented as a server, e.g., a file server, a database, a server, an application server, etc., which may be, for example, a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. May be implemented as a personal computer including both desktop and notebook computer configurations, and in some embodiments, the computing device 200 is configured to apply the window display method 300.
FIG. 3 illustrates a flowchart of an application window display method 300 according to an exemplary embodiment of the invention. The application window display method 300 is adapted to run in a computing device that includes internal memory, is built with a first desktop, and runs a plurality of applications. Multiple desktops can be built into a computing device, each desktop can be used to display a window of an application and be provided with a desktop background, i.e., wallpaper. The desktop background of the desktop can be replaced according to the needs, and the desktop background of each desktop can be set according to the needs; the invention does not limit the number of the desktops constructed in the computing equipment, the desktops can be realized as virtual desktops, and are not limited by the display equipment connected with the computing equipment, and the desktops displayed on the display equipment can be switched in various ways in the running process of the computing equipment.
The application may be implemented as a custom application or a system application, and the invention is not limited as to the type or nature of the application running on the computing device. And any running application in the computing equipment can display the application window on the desktop according to the application window display method in the invention.
In order to set the window of the application in a personalized way, and enable the application not to set the window by itself, and the window logic is not repeatedly set and constructed when a plurality of applications are used, the invention sets the window background of the window displayed by the application in a related way according to the desktop to be displayed by the application, and sets the implementation function of the application, so that the window and the desktop of the application use the same background and form the same theme with the desktop.
The computing device also runs an operating system, and the operating system can be realized as a linux system, a windows system and the like. The application window display method is further adapted to be executed in an operating system by a kernel of the operating system.
In the application window display method, step S310 is first executed: a first configuration attribute of a first window to be drawn by a first application is obtained. The window to be drawn by the first application is a first window, and the first application sets a first configuration attribute of the first window, wherein the first configuration attribute comprises an authority attribute, a scaling attribute, a filling attribute and a size attribute.
In the first configuration attribute, the authority attribute specifies that the first application does not draw the first window by itself, and the operating system draws the first window according to the desktop to be displayed by the first application. The authority attribute can be specifically set as: setAttribute (Qt:: WA _ NoBackground).
The zooming attribute specifies the zooming mode of the desktop background when the window background of the first window is drawn according to the desktop background, and the zooming mode comprises zooming according to the resolution of a screen and zooming according to the size of a window; the zoom attribute may be set via the parameter WallpaperScaleMode mode.
The filling attribute specifies a filling mode of the desktop background when the window background of the first window is drawn according to the desktop background, and the filling mode comprises proportional filling and uniform filling; the aspect ratio of the picture as the desktop background is kept when the picture is filled in proportion, and the aspect ratio of the picture as the desktop background is not limited when the picture is uniformly filled; the fill property may be set by the parameter wallpaperfillmodefmode.
The size attribute specifies the size of the first window to be rendered by the first application, including the length and width of the first window, etc. The size attribute may be used as an initial size of the first window, and the size of the first window may be freely adjusted after the first window is displayed on the desktop.
Subsequently, step S320 is executed, and when the first window is drawn on the first desktop, the first desktop background of the first desktop is obtained, and the first desktop background is stored in the internal memory. In order to improve the speed of drawing the window when the window is drawn on the first desktop, the invention stores the first desktop background of the first desktop in the internal memory,
the invention does not limit the drawing position of the first window, and if the first window needs to be drawn on other desktops, the first window can be drawn by newly building other desktops or on other existing desktops.
Subsequently, step S330 is executed to construct a first memory mapping table according to the first desktop and the storage location of the first desktop background in the internal storage. The memory mapping table records the storage positions of the desktop and the desktop background in the internal memory. When a window needs to be displayed on a desktop, the storage positions of the desktop and a corresponding desktop background in an internal storage are recorded in a memory mapping table.
According to one embodiment of the invention, when a first desktop is built in the computing device and a first window of a first application needs to be displayed on the first desktop, a first desktop background corresponding to the first desktop is stored in the internal storage, and the first memory mapping table includes the first desktop and a storage location of the first desktop background in the internal storage. And according to the first memory mapping table, the storage position of the first desktop background of the corresponding first desktop in the internal memory can be obtained when the first desktop is searched. According to the storage position of the first desktop background in the internal memory, the first desktop background can be obtained from the internal memory, and the first window is drawn according to the first desktop background.
When the expression mode of the storage position of the internal memory of the first desktop background is not limited, the storage position can be expressed in a pointer mode. The storage position of the first desktop background in the internal memory and the first desktop background form a key value pair, and the first desktop background (value) can be acquired from the internal memory through the storage position (key) of the first desktop background in the internal memory.
Subsequently, step S340 is executed to generate a second configuration attribute of the first window according to the first configuration attribute and the first memory mapping table. And when the second configuration attribute is generated, adding the storage position of the first desktop background in the internal memory in the first configuration attribute as the background attribute. And according to the background attribute, the first desktop background can be obtained from the internal memory. The second configuration attribute comprises a background attribute, and the first configuration attribute specifically comprises a background attribute, a permission attribute, a zoom attribute, a fill attribute and a size attribute.
Finally, step S350 is executed, a first desktop background is obtained according to the second configuration attribute, and a first window is drawn on the first desktop. When the first window is drawn, the first window can be determined to be drawn by the operating system according to the authority attribute, then the storage position of the first desktop background in the internal memory is determined according to the background attribute, and then the first desktop background is obtained from the internal memory according to the storage position. And then determining the processing modes of the first desktop background, including the scaling mode, the filling mode and the size of the window background obtained by processing, when the first desktop background is used as the window background of the first window according to the scaling attribute, the filling attribute and the size attribute. After the window background of the first window is drawn, drawing a plurality of components required to be displayed by the first window based on the window background of the first window to obtain the first window.
According to an embodiment of the present invention, the present invention further obtains a fourth configuration attribute of a third window to be drawn by the second application. The window to be drawn by the second application is a third window, the second application sets a fourth configuration attribute of the third window, and the fourth configuration attribute comprises an authority attribute, a scaling attribute, a filling attribute and a size attribute.
And if the third window needs to be drawn on the first desktop, generating a fifth configuration attribute of the third window according to the fourth configuration attribute and the first memory mapping table. And when the fifth configuration attribute is generated, adding the storage position of the first desktop background in the internal memory as the background attribute into the fourth configuration attribute. The fifth configuration attribute includes a background attribute, a permission attribute, a zoom attribute, a fill attribute, and a size attribute.
And then, acquiring a first desktop background according to the fifth configuration attribute, and drawing a third window on the first desktop. When the third window is drawn, the third window can be determined to be drawn by the operating system according to the authority attribute in the fifth configuration attribute, then the storage position of the first desktop background in the internal memory is determined according to the background attribute, and then the first desktop background is obtained from the internal memory according to the storage position. And then determining the processing modes of the first desktop background, including the scaling mode, the filling mode and the size of the window background obtained by processing, when the first desktop background is used as the window background of the third window according to the scaling attribute, the filling attribute and the size attribute. And after the window background of the third window is drawn, drawing a plurality of components required to be displayed by the third window based on the window background of the third window to obtain the third window.
According to one embodiment of the invention, after the window is drawn in the first desktop, a first application mapping table of the first desktop is further constructed according to the application of the window displayed on the first desktop, and the first application mapping table comprises the first desktop and the first application and the second application displayed on the first desktop.
When the first desktop background of the first desktop is modified into the second desktop background, the second desktop background is stored in the internal storage, and the memory for storing the first desktop background in the internal storage is released, so that the storage space in the internal storage is left.
And then generating a second memory mapping table according to the storage position of the second desktop background stored in the internal storage and the first memory mapping table, wherein the second memory mapping table comprises the storage positions of the first desktop and the second desktop background in the internal storage, and the storage position of the second desktop background in the internal storage can be obtained by searching the first desktop in the second memory mapping table. The second desktop background may be retrieved from the internal memory by a storage location of the second desktop background in the internal memory.
And finally, redrawing the windows of the first application and the second application in the first desktop display window according to the second storage mapping table and the first application mapping table, wherein the method comprises the following steps: determining the application of the first desktop display window according to the first application mapping table; acquiring a second desktop background from the internal memory according to a second memory mapping table; and redrawing the windows of the first application and the second application in the first desktop display window according to the second desktop background. According to one embodiment of the invention, when a first window of a first application and a third window of a second application are drawn in a first desktop, a first application mapping table is constructed, the first application mapping table comprises the first desktop and the first application and the second application corresponding to the first desktop, and the application of the window displayed in the first desktop can be determined through the first application mapping table of the first desktop. And when the first desktop background of the first desktop is modified into the second desktop background, the first window and the third window need to be drawn again based on the second desktop background.
When the windows of the first application and the second application are redrawn based on the second desktop background, the configuration attributes of the windows of the first application and the second application are modified according to the second memory mapping table, specifically, the background attribute in the configuration file of the window is modified into the storage address of the internal storage of the second desktop background according to the second memory mapping table, so that a seventh configuration attribute of a fifth window to be redrawn by the first application and an eighth configuration attribute of a sixth window to be redrawn by the second application are obtained. The seventh configuration attribute comprises the first configuration attribute and a storage position of the second desktop background serving as the background attribute in the internal memory; the eighth configuration attribute includes a fourth configuration attribute and a storage location of the second desktop background as a background attribute in the internal memory.
Finally, according to the seventh configuration attribute, obtaining a second desktop background from the internal memory, and drawing a fifth window of the first application in the first desktop according to the seventh configuration attribute; and acquiring the background of the second desktop from the internal memory according to the eighth configuration attribute, and drawing a sixth window of the second application in the first desktop according to the eighth configuration attribute.
According to one embodiment of the invention, when a first window of a first application and a third window of a second application are displayed in a first desktop, and a second desktop is built in a computing device, and the window of the second application needs to be moved to the second desktop for display according to a received switching instruction, a third desktop background of the second desktop is obtained, and the third desktop background is stored in an internal memory. The second desktop may be newly built or already built when the first desktop exists.
And then generating a third memory mapping table according to the storage positions of the first memory mapping table, the second desktop and the third desktop background in the internal memory. The third memory mapping table includes storage locations of the first desktop and the first desktop background in the internal memory, and storage locations of the second desktop and the third desktop background in the internal memory. And querying the second desktop according to the third memory mapping table to obtain the storage position of the third desktop background in the internal memory, and obtaining the third desktop background from the internal memory according to the storage position of the third desktop background in the internal memory.
And then generating a sixth configuration attribute according to the fourth configuration attribute of the second application and the third memory mapping table. And when a sixth configuration attribute is generated, modifying the background attribute in the fourth configuration attribute, wherein the background attribute in the fourth configuration attribute is the storage position of the first desktop background in the internal memory, and obtaining the sixth configuration attribute by taking the storage position of the third desktop background in the internal memory as the background attribute according to the third memory mapping table.
Finally, drawing a fourth window of the second application on the second desktop according to the sixth configuration attribute; specifically, the third desktop background is obtained from the internal memory according to the background attribute of the sixth configuration attribute, and then the fourth window of the second application is drawn according to the third desktop background.
According to an embodiment of the present invention, after the fourth window of the second application is drawn on the second desktop, a second application mapping table of the second desktop is further constructed according to the application displayed on the second desktop, where the second application mapping table includes the second desktop and the second application displayed on the second desktop, so that when the desktop background of the second desktop changes, the window of the second application is redrawn according to the second application mapping table.
Furthermore, an application mapping table of the first desktop is also reconstructed, that is, a third application mapping table of the first desktop is constructed according to the application on the display window of the first desktop, where the third application mapping table includes the first desktop and the first application on the display window of the first desktop, so that when the desktop background of the first desktop changes, the window of the first application is redrawn according to the third application mapping table.
According to an embodiment of the present invention, when a window with an application in the first desktop is moved to another desktop for display, it is determined whether a window with another application is displayed in the first desktop, and if no window with another application is displayed in the first desktop, the memory in the internal memory for storing the first desktop background is released, and the first desktop and the corresponding first desktop background in the third memory mapping table are deleted, so as to obtain the fourth memory mapping table.
If all the application windows in the first desktop are moved to the second desktop to be displayed, and whether windows of other applications are displayed in the first desktop is judged, if the windows of other applications are displayed in the first desktop, the memory in the internal storage for storing the first desktop background is released, and a fourth memory mapping table is generated, wherein the fourth memory mapping table comprises the storage positions of the second desktop and the third desktop background in the internal storage.
According to an embodiment of the present invention, when an instruction to destroy the first desktop is received, the first desktop and the corresponding desktop background in the third memory mapping table are deleted, so as to obtain a fifth memory mapping table. The desktop is destroyed, that is, the desktop is closed, if the window of the application is not displayed in the desktop, the window is directly closed, and if the window of the application is displayed in the desktop, the window in the desktop is transferred to other desktops for display. If only one other desktop is constructed in the computing device except the closed desktop, all windows displayed in the closed desktop are moved to the other desktop for displaying; if a plurality of other desktops are built in the computing device, one desktop can be selected from the other desktops, and the window of the application is migrated into the desktop to be displayed. The fifth memory mapping table includes storage locations of the second desktop and the third desktop background in the internal storage.
And then generating a third configuration attribute of the first application according to the second configuration attribute and a fifth memory mapping table. Specifically, the storage location of the third desktop background in the internal memory is used as the background attribute in the third configuration attribute to modify the background attribute in the second configuration attribute, so as to obtain the third configuration attribute.
And finally, drawing a second window of the first application on a second desktop according to the third configuration attribute, acquiring a third desktop background from the internal memory according to the third configuration attribute when drawing the second window, and drawing the second window of the first application according to the third desktop background and the third configuration attribute.
According to an embodiment of the present invention, when the first desktop is closed, the memory in the internal memory for storing the first desktop background is also released, so as to save the storage space of the internal memory.
According to one embodiment of the invention, when a user uses an operating system and an application, desktop display options are provided for the user, the desktop display options comprise a special effect mode and a common mode, and when the user selects the common mode, the application window display method displays the window of the application.
The invention discloses an application window display method which is suitable for being executed in computing equipment. The computing device comprises an internal storage, a first desktop is built in the computing device, and a plurality of applications run on the first desktop. And then, generating a second configuration attribute of the first window according to the first memory mapping table and the first configuration attribute of the first window, acquiring a first desktop background according to the second configuration attribute, and drawing the first window on the first desktop, thereby realizing uniform configuration of the applied windows according to the desktop background. And other application programs do not need to obtain pictures and redraw the window by themselves, the configuration attributes of other applications are generated by the first memory mapping table, the desktop background is obtained from the internal memory according to the generated configuration attributes, and the window is drawn. According to the invention, the call logic does not need to be repeatedly constructed in the application, so that the consumption of the memory in the system is reduced, the window drawing speed of the application is increased, and the use experience of the user in using the operating system and the application is improved.
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.
Similarly, 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.
Those skilled in the art will appreciate that the modules or units or groups of 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 device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature 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.
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 floppy diskettes, CD-ROMs, hard drives, 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 application window display method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer 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 computer readable media.
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 practitioners skilled in this art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.

Claims (11)

1. An application window display method, adapted to be executed in a computing device including an internal memory, the computing device having a first desktop built therein and running a plurality of applications, the method comprising the steps of:
acquiring a first configuration attribute of a first window to be drawn by a first application;
when a first window is drawn on the first desktop, acquiring a first desktop background of the first desktop, and storing the first desktop background in the internal memory;
constructing a first memory mapping table according to the storage positions of the first desktop and the first desktop background in the internal storage;
generating a second configuration attribute of the first window according to the first configuration attribute and the first memory mapping table;
and acquiring a first desktop background according to the second configuration attribute, and drawing a first window on the first desktop.
2. The method of claim 1, wherein the method further comprises the steps of:
acquiring a fourth configuration attribute of a third window to be drawn by the second application;
if the third window needs to be drawn on the first desktop, generating a fifth configuration attribute of the third window according to a fourth configuration attribute and the first memory mapping table;
and acquiring a first desktop background according to the fifth configuration attribute, and drawing a third window on the first desktop.
3. The method of claim 2, wherein the method further comprises the steps of:
constructing a first application mapping table of a first desktop according to the application of the first desktop display window, wherein the first application mapping table comprises the first desktop, and a first application and a second application of the first desktop display window;
when the first desktop background of the first desktop is changed into a second desktop background, storing the second desktop background in the internal memory;
generating a second memory mapping table according to the storage position of the second desktop background stored in the internal storage and the first memory mapping table;
and redrawing windows of the first application and the second application in the first desktop display window according to the second storage mapping table and the first application mapping table.
4. The method of claim 3, wherein said redrawing the window of the application in the first desktop display window according to the second memory mapping table and the first application mapping table comprises the steps of:
determining the application of the first desktop display window according to the first application mapping table;
acquiring a second desktop background from the internal memory according to the second memory mapping table;
and redrawing windows of the first application and the second application in the first desktop display window according to the second desktop background.
5. The method of claim 2, wherein the method further comprises the steps of:
when a second desktop is constructed in the computing equipment and a window of the second application needs to be moved to the second desktop for displaying according to a received switching instruction, acquiring a third desktop background of the second desktop and storing the third desktop background in the internal memory;
generating a third memory mapping table according to the storage positions of the first memory mapping table, the second desktop and the third desktop background in the internal memory;
generating a sixth configuration attribute according to a fourth configuration attribute of the second application and the third memory mapping table;
and drawing a fourth window of the second application on the second desktop according to the sixth configuration attribute.
6. The method of claim 5, wherein the method further comprises the steps of:
and constructing a second application mapping table of a second desktop according to the application of the second desktop display window, wherein the second application mapping table comprises the second desktop and a second application of the second desktop display window, so that when the desktop background of the second desktop changes, the window of the second application is redrawn according to the second application mapping table.
7. The method according to claim 5 or 6, wherein the method further comprises the step of:
when the window with the application in the first desktop is moved to other desktops to be displayed, judging whether the window with other applications is displayed in the first desktop;
and if the window of other applications is not displayed in the first desktop, releasing the memory in the internal memory for storing the first desktop background, and deleting the first desktop and the corresponding first desktop background in the third memory mapping table to obtain a fourth memory mapping table.
8. The method according to claim 5 or 6, wherein the method further comprises the step of:
when an instruction for destroying the first desktop is received, deleting the first desktop and the corresponding desktop background in the third memory mapping table to obtain a fifth memory mapping table;
generating a third configuration attribute of the first application according to the second configuration attribute and a fifth memory mapping table;
and drawing a second window of the first application on the second desktop according to the third configuration attribute.
9. The method of claim 8, wherein the method further comprises the steps of:
and releasing the memory for storing the first desktop background in the internal memory.
10. A computing device, comprising:
one or more processors;
a memory; and
one or more apparatuses comprising instructions for performing the method of any of claims 1-9.
11. 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 of any of claims 1-9.
CN202111579216.4A 2021-12-22 2021-12-22 Application window display method, computing device and storage medium Active CN114281457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111579216.4A CN114281457B (en) 2021-12-22 2021-12-22 Application window display method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111579216.4A CN114281457B (en) 2021-12-22 2021-12-22 Application window display method, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN114281457A true CN114281457A (en) 2022-04-05
CN114281457B CN114281457B (en) 2024-09-10

Family

ID=80874297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111579216.4A Active CN114281457B (en) 2021-12-22 2021-12-22 Application window display method, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN114281457B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246904A1 (en) * 2010-04-01 2011-10-06 Gus Pinto Interacting with Remote Applications Displayed Within a Virtual Desktop of a Tablet Computing Device
CN102622223A (en) * 2011-02-10 2012-08-01 微软公司 Directly assigning desktop backgrounds
CN104077016A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and device for displaying and switching multiple windows
CN109697003A (en) * 2018-12-11 2019-04-30 广州市久邦数码科技有限公司 A kind of dynamic desktop background display method and mobile terminal
CN110308956A (en) * 2018-03-20 2019-10-08 青岛海信移动通信技术股份有限公司 A kind of application interface display methods, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246904A1 (en) * 2010-04-01 2011-10-06 Gus Pinto Interacting with Remote Applications Displayed Within a Virtual Desktop of a Tablet Computing Device
CN102622223A (en) * 2011-02-10 2012-08-01 微软公司 Directly assigning desktop backgrounds
CN104077016A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and device for displaying and switching multiple windows
CN110308956A (en) * 2018-03-20 2019-10-08 青岛海信移动通信技术股份有限公司 A kind of application interface display methods, device and mobile terminal
CN109697003A (en) * 2018-12-11 2019-04-30 广州市久邦数码科技有限公司 A kind of dynamic desktop background display method and mobile terminal

Also Published As

Publication number Publication date
CN114281457B (en) 2024-09-10

Similar Documents

Publication Publication Date Title
US9715750B2 (en) System and method for layering using tile-based renderers
KR20060043268A (en) Method and apparatus for enabling application program compatibility with display devices having improved pixel density
CN112988103B (en) Data display method and computing device
WO2023197762A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
KR20130097886A (en) Apparatus and method for rendering
CN114880072A (en) Application window display method of virtual machine, computing equipment and storage medium
EP2550618A2 (en) Sequential layout builder architecture
CN114780069B (en) Opening method and device for open type graphic library rendering and computing equipment
CN114281457B (en) Application window display method, computing device and storage medium
CN113504861B (en) Desktop management method and device and computing equipment
CN114510307B (en) Dynamic wallpaper implementation method, computing device and storage medium
CN113835835B (en) Method, device and computer readable storage medium for creating consistency group
CN114281456A (en) Application window display method, computing device and storage medium
CN113885758A (en) Virtual screen generation method, computing device and storage medium
EP2972837B1 (en) Dynamic memory management for a virtual supercomputer
CN113138820B (en) Video data processing method, device, computing equipment and readable storage medium
CN113127123B (en) Window effect generation method and computing device
US9448982B2 (en) Immediate independent rasterization
JP5842029B2 (en) Information processing support apparatus, information processing apparatus, and information processing support program for caching image data
CN118193875A (en) Page loading method and device, electronic equipment and storage medium
JP2017072977A (en) Computer program
CN117573109A (en) Application state management method, computing device and storage medium
CN113849157A (en) Animation playing management method, device, equipment and storage medium
CN116824104A (en) Plotting graph drawing method, terminal equipment and storage medium
CN114510457A (en) File positioning display method, computing device and storage medium

Legal Events

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