Graphical user interface framework, embedded system and drawing method for wearable device

By designing a graphical user interface framework on wearable devices such as smart watches, the problem of hardware platform compatibility and adaptability is solved, support for multiple interactive inputs and rich graphical display are achieved, and ease of use and scalability are improved.

CN114936053BActive Publication Date: 2024-08-27SHENZHEN DO INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210286076.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-08-27
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Wearable devices such as smart watches have a variety of interface interaction styles, and the hardware platform updates and iterates quickly, resulting in weak compatibility and adaptability, making it difficult to adapt to multiple hardware platforms and display rich graphic elements.

Method used

A graphical user interface framework is designed, including a data layer, a graphics layer and a driver adaptation layer. Various application functions are implemented through the data layer. The graphics layer draws graphics data according to a preset algorithm and adapts to the hardware driver through the driver adaptation layer. , supports a variety of interactive inputs such as touch screens, physical keys, and rotary buttons.

Benefits of technology

It achieves compatibility and adaptability to multiple hardware platforms, displays rich graphical elements, and the graphical user interface framework is easy to use, has strong iterative scalability, simple maintenance, and strong portability and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936053B
    Figure CN114936053B
Patent Text Reader

Abstract

The present application provides a graphical user interface framework, embedded system and drawing method for wearable devices. The graphical user interface framework in the embodiment of the present application includes a data layer, a graphics layer and a driver adaptation layer connected in sequence; the data layer is configured to realize multiple types of application functions of the wearable device; the graphics layer is configured to determine and draw graphic data based on multiple types of application functions; the driver adaptation layer is configured to adapt the wearable device and display the graphic data drawn by the graphics layer on the screen of the wearable device, so as to display rich graphic elements and support a graphical user framework for wearable devices (such as smart watches) with multiple interactive inputs such as touch screens, physical buttons, and rotary buttons. The graphical user framework of the embodiment of the present invention has good ease of use, strong iterative scalability, simple maintenance, strong portability and adaptability, and solves the technical problems of poor compatibility and adaptability of the current product hardware platform.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Smartwatches are small-screen consumer electronic products, and the interface interaction style on the screen is gradually approaching that of smartphones. The basic interaction methods mainly include touch screen operation, physical button operation, and rotary button operation.

[0003] However, due to the variety of interface interaction styles of smart watch wearable products and the rapid update and iteration speed of product hardware platforms, the compatibility and adaptability of current product hardware platforms are weak. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a graphical user interface framework, an embedded system, a graphical user interface drawing method and a computer-readable storage medium for a wearable device, so as to solve the technical problems of poor compatibility and adaptability of product hardware platforms in the prior art, so as to be adaptable to various hardware platforms, display rich graphic elements, and support a graphical user framework for wearable devices (such as smart watches) with multiple interactive inputs such as touch screens, physical buttons, and rotary buttons. The graphical user framework of the present invention has good usability, strong iterative scalability, simple maintenance, and strong portability and adaptability.

[0005] In a first aspect, an embodiment of the present application provides a graphical user interface framework for a wearable device, the graphical user interface framework comprising a data layer, a graphics layer, and a driver adaptation layer connected in sequence; the data layer is configured to implement multiple types of application functions of the wearable device; the graphics layer is configured to determine and draw graphic data based on multiple types of application functions; the driver adaptation layer is configured to adapt the wearable device and display the graphic data drawn by the graphics layer on the screen of the wearable device.

[0006] In a possible implementation, the graphics layer is further configured to draw the graphics data according to a preset algorithm, and provide a drawing environment interface of a preset style for the data layer;

[0007] The data layer is further configured to organize the graphic data and abstract it into a control instance, and call the drawing environment interface of the preset style to perform graphic drawing according to the basic data of the control instance;

[0008] The driver adaptation layer is further configured to adapt the hardware driver of the wearable device and perform data interaction with the hardware of the wearable device.

[0009] In a possible implementation, the graphical user interface framework further includes a business application layer, and the business application layer is connected to the data layer:

[0010] The data layer is also configured to provide an interface application development interface to the business application layer, receive messages sent by the business application layer, and operate control instances of tasks corresponding to the messages.

[0011] In a possible implementation, the graphical user interface framework further includes a business application layer, and the business application layer is connected to the data layer:

[0012] The data layer includes a control data module, a control handle management module and a resource management module, and the control data module, the control handle management module and the resource management module are connected to the business application layer respectively;

[0013] The control data module is configured to organize the interface graphic data and abstract it into a control instance, and connect to the control drawing environment to draw graphics;

[0014] The control handle management module is configured to bind the control instance, and each control instance uniquely corresponds to a control handle;

[0015] The resource management module is configured to encapsulate the resource address and data into a data structure, so as to facilitate the business application layer to set image materials for the control.

[0016] In a possible implementation, the control data module is further configured to provide a control function interface and a message task callback event for control operations.

[0017] In a possible implementation, the graphical user interface framework further includes a multilingual module:

[0018] The multi-language module is configured to collect text entry groups of multiple countries and automatically switch text entries of corresponding languages ​​after the language environment is switched.

[0019] In a possible implementation, the data layer further includes a message task module and a scene management module;

[0020] The message task module is configured to provide a message queue and a message sending interface, so that the driver adaptation layer, the data layer, and the business application layer send message tasks to the graphical user interface through the message sending interface, and store the duplicates in the message queue after merging;

[0021] The scene management module is configured to obtain message tasks from the message queue, and distribute them to specific controls to execute corresponding tasks according to the message type and message object in the message tasks.

[0022] In a possible implementation, the scene management module is further configured to provide the business application layer with a scene task processing interface, and the system main thread cyclically calls the task processing interface to implement the operation of the graphical user interface.

[0023] In a possible implementation, the graphics layer includes a control drawing environment module and a drawing implementation module; the control drawing environment module is configured to provide a drawing function interface with a unified style for the control and bind a drawing environment data structure to each control instance; the drawing implementation module is connected to the control drawing environment module and is configured to provide a drawing implementation interface for the control drawing environment module.

[0024] In a possible implementation, the drawing implementation module is further configured to store an area range relative to the screen video memory for the video memory ID of the drawing environment of the control, determine the coordinate position of the control video memory in the screen video memory based on the video memory ID of the control bound to the drawing environment, accumulate the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculate the range of the drawing area in the screen video memory.

[0025] In a possible implementation, the drawing implementation module is further configured to draw graphics on a video memory by using a software drawing algorithm, or to draw graphics by adapting a third-party graphics interface.

[0026] In a possible implementation, the drawing environment data structure includes the drawing environment memory ID of the control and the valid drawing area of ​​the current control, and the drawing function interface of the drawing environment is called according to the relative coordinate offset inside the control.

[0027] In a second aspect, an embodiment of the present application provides an embedded system for a wearable device, comprising a service layer, a device driver layer, and a graphical user interface framework as described in the first aspect.

[0028] In a possible implementation, the embedded system of the wearable device further includes: a device input module configured to input external events to the wearable device.

[0029] In a third aspect, an embodiment of the present application provides a method for drawing a graphical user interface of a wearable device, the method comprising: realizing multiple types of application functions of the wearable device through a data layer; determining and drawing graphic data based on multiple types of application functions through a graphics layer; adapting the wearable device through a driving adaptation layer and displaying the graphic data drawn by the graphics layer on the screen of the wearable device.

[0030] In a possible implementation, the graphical user interface drawing method further includes:

[0031] Through the graphics layer, graphic data is drawn according to a preset algorithm, and a drawing environment interface with a preset style is provided for the data layer; through the data layer, graphic data is organized and abstracted into a control instance, and the drawing environment interface with a preset style is called to draw graphics based on the basic data of the control instance; through the driver adaptation layer, the hardware driver of the wearable device is adapted and data interaction is performed with the hardware of the wearable device.

[0032] In a possible implementation, the graphical user interface drawing method further includes:

[0033] The data layer provides the business application layer with an interface application development interface, receives messages sent by the business application layer, and operates the control instance of the task corresponding to the message; the business application layer is connected to the data layer.

[0034] In a possible implementation, the graphical user interface drawing method further includes:

[0035] The interface graphic data is organized through the control data module and abstracted into a control instance, which is connected to the control drawing environment for graphic drawing; the control instance is bound through the control handle management module, and each control instance uniquely corresponds to a control handle; the resource address and data are encapsulated into a data structure through the resource management module, so that the business application layer can set image materials for the control; wherein the business application layer is connected to the data layer, and the data layer includes a control data module, a control handle management module and a resource management module, and the control data module, the control handle management module and the resource management module are respectively connected to the business application layer.

[0036] In a possible implementation, the graphical user interface drawing method further includes:

[0037] By providing control function interface and message task callback events for control operations.

[0038] In a possible implementation, the graphical user interface drawing method further includes:

[0039] The multilingual module collects text entries from various countries and automatically switches to the text entries in the corresponding language after the language environment is switched.

[0040] In a possible implementation, the graphical user interface drawing method further includes:

[0041] A message queue and a message sending interface are provided through the message task module, so that the driver adaptation layer, the data layer, and the business application layer send message tasks to the graphical user interface through the message sending interface, and store them in the message queue after merging duplicates; the message tasks are obtained from the message queue through the scene management module, and distributed to specific controls to execute corresponding tasks according to the message type and message object in the message task.

[0042] In a possible implementation, the graphical user interface drawing method further includes:

[0043] The scene management module provides the business application layer with a scene task processing interface, and the system main thread cyclically calls the task processing interface to implement the operation of the graphical user interface.

[0044] In a possible implementation, the graphical user interface drawing method further includes:

[0045] The control drawing environment module provides a unified style drawing function interface for the control, and binds a drawing environment data structure to each control instance; the drawing implementation module connected to the control drawing environment module provides a drawing implementation interface for the control drawing environment module.

[0046] In a possible implementation, the graphical user interface drawing method further includes: storing an area range relative to the screen video memory for the video memory ID of the drawing environment of the control through a drawing implementation module, determining the coordinate position of the control video memory in the screen video memory according to the video memory ID of the control bound to the drawing environment, accumulating the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculating the range of the drawing area in the screen video memory.

[0047] In a possible implementation, the graphical user interface drawing method further includes:

[0048] The drawing implementation module draws graphics on the video memory based on the software drawing algorithm, or adapts the third-party graphics interface to draw graphics.

[0049] In a possible implementation, the graphical user interface drawing method further includes:

[0050] The drawing function interface of the drawing environment is called according to the relative coordinate offset inside the control; the drawing environment data structure includes the drawing environment memory ID of the control and the effective drawing area of ​​the current control.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing one or more computer programs, wherein the one or more computer programs include instructions. When the computer programs are run on a computer, the instructions are used to execute the steps of the graphical user interface drawing method described in the second aspect above.

[0052] In a fifth aspect, an embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed on a computer, the instructions are used to execute the steps of the graphical user interface drawing method described in the second aspect above.

[0053] The graphical user interface framework in the embodiment of the present application includes a data layer, a graphics layer and a driver adaptation layer connected in sequence; the data layer is configured to realize multiple types of application functions of the wearable device; the graphics layer is configured to determine and draw graphic data based on multiple types of application functions; the driver adaptation layer is configured to adapt the wearable device and display the graphic data drawn by the graphics layer on the screen of the wearable device, so as to display rich graphic elements and support the graphical user framework of wearable devices (such as smart watches) with multiple interactive inputs such as touch screens, physical buttons, and rotary buttons. The graphical user framework of the embodiment of the present invention has good ease of use, strong iterative scalability, simple maintenance, and strong portability and adaptability, which solves the technical problems of poor compatibility and adaptability of current product hardware platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0055] Figure 1 A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0059] Figure 5A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0060] Figure 6 A schematic diagram of a graphical user interface framework of a wearable device provided by an embodiment of the present invention;

[0061] Figure 7 A schematic diagram of an embedded system for a wearable device provided by an embodiment of the present invention;

[0062] Figure 8 A block diagram of a wearable device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The following will be combined with the present invention is only part of the embodiment of the present invention, rather than all embodiments.Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in a variety of different configurations.

[0064] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0065] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0066] See also Figure 1 , Figure 1The graphical user interface framework 10 provided by an embodiment of the present invention includes a data layer 11, a graphics layer 12 and a driver adaptation layer 13 connected in sequence; the data layer 11 is configured to implement multiple types of application functions of the wearable device; wherein the multiple types of application functions include but are not limited to at least two of the graphical user interface initialization function, the graphical user interface deinitialization function, the control function, the message sending function and the resource management function. The graphics layer 12 is configured to determine and draw the graphic data based on the multiple types of application functions; the driver adaptation layer 13 is configured to adapt the wearable device and display the graphic data drawn by the graphics layer on the screen of the wearable device. Optionally, the driver adaptation layer is configured to adapt the platform driver functions, such as flash reading data, graphics data push, LCD refresh, etc.

[0067] In the embedded system of the wearable device in the embodiment of the present application, its graphical user interface framework includes a data layer, a graphics layer and a driver adaptation layer connected in sequence; the data layer is configured to realize multiple types of application functions of the wearable device; the graphics layer is configured to determine and draw graphic data based on multiple types of application functions; the driver adaptation layer is configured to adapt the wearable device and display the graphic data drawn by the graphics layer on the screen of the wearable device, so as to display rich graphic elements and support the graphical user framework of wearable devices (such as smart watches) with multiple interactive inputs such as touch screens, physical buttons, and rotary buttons. The graphical user framework of the embodiment of the present invention has good ease of use, strong iterative scalability, simple maintenance, strong portability and adaptability, and solves the technical problems of poor compatibility and adaptability of current product hardware platforms.

[0068] In one embodiment of the present application, the graphic layer 12 is further configured to draw graphic data according to a preset algorithm and provide a preset style drawing environment interface for the data layer 11. The preset algorithm is a specific drawing algorithm and is not limited here.

[0069] The data layer 11 is further configured to organize the graphic data and abstract it into a control instance, and call the drawing environment interface of the preset style to perform graphic drawing according to the basic data of the control instance.

[0070] The driver adaptation layer 13 is further configured to adapt the hardware driver of the wearable device and perform data interaction with the hardware of the wearable device.

[0071] refer to Figure 2In a possible implementation, the graphics layer 12 includes a control drawing environment module 121 and a drawing implementation module 122; the control drawing environment module 121 is configured to provide a drawing function interface of a unified style for the control and bind a drawing environment data structure to each control instance; the drawing implementation module 122 is connected to the control drawing environment module 121 and is configured to provide a drawing implementation interface for the control drawing environment module 121.

[0072] The unified style drawing function interface includes but is not limited to basic drawing function interfaces such as image moving, image mixing, text drawing, color block drawing, image rotation and image scaling. In one possible implementation, the drawing environment data structure includes the drawing environment memory ID of the control and the effective drawing area of ​​the current control, and the drawing function interface of the drawing environment is called according to the relative coordinate offset inside the control.

[0073] refer to Figure 3 In a possible implementation, in addition to the graphical user interface framework, a business application layer 14 is also included, and the data layer 11 is connected to the business application layer 14:

[0074] The data layer 11 is also configured to provide an interface application development interface to the business application layer, receive messages sent by the business application layer, and operate control instances of tasks corresponding to the messages.

[0075] refer to Figure 3 In a possible implementation, the graphical user interface framework 10 further includes a business application layer 14 , and the business application layer 14 is connected to the data layer 11 .

[0076] refer to Figure 4 In a possible implementation, the data layer 11 includes a control data module 110, a control handle management module 120 and a resource management module 130, and the control data module 110, the control handle management module 120, and the resource management module 130 are connected to the business application layer 14 respectively.

[0077] The control data module 110 is configured to organize the interface graphic data and abstract it into a control instance, and connect to the control drawing environment to perform graphic drawing.

[0078] Specifically, the control data module 110 includes a corresponding message task event function, and the interaction logic and function call logic of all business applications are registered as the control message task event function. When a message task is generated, the message task event function execution program is automatically called back.

[0079] Among them, the control is the encapsulation and abstraction of graphic data. Usually an interface scene is composed of multiple control layouts. A well-designed jump logic relationship runs through all the interface scenes to form a complete user interface. The control data module includes control data instances, control interfaces, and control function implementations. The control data instance is a control data structure stored according to the control description. The control data instance is applied for when the control is created and released when the control is destroyed. Control data includes common data and private data. Common data refers to the control features that all controls have, including control position, control width and height, control type, control display status, control parent container, and control drawing environment instance that only corresponds to the control instance. Private data refers to control data that is unique to different types of controls.

[0080] The control interface includes general interfaces and control type-specific interfaces. The general interfaces include general interfaces such as control display, control hiding, control destruction, control movement, setting control images, and setting control text. The control type-specific interfaces are functional interfaces provided according to the control type, including but not limited to creating controls according to the control type, setting progress for progress bar controls, setting chart data for bar chart controls, and setting images for scroll frame controls. Control function implementation is the specific implementation of control task processing, including but not limited to control interaction, data change, control drawing, and other functional implementations. The graphical user interface consists of multiple controls, which are associated with each other through a tree structure. From the association relationship, controls can be divided into two types: container controls and non-container controls. Container controls can place (associate) several container and non-container controls. Controls placed in container controls are called child controls of the container controls; container controls that place child controls are called their parent containers or parent controls. Controls cannot be placed in non-container controls, but can be placed in any container control.

[0081] Controls control the drawing order, effective display area, relative control position, etc. through association relationships. The display state and position starting point of all controls are relative to their parent container. Therefore, when the position or display state of a control changes, you only need to care about its relative state to the parent container. When the parent container is hidden, all child controls it contains will be hidden; when the parent container moves, all child controls it contains will move the same distance. The position (virtual coordinates) of the child control can exceed the range of the parent container, and the excess part will not be displayed.

[0082] The bottom-level parent container is a window-type control. The display, hiding and movement of the bottom-level parent container will affect all child controls in the container. It is usually used to describe a functionally independent and complete interface scene. Therefore, the bottom-level parent container is also called a scene.

[0083] The control handle management module 120 is configured to bind the control instance, and each control instance uniquely corresponds to a control handle. The control instance is memory data. Considering the security of the control instance data, the data address of the control instance cannot be exposed to the outside, so as to avoid tampering with the control data by other programs and causing interface abnormalities. The control handle is associated with the control instance, and the business application layer uses the control handle to operate the control, and the graphical user interface uses the control handle to find the corresponding control instance.

[0084] The resource management module 130 is configured to encapsulate the resource address and data into a data structure, so as to facilitate the business application layer 14 to set image materials for the control.

[0085] Specifically, the resource management module 130 is configured to organize resource data structures such as pictures and fonts, and encapsulate them into picture and font IDs. The business application layer 14 can use resources through picture and font IDs without having to worry about the resource data itself, thereby improving the usability, readability and security of picture and font resources.

[0086] In a possible implementation, the control data module 110 is further configured to provide a control function interface and a message task callback event for control operations.

[0087] refer to Figure 5 In a possible implementation, the data layer 11 also includes a message task module 130 and a scene management module 150 .

[0088] The message task module 130 is configured to provide a message queue and a message sending interface so that the driver adaptation layer 13, the data layer 11, and the business application layer 14 send message tasks to the graphical user interface through the message sending interface, and store them in the message queue after merging and duplication. As an embodiment of the present invention, the message task generated by the device input event or the application layer is sent to the message task module, and the scene management module cyclically takes out the message from the message task queue and distributes it to the corresponding scene in the interface to execute the message task. The control data module contains the corresponding message task event function, and the interaction logic and function call logic of all business applications are registered as the control message task event function. When the message task is generated, the message task event function execution program is automatically called back. Regarding the message callback function, for example: the SendHMICom (stFrameMessage * m) function is a structure defined by the framework. The business application fills the structure with information such as the instruction type and the data to be transmitted, and then calls the function. The SendHMICom function will call the library functions of STEMWIN and FATFS according to the instruction and data information, thereby executing the instruction and returning the execution result).

[0089] The scene management module 150 is configured to obtain message tasks from the message queue, and distribute them to specific controls to execute corresponding tasks according to the message type and message object in the message tasks.

[0090] In a possible implementation, the scene management module 150 is further configured to provide a scene task processing interface to the business application layer 14, and the system main thread cyclically calls the task processing interface to implement the operation of the graphical user interface.

[0091] In one possible implementation, the drawing implementation module 122 is further configured to store an area range relative to the screen video memory for the video memory ID of the drawing environment of the control, determine the coordinate position of the control video memory in the screen video memory based on the video memory ID of the control bound to the drawing environment, accumulate the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculate the range of the drawing area in the screen video memory.

[0092] In a possible implementation, the drawing implementation module 12 is further configured to draw graphics on a video memory through a software drawing algorithm, or to draw graphics by adapting a third-party graphics interface.

[0093] refer to Figure 6 In a possible implementation, the graphical user interface framework further includes a multilingual module 160:

[0094] The multi-language module 160 is configured to collect text entry groups of various countries and automatically switch text entries of corresponding languages ​​after the language environment is switched.

[0095] See also Figure 7 , Figure 7 It is an embedded system of a wearable device provided by an embodiment of the present invention. In a possible implementation, the embedded system includes a service layer 14, a graphical user interface frame 10 and a device driver layer 15, and is configured to drive the wearable device.

[0096] The device driver layer can be composed of the hardware abstraction layer (HAL), board support package (BSP) and driver, and is an important part of the graphical user interface framework. Its function is to provide the upper-level program with an operating interface for external devices and implement the device driver.

[0097] In a possible implementation, the embedded system of the wearable device further includes a device input module 16 , which is configured to input external events to the wearable device through the device input module 16 .

[0098] As an embodiment of the present invention, a device input event or a message task generated by the application layer is sent to the message task module, and the scene management module cyclically takes out messages from the message task queue and distributes them to the corresponding scene in the interface to execute the message task. The control data module contains the corresponding message task event function, and the interaction logic and function call logic of all business applications are registered as the control message task event function. When the message task is generated, the message task event function is automatically called back to execute the program. Regarding the message callback function, for example: the SendHMICom (stFrameMessage * m) function is a structure defined by the framework. The business application fills the structure with information such as the instruction type and the data to be transferred, and then calls the function. The SendHMICom function will call the library functions of STEMWIN and FATFS according to the instruction and data information, thereby executing the instruction and returning the execution result).

[0099] An embodiment of the present application provides a graphical user interface drawing method for a wearable device, which is applied to a graphical user interface framework, wherein the graphical user interface framework includes a data layer, a graphics layer, and a driver adaptation layer connected in sequence; the graphical user interface drawing method includes: realizing multiple types of application functions of the wearable device through the data layer; determining and drawing graphic data based on the multiple types of application functions through the graphics layer; adapting the wearable device through the driver adaptation layer and displaying the graphic data drawn by the graphics layer on the screen of the wearable device.

[0100] The graphical user interface drawing method of the wearable device in the embodiment of the present application is applied to the graphical user interface framework, and the graphical user interface framework of the graphical user interface framework includes a data layer, a graphics layer and a driver adaptation layer connected in sequence; the graphical user interface drawing method includes: realizing multiple types of application functions of the wearable device through the data layer; determining and drawing the graphic data based on the multiple types of application functions through the graphics layer; adapting the wearable device through the driver adaptation layer and displaying the graphic data drawn by the graphics layer on the screen of the wearable device, so as to display rich graphic elements and support the graphical user framework of the wearable device (such as a smart watch) with multiple interactive inputs such as touch screens, physical buttons, and rotary buttons. The graphical user framework of the embodiment of the present invention has good ease of use, strong iterative scalability, simple maintenance, strong portability and adaptability, and solves the technical problems of poor compatibility and adaptability of the current product hardware platform.

[0101] In a possible implementation, the graphical user interface drawing method further includes:

[0102] Through the graphics layer, graphic data is drawn according to a preset algorithm, and a drawing environment interface with a preset style is provided for the data layer; through the data layer, graphic data is organized and abstracted into a control instance, and the drawing environment interface with a preset style is called to draw graphics based on the basic data of the control instance; through the driver adaptation layer, the hardware driver of the wearable device is adapted and data interaction is performed with the hardware of the wearable device.

[0103] In a possible implementation, the graphical user interface drawing method further includes:

[0104] The data layer provides the business application layer with an interface application development interface, receives messages sent by the business application layer, and operates the control instance of the task corresponding to the message; the business application layer is connected to the data layer.

[0105] In a possible implementation, the graphical user interface drawing method further includes:

[0106] The interface graphic data is organized through the control data module and abstracted into a control instance, which is connected to the control drawing environment for graphic drawing; the control instance is bound through the control handle management module, and each control instance uniquely corresponds to a control handle; the resource address and data are encapsulated into a data structure through the resource management module, so that the business application layer can set image materials for the control; wherein the business application layer is connected to the data layer, and the data layer includes a control data module, a control handle management module and a resource management module, and the control data module, the control handle management module and the resource management module are respectively connected to the business application layer.

[0107] In a possible implementation, the graphical user interface drawing method further includes:

[0108] By providing control function interface and message task callback events for control operations.

[0109] In a possible implementation, the graphical user interface drawing method further includes:

[0110] The multilingual module collects text entries from various countries and automatically switches to the text entries in the corresponding language after the language environment is switched.

[0111] In a possible implementation, the graphical user interface drawing method further includes:

[0112] A message queue and a message sending interface are provided through the message task module, so that the driver adaptation layer, the data layer, and the business application layer send message tasks to the graphical user interface through the message sending interface, and store them in the message queue after merging duplicates; the message tasks are obtained from the message queue through the scene management module, and distributed to specific controls to execute corresponding tasks according to the message type and message object in the message task.

[0113] In a possible implementation, the graphical user interface drawing method further includes:

[0114] The scene management module provides the business application layer with a scene task processing interface, and the system main thread cyclically calls the task processing interface to implement the operation of the graphical user interface.

[0115] In a possible implementation, the graphical user interface drawing method further includes:

[0116] The control drawing environment module provides a unified style drawing function interface for the control, and binds a drawing environment data structure to each control instance; the drawing implementation module connected to the control drawing environment module provides a drawing implementation interface for the control drawing environment module.

[0117] In a possible implementation, the graphical user interface drawing method further includes: storing an area range relative to the screen video memory for the video memory ID of the drawing environment of the control through a drawing implementation module, determining the coordinate position of the control video memory in the screen video memory according to the video memory ID of the control bound to the drawing environment, accumulating the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculating the range of the drawing area in the screen video memory.

[0118] In a possible implementation, the graphical user interface drawing method further includes:

[0119] The drawing implementation module draws graphics on the video memory based on the software drawing algorithm, or adapts the third-party graphics interface to draw graphics.

[0120] In a possible implementation, the graphical user interface drawing method further includes:

[0121] The drawing function interface of the drawing environment is called according to the relative coordinate offset inside the control; the drawing environment data structure includes the drawing environment memory ID of the control and the effective drawing area of ​​the current control.

[0122] The above-mentioned graphical user interface drawing method is similar to the implementation method of the user interface framework of the graphical user interface framework, and will not be repeated here.

[0123] refer to Figure 8The wearable device 100 may include one or more processors 101, memory 102, communication module 103, sensor module 104, display screen 105, audio module 106, speaker 107, microphone 108, camera module 109, motor 110, button 111, indicator 112, battery 113, power management module 114. These components may communicate via one or more communication buses or signal lines.

[0124] The processor 101 is the final execution unit for information processing and program operation, and can run an operating system or application program to execute various functional applications and data processing of the wearable device 100. The processor 101 may include one or more processing units, for example: the processor 101 may include a central processing unit (CPU), a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor or a communication processor (CP) application processor (AP), etc. In some embodiments, the processor 101 may include one or more interfaces. The interface is used to couple a peripheral device to the processor 101 to transmit instructions or data between the processor 101 and the peripheral device. The memory 102 can be used to store computer executable program code, and the executable program code includes instructions. The memory 102 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The storage data area can store data created during the use of the wearable device 100, such as the sports parameters of each user's exercise, such as the number of steps, stride, pace, heart rate, blood oxygen, blood sugar concentration, energy consumption (calories), etc. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. In the embodiment of the present application, the memory 102 can store sensor waveform regularity characteristic data corresponding to target sports such as walking, running, cycling, and swimming.

[0125] The communication module 103 can support the wearable device 100 to communicate with the network and the mobile terminal through wireless communication technology. The communication module 103 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. The communication module 103 may include one or more of a cellular mobile communication module, a short-range wireless communication module, a wireless Internet module, and a location information module. The mobile communication module can send or receive wireless signals based on the technical standards of mobile communications, and can use any mobile communication standard or protocol, including but not limited to the Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Code Division Multiple Access 2000 (CDMA2000), Wideband CDMA (WCDMA), Time Division Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), LTE-A (Advanced Long Term Evolution), etc. The wireless Internet module can send or receive wireless signals via a communication network according to wireless Internet technology, including wireless LAN (WLAN), wireless fidelity (Wi-Fi), Wi-Fi Direct, Digital Living Network Alliance (DLNA), wireless broadband (WiBro), etc. The short-range wireless communication module can send or receive wireless signals according to short-range communication technologies, including Bluetooth, radio frequency identification (RFID), infrared data communication (IrDA), ultra-wideband (UWB), ZigBee, near field communication (NFC), wireless fidelity (Wi-Fi), Wi-Fi direct connection, wireless USB (wireless universal serial bus), etc. The location information module can obtain the location of the wearable device based on the global navigation satellite system (GNSS), which can include one or more of the global positioning system (GPS), the global satellite navigation system (Glonass), the Beidou satellite navigation system and the Galileo satellite navigation system.

[0126] The sensor module 104 is used to measure physical quantities or detect the operating state of the wearable device 100. The sensor module 104 may include an acceleration sensor 104A, a gyroscope sensor 104B, an air pressure sensor 104C, a magnetic sensor 104D, a biometric sensor 104E, a proximity sensor 104F, an ambient light sensor 104G, a touch sensor 104H, etc. The sensor module 104 may also include a control circuit for controlling one or more sensors included in the sensor module 104.

[0127] Among them, the acceleration sensor 104A can detect the acceleration magnitude of the wearable device 100 in all directions. When the wearable device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the wearable device 100, and is applied to applications such as horizontal and vertical screen switching and pedometers. In one embodiment, the acceleration sensor 104A can be combined with the gyroscope sensor 104B to monitor the user's stride, step frequency, and pace during exercise.

[0128] The gyro sensor 104B may be used to determine the motion posture of the wearable device 100. In some embodiments, the angular velocity of the wearable device 100 around three axes (ie, x, y, and z axes) may be determined by the gyro sensor 104B.

[0129] The air pressure sensor 104C is used to measure air pressure. In some embodiments, the wearable device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 104C to assist positioning and navigation.

[0130] The GPS sensor 104D may be used to record user activity tracks to determine the user's location.

[0131] The biometric sensor 104E is used to measure the physiological parameters of the user, including but not limited to a photoplethysmography (PPG) sensor, an ECG sensor, an EMG sensor, a blood glucose sensor, and a temperature sensor. For example, the wearable device 100 can measure the user's heart rate, blood oxygen, and blood pressure data through the signals of the photoplethysmography sensor and / or the ECG sensor, and identify the user's blood glucose value based on the data generated by the blood glucose sensor. In an embodiment of the present application, the PPG sensor is used to detect the user's heart rate. Specifically, after the PPG sensor is turned on, it can continuously detect the signal data related to the user's heart rate and transmit it to the processor 101, and then the processor 101 calculates the heart rate value through the heart rate algorithm. In an embodiment of the present application, the temperature sensor is used to detect the first temperature of the user's wrist skin. Specifically, after the temperature sensor is turned on, it can continuously obtain the temperature data of the user's wrist skin and transmit it to the processor 101, and then the processor 101 calculates the corresponding temperature value in physical sense through the temperature algorithm of the electrical signal data of the temperature sensor.

[0132] The proximity sensor 104F is used to detect the presence of an object near the wearable device 100 without any physical contact. In some embodiments, the proximity sensor 104F may include a light emitting diode and a light detector. The light emitting diode may be an infrared light, and the wearable device 100 uses the light detector to detect reflected light from a nearby object. When the reflected light is detected, it can be determined that there is an object near the wearable device 100. The wearable device 100 can use the proximity sensor 104F to detect its wearing state.

[0133] The ambient light sensor 104G is used to sense the brightness of the ambient light. In some embodiments, the wearable device 100 can adaptively adjust the brightness of the display screen according to the perceived brightness of the ambient light to reduce power consumption.

[0134] The touch sensor 104H is used to detect a touch operation applied thereto or in the vicinity thereof, and is also referred to as a “touch control device.” The touch sensor 104H may be disposed on the display screen 105 , and the touch sensor 104H and the display screen 105 form a touch screen.

[0135] The display screen 105 is used to display a graphical user interface (UI), which may include graphics, text, icons, videos, and any combination thereof. The display screen 105 may be a liquid crystal display (LCD), an organic light-emitting diode (OLED) display, and the like. When the display screen 105 is a touch display screen, the display screen 105 can collect a touch signal on or above the surface of the display screen 105, and input the touch signal as a control signal to the processor 101.

[0136] The audio module 106, the speaker 107, and the microphone 108 provide audio functions between the user and the wearable device 100, such as listening to music or making calls; for example, when the wearable device 100 receives a notification message from a mobile terminal, the processor 101 controls the audio module 106 to output a preset audio signal, and the speaker 107 emits a sound to remind the user. The audio module 106 converts the received audio data into an electrical signal and sends it to the speaker 107, which converts the electrical signal into sound; or the microphone 108 converts the sound into an electrical signal and sends it to the audio module 106, which then converts the audio electrical signal into audio data.

[0137] The camera module 111 is used to capture still images or videos. The camera module 111 may include an image sensor, an image signal processor (ISP), and a digital signal processor (DSP). The image sensor converts the optical signal into an electrical signal, the image signal processor converts the electrical signal into a digital image signal, and the digital signal processor converts the digital image signal into an image signal in a standard format (RGB, YUV). The image sensor may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS).

[0138] The motor 110 can convert electrical signals into mechanical vibrations to produce a vibration effect. The motor 110 can be used for vibration prompts for incoming calls and messages, and can also be used for touch vibration feedback. The button 109 includes a power button, a volume button, etc. The button 109 can be a mechanical button (physical button) or a touch button. The indicator 112 is used to indicate the status of the wearable device 100, for example, to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. In some embodiments, the wearable device 100 provides vibration feedback after receiving a notification message from a mobile terminal application.

[0139] The battery 113 is used to provide power to various components of the wearable device 100. The power management module 114 is used to manage the charge and discharge of the battery, and monitor parameters such as battery capacity, battery cycle number, battery health status (whether it is leaking, impedance, voltage, current and temperature). In some embodiments, the power management module 114 can charge the battery by wire or wirelessly.

[0140] It should be understood that in some embodiments, the wearable device 100 may be composed of one or more of the aforementioned components, and the wearable device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0141] The specific details of each step in the above method have been described in detail in the implementation method of the device part. The undisclosed details can be found in the implementation method of the device part, so they will not be repeated here.

[0142] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0143] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0144] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0145] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0146] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0147] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0148] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0150] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0151] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A graphical user interface framework for a wearable device, characterized in that: It includes a data layer, a graphics layer and a driver adaptation layer connected in sequence; The data layer is configured to implement multiple types of application functions of the wearable device; The graphics layer is configured to determine and draw graphics data based on multiple types of application functions; The driver adaptation layer is configured to adapt the wearable device and display the graphic data drawn by the graphic layer on the screen of the wearable device; The graphics layer is further configured to draw the graphics data according to a preset algorithm and provide a drawing environment interface of a preset style for the data layer; The data layer is further configured to organize the graphic data and abstract it into a control instance, and call the drawing environment interface of the preset style to perform graphic drawing according to the basic data of the control instance; The driver adaptation layer is further configured to adapt the hardware driver of the wearable device and perform data interaction with the hardware of the wearable device; The data layer is connected to the business application layer: The data layer is further configured to provide an interface application development interface to the business application layer, receive messages sent by the business application layer, and operate the control instance of the task corresponding to the message; The data layer includes a control data module, a control handle management module and a resource management module, and the control data module, the control handle management module and the resource management module are connected to the business application layer respectively; The control data module is configured to organize the interface graphic data and abstract it into a control instance, and connect to the control drawing environment to draw graphics; The control handle management module is configured to bind the control instance, and each control instance uniquely corresponds to a control handle; The resource management module is configured to encapsulate the resource address and data into a data structure, so that the business application layer can set image materials for the control; The data layer also includes a message task module and a scene management module; The message task module is configured to provide a message queue and a message sending interface, so that the driver adaptation layer, the data layer, and the business application layer send message tasks to the graphical user interface through the message sending interface, and store the duplicates in the message queue after merging; The scene management module is configured to obtain message tasks from the message queue, and distribute them to specific controls to execute corresponding tasks according to the message type and message object in the message tasks; Also includes multi-language modules: The multi-language module is configured to collect text entry groups of multiple countries and automatically switch text entries of corresponding languages ​​after the language environment is switched; The scene management module is further configured to provide a scene task processing interface to the business application layer, and the system main thread cyclically calls the task processing interface to implement the operation of the graphical user interface; The graphics layer includes a control drawing environment module and a drawing implementation module; The control drawing environment module is configured to provide a drawing function interface of a unified style for the control and bind a drawing environment data structure to each control instance; The drawing implementation module is connected to the control drawing environment module and is configured to provide a drawing implementation interface to the control drawing environment module; The drawing implementation module is further configured to store an area range relative to the screen video memory for the video memory ID of the drawing environment of the control, determine the coordinate position of the control video memory in the screen video memory according to the video memory ID of the control bound to the drawing environment, accumulate the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculate the range of the drawing area in the screen video memory.

2. The graphical user interface framework as claimed in claim 1, wherein the control data module is further configured to provide a control function interface and a message task callback event for control operations.

3. The graphical user interface framework of claim 1, wherein: The drawing implementation module is further configured to draw graphics on the video memory through a software drawing algorithm, or to draw graphics by adapting a third-party graphics interface.

4. The graphical user interface framework of claim 1, wherein: The drawing environment data structure includes the drawing environment memory ID of the control and the effective drawing area of ​​the current control, and calls the drawing function interface of the drawing environment according to the relative coordinate offset inside the control.

5. An embedded system for a wearable device, characterized in that: It comprises a business layer, a device driver layer and a graphical user interface framework as claimed in any one of claims 1 to 4.

6. The embedded system according to claim 5, characterized in that: Also includes: The device input module is configured to input external events to the wearable device.

7. A method for drawing a graphical user interface of a wearable device, characterized in that: The graphical user interface drawing method comprises: Implement various types of application functions of wearable devices through the data layer; Determine and draw graphic data based on multiple types of application functions through the graphics layer; Adapting the wearable device by driving the adaptation layer and displaying the graphic data drawn by the graphic layer on the screen of the wearable device; Also includes: Through the graphic layer, the graphic data is drawn according to a preset algorithm, and a drawing environment interface with a preset style is provided for the data layer; Through the data layer, in order to organize the graphic data and abstract it into a control instance, according to the basic data of the control instance, the drawing environment interface of the preset style is called to perform graphic drawing; Adapting the hardware driver of the wearable device and performing data interaction with the hardware of the wearable device through the driver adaptation layer; Also includes: Provide an interface application development interface to the business application layer through the data layer, receive messages sent by the business application layer, and operate the control instance of the task corresponding to the message; the business application layer is connected to the data layer; Also includes: Organize the interface graphic data through the control data module and abstract it into a control instance, and connect the control drawing environment to draw graphics; Binding the control instance through a control handle management module, each of the control instance uniquely corresponds to a control handle; The resource address and data are encapsulated into a data structure through the resource management module, so that the business application layer can set image materials for the control; wherein the business application layer is connected to the data layer, the data layer includes a control data module, a control handle management module and a resource management module, and the control data module, the control handle management module and the resource management module are connected to the business application layer respectively; Also includes: The multi-language module collects text entries from various countries and automatically switches to the text entries in the corresponding language after the language environment is switched; Also includes: Providing a message queue and a message sending interface through a message task module, so that the driver adaptation layer, the data layer, and the business application layer send message tasks to the graphical user interface through the message sending interface, and store the duplicates in the message queue after merging; Obtain message tasks from the message queue through the scene management module, and distribute them to specific controls to execute corresponding tasks according to the message type and message object in the message task; It also includes: providing a scene task processing interface to the business application layer through a scene management module, and the system main thread cyclically calls the task processing interface to realize the operation of the graphical user interface; It also includes: providing a unified style drawing function interface to the control through a control drawing environment module, and binding a drawing environment data structure to each control instance; Provide a drawing implementation interface to the control drawing environment module through a drawing implementation module connected to the control drawing environment module; Also includes: The drawing implementation module stores an area range relative to the screen video memory for the video memory ID of the control's drawing environment, determines the coordinate position of the control's video memory in the screen video memory based on the video memory ID of the control bound to the drawing environment, accumulates the drawing range coordinates of the drawing environment interface to determine the coordinates of the drawing content relative to the screen video memory, and calculates the range of the drawing area in the screen video memory.

8. The graphical user interface drawing method according to claim 7, characterized in that: Also includes: By providing control function interface and message task callback events for control operations.

9. The graphical user interface drawing method according to claim 7, characterized in that: Also includes: The drawing implementation module draws graphics on the video memory based on the software drawing algorithm, or adapts the third-party graphics interface to draw graphics.

10. The graphical user interface drawing method according to claim 7, characterized in that: Also includes: Call the drawing function interface of the drawing environment according to the relative coordinate offset inside the control; The drawing environment data structure includes the drawing environment memory ID of the control and the effective drawing area of ​​the current control.

11. A computer-readable storage medium for storing one or more computer programs, wherein the one or more computer programs include instructions, and when the computer programs are run on a computer, the instructions are used to execute the steps of the graphical user interface drawing method according to any one of claims 7 to 10.

12. A computer program product, comprising a computer program, wherein the computer program comprises instructions, and when the computer program is executed on a computer, the instructions are used to execute the steps of the graphical user interface drawing method according to any one of claims 7 to 10.