WO2018103218A1 - Display processing method and device for ui interface - Google Patents

Display processing method and device for ui interface Download PDF

Info

Publication number
WO2018103218A1
WO2018103218A1 PCT/CN2017/075739 CN2017075739W WO2018103218A1 WO 2018103218 A1 WO2018103218 A1 WO 2018103218A1 CN 2017075739 W CN2017075739 W CN 2017075739W WO 2018103218 A1 WO2018103218 A1 WO 2018103218A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
node
element node
rendering
information
Prior art date
Application number
PCT/CN2017/075739
Other languages
French (fr)
Chinese (zh)
Inventor
徐超
Original Assignee
武汉斗鱼网络科技有限公司
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 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2018103218A1 publication Critical patent/WO2018103218A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of graphic user interface technologies, and in particular, to a display processing method and apparatus for a UI interface.
  • the present invention provides a display processing method and apparatus for a UI interface, which can efficiently implement rendering of a UI interface, improve display speed and display effect of a complex UI interface, and improve user experience.
  • One aspect of the present invention provides a display processing method of a UI interface, the method comprising:
  • the tree control is rendered using a double buffering technique.
  • each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and a parent node of the corresponding element node of the corresponding element node in the tree control.
  • Information and child node list is configured.
  • the rendering list corresponding to the tree control of the UI interface to be displayed is configured to include:
  • the rendering according to the rendering list, the double-buffering technology is used to render the tree control, including:
  • the rendered bitmap object is drawn to the tree control.
  • the method further includes:
  • the corresponding parent element node is searched according to the parent node information of the element node to be added, and the element node addition request includes the parent node information of the element node to be added;
  • the rendering information of the element data structure to be added is added to the rendering list.
  • the method further includes:
  • the element node update request When receiving the element node update request, searching for the corresponding element node according to the node information of the element node to be updated, where the element node update request includes the node information of the element node to be updated and the target drawing of the element node in the tree control information;
  • a display processing apparatus for a UI interface comprising:
  • a parsing module configured to parse the UI interface to be displayed, and obtain an element node of the UI interface to be displayed;
  • a generating module configured to create a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed;
  • a configuration module configured to configure a rendering list corresponding to the tree control of the UI interface to be displayed
  • a display module configured to render the tree control by using a double buffering technique according to the rendering list.
  • each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and a parent node of the corresponding element node of the corresponding element node in the tree control.
  • Information and child node list is configured.
  • the configuration module is specifically configured to determine rendering information of an element data structure corresponding to each element node in the tree control, and combine rendering information of each element data structure to obtain the UI interface to be displayed. Rendering list.
  • the display module includes:
  • a determining unit configured to determine, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object;
  • a rendering unit configured to map the area to be rendered according to drawing information of each element node in a tree control Field rendering
  • a display unit configured to draw the rendered bitmap object to the tree control.
  • the display processing method and device of the UI interface obtained by the embodiment of the present invention obtains an element node of the UI interface to be displayed by parsing the UI interface to be displayed, and creates a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed.
  • the control uses the double buffering technology to render the tree control according to the rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, and improving the display speed and display effect of the complex UI interface. Thereby improving the user experience.
  • the display processing method and device of the UI interface provided by the embodiment of the present invention can obtain the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
  • FIG. 1 is a flowchart of a display processing method of a UI interface according to an embodiment of the present invention
  • FIG. 2 is a flowchart showing the subdivision of step S14 in the display processing method of the UI interface according to the embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a display processing apparatus of a UI interface according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing the internal structure of a display module in a display processing device of a UI interface according to an embodiment of the present invention.
  • FIG. 1 is a flow chart schematically showing a display processing method of a UI interface according to an embodiment of the present invention.
  • a display processing method of a UI interface according to an embodiment of the present invention specifically includes the following steps:
  • the element node of the UI interface is the branch or leaf of the tree control corresponding to the UI interface, for example, a tree control to implement a buddy list
  • the buddy type is a branch
  • the type name is a Lable control is a buddy branch.
  • the dry leaf, the friend Zhang San list item is the branch of the friend type corresponding to the branch, and the list item is composed of the friend avatar UI, the friend name UI, and possibly the button UI. Therefore, by parsing the UI interface, the element nodes of the UI interface can be obtained.
  • each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and parent node information of the corresponding element node in the tree control. And a list of child nodes.
  • the parent node information can be a parent node handle.
  • the element structure can be thought of as a list item. From the data level, the control is actually a list.
  • the list item is the sub-item information including the rendering information. If the sub-item now adds other UI controls, it is actually adding a list in the sub-item information, and the list item information is what you want to add. Rendering information for UI controls.
  • the UI in the sub-item is called the sub-item of the sub-item, which is the tree structure that everyone knows.
  • the rendering list corresponding to the tree control of the UI interface to be displayed specifically includes: determining rendering information of an element data structure corresponding to each element node in the tree control; The rendering information of the data structure is combined to obtain a rendering list of the UI interface to be displayed.
  • the element node of the UI interface to be displayed is obtained, and then a CWnd original control is created in the MFC, used as a container (or called a drawing board), and then passed through the CWnd control.
  • Message callbacks such as OnPain() window drawing messages, OnMouseMove() mouse moving messages, OnLButtonDown() left mouse button presses, OnLButtonUp() left mouse button up, OnMouseWheel() mouse wheel messages, OnVScroll() drag and drop Scroll bar message, OnMouseLeave () mouse moves out the message, etc.
  • the tree control adds a ROOT element according to the element node of the UI interface to be displayed, and the specific implementation is as follows: the child item information is saved in the original parent node list, and the child item UI information is saved in the child item list.
  • the callback function is set.
  • the step of setting a message callback function is also included.
  • the callback function defines the function callback through the function binding method provided by the BOOST library, and then uses the method provided by the library to set the external function to the value of the callback function defined in the internal, and finally calls the callback inside the control, and the function implementation actually It is defined externally. Then create a scroll bar through the Create method of CScrollBar, then set the scroll bar with the SCROLLINFO structure, and finally drag and drop the message through the OnVScroll() scroll bar to make the control display and the height of the scroll bar consistent.
  • Each element node in the tree control is configured with a corresponding element data structure
  • the element data structure includes drawing information (text image, etc.) of the corresponding element node in the tree control, position information, and element data information of the corresponding element node, Such as parent node information and child node list.
  • control defines some properties of the control, such as the render list to add all the elements to the list, the currently selected item handle (the element structure memory address), the ROOT element refers to the top element of all the branches and leaves can be understood as the control itself, Scroll bar types are generally only displayed vertically or horizontally.
  • the display processing method of the UI interface obtained by parsing the UI interface to be displayed, and creates a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed.
  • the tree control is rendered by using a double buffering technology according to a rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, improving the display speed and display effect of the complex UI interface, thereby improving User experience.
  • the display processing method of the UI interface obtained by the embodiment of the present invention obtains the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
  • step S14 in the display processing method of the UI interface of the present invention is further disclosed as follows to embody another embodiment implemented according to this step.
  • the subdivision steps of this step include:
  • the operation flow is as follows. Create a GDI double buffer. First, create a temporary DC through the CreateCompatibleDC method, then create a bitmap object HBITMAP through the CreateCompatibleBitmap method, and finally select HBITMAP into the temporary DC through the SelectObject method, thus completing the double buffer creation.
  • S142 Determine, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object.
  • the rendering of the control is implemented in the following manner:
  • OnPain message callback first get the size of the control, then use GDI + double cache technology to define a Bitmap with the same size as the control, traverse the render list according to the position information in each list item (that is, the position of the element corresponding to the list item in the Bitmap) Calculate the current start rendering position and save the render node's iterator in the list, then continue to traverse the list from the saved iterator through a While loop, each time a list item is rendered into a double buffer (Bitmap) according to the information provided by the list item Finally, draw the double buffer into CWnd through GDI+'s DrawImage method.
  • InvalidateEx method refresh the entire control, by calling the Cwnd::Invalidate method, the refresh logic is implemented in the CWnd::OnPain message callback
  • InvalidateItem method Update a node, traverse the list to find the list item through the input node handle, and then draw according to the rendering information of the list item, and overwrite the invalid area according to the position information of the list item.
  • the control is actually a list from the data level, and can only render the user sense when updating and displaying. Children of interest, other children can be ignored. E.g. When the control is displayed, it starts from the first item of the list, and then the second item is rendered.... When the display height of the control is over, it can be stopped. Similarly, when the control scrolls or slides, it is the same.
  • the embodiment of the invention solves the problems such as flicker or data residue that appear in the interface of the complex UI space in the prior art.
  • the problem of imagery achieves the effect of increasing the rendering efficiency of the control as the child nodes increase, improving the user's viewing experience.
  • the method further includes the step of: according to the parent node of the element node to be added, when receiving the element node addition request, in order to implement adding another UI control sub-item in the control sub-item
  • the information is searched for a corresponding parent element node, where the element node addition request includes the parent node information of the element node to be added; the corresponding element data structure to be added is configured for the to-be-added element node, and the to-be-added element data structure is added.
  • adding rendering information of the element data structure to be added to the rendering list In the parent element node; adding rendering information of the element data structure to be added to the rendering list.
  • the embodiment of the present invention can implement the operation of adding other UI control sub-items in the control sub-item by configuring the corresponding element data structure to be added in the element node to be added, and adding the data structure to be added to the corresponding parent element node.
  • the increase of the UI control sub-item does not affect the rendering efficiency of the control.
  • the creation of the sub-item can be implemented in the following manner: 1. Through the file, since the file in the JSON format is originally a data structure, the implementation can save the information data of the list sub-item into the file according to the tree structure. This is done by reading the JSON file into a list when the control is to be displayed. 2, dynamic addition, relatively simple is generally added to the list according to a certain style.
  • Addnode method Find the corresponding list item according to the incoming parent node handle, and then instantiate NEW a TreeItemInfo structure is added to the list of the list items that are queried. If the query handle is empty, it is added directly to the end of the list item, and finally Add the TreeItemInfo structure to the render list.
  • AddNodeByList method It is roughly the same as Addnode, except that the last addition is completely added to the render list from the entered list.
  • the method further includes the following steps: when receiving the element node update request, searching according to the node information of the element node to be updated Corresponding element node, the element node update request includes node information of the element node to be updated and target drawing information of the element node in the tree control; and the corresponding object to be updated according to the target drawing information Render the area for re-rendering.
  • the embodiment of the present invention can update the node information of the element node to be updated and the target drawing information of the element node in the tree control, so as to re-render the area to be rendered corresponding to the element node to be updated. Simple and convenient implementation of UI control sub-items.
  • the embodiment of the present invention can also implement an operation of setting different heights in the control sub-items.
  • the setting of different heights of the sub-items is actually the setting of the position information of the list sub-items.
  • the embodiment of the invention can realize fast setting and display of a complex UI interface, and further improve the user experience.
  • the method further includes the following steps: when receiving the element node deletion request, searching according to node information of the element node to be deleted Corresponding element node, where the element node deletion request includes node information of the element node to be deleted; and deleting the target drawing information of the element node in the tree control.
  • the deletion of the element node is implemented by deleting the manner in which the element node draws the information in the target of the tree control.
  • deleting a sub-item can be implemented by the DeleteAllChild method. Specifically, the DeleteAllChild method: traverses the list to find the list item and delete according to the input node handle.
  • the rendering list is re-rendered by double buffering technology to implement display of the updated UI interface.
  • the display processing method of the UI interface can regard the elements (such as text elements, buttons, pictures, panels, and the like) that can be seen as an element node or a list item when developing the visual UI program. Then, all of these elements are built into the tree structure, for example, the main interface is regarded as the trunk, and the trunk is divided into many panel branches, each of which is composed of many elements (buttons, pictures, etc.), similar Branches of leaves. Some of these complex stem panels can be made up of many panels or elements.
  • the tree structure is a data information structure. It can also be understood as a string in memory. Since you finally want to get a visual interface, you must traverse all the elements in the tree structure (list items) and draw information through the elements.
  • Use GDI+ double buffering or other rendering techniques to draw the elements to get a complex visual interface.
  • FIG. 3 is a schematic structural diagram of a display processing apparatus of a UI interface according to an embodiment of the present invention.
  • the display processing device of the UI interface of the embodiment of the present invention specifically includes a parsing module 301, a generating module 302, a configuration module 303, and a display module 304, wherein the parsing module 301 is configured to parse the UI interface to be displayed.
  • the generating module 302 is configured to create a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed a control module 303, configured to configure a rendering list corresponding to the tree control of the UI interface to be displayed; the display module 304 is configured to use a double buffering technology according to the rendering list.
  • the tree control is rendered.
  • each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and corresponding element nodes of the corresponding element node in the tree control.
  • the element data structure includes drawing information, position information, and corresponding element nodes of the corresponding element node in the tree control.
  • Parent node information and child node list is configured.
  • the configuration module 303 is specifically configured to determine rendering information of an element data structure corresponding to each element node in the tree control, and combine the rendering information of each element data structure to obtain the UI interface to be displayed. Rendering list.
  • the internal structure of the display module 304 in the display processing device of the UI interface of the present invention is further disclosed as follows to embody another embodiment implemented in accordance with this step.
  • the display module 304 in this embodiment specifically includes: a creating unit 3041, a determining unit 3042, a rendering unit 3043, and a display unit 3044, wherein: the creating unit 3041 is configured to create and use a double buffering technology.
  • the determining unit 3042 configured to determine, according to location information of each element node in the tree control in the rendering list, that the corresponding element node corresponds to the bitmap object
  • a rendering unit 3043 configured to render the area to be rendered according to the drawing information of each element node in the tree control
  • the display unit 3044 is configured to display the bitmap after the rendering The object is drawn to the tree control.
  • the device further includes a sub-item adding module not shown in the figure, where the sub-item adding module is configured to: according to the parent node of the element node to be added, when receiving the element node adding request The information is searched for a corresponding parent element node, where the element node addition request includes the parent node information of the element node to be added; the corresponding element data structure to be added is configured for the to-be-added element node, and the to-be-added element data structure is added.
  • adding rendering information of the element data structure to be added to the rendering list In the parent element node; adding rendering information of the element data structure to be added to the rendering list.
  • the sub-item adding module may add another element data structure to be added by adding an element data structure to be added in the element node to be added, and adding another element to the control item by adding a data structure to be added to the corresponding parent element node.
  • the device further includes a sub-item update module not shown in the figure, where the sub-item update module is configured to, according to the node information of the element node to be updated, when receiving the element node update request Searching for a corresponding element node, where the element node update request includes node information of the element node to be updated and target drawing information of the element node in the tree control; and corresponding to the object node to be updated according to the target drawing information
  • the area to be rendered is re-rendered.
  • the child item updating module may control the node information of the element node and the element node in the tree shape control
  • the target drawing information in the piece is updated to implement re-rendering of the area to be rendered corresponding to the element node to be updated.
  • the sub-item update module can also implement operations for setting different heights in the control sub-items.
  • the embodiment of the invention can realize fast setting and display of a complex UI interface, and further improve the user experience.
  • the device further includes a sub-item deletion module not shown in the figure, where the sub-item deletion module is configured to: according to the node information of the element node to be deleted, when receiving the element node deletion request Searching for a corresponding element node, where the element node deletion request includes node information of the element node to be deleted; and deleting the target drawing information of the element node in the tree control.
  • the deletion of the element node is implemented by deleting the manner in which the element node draws the information in the target of the tree control.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the display processing method and device of the UI interface obtained by the embodiment of the present invention obtains an element node of the UI interface to be displayed by parsing the UI interface to be displayed, and creates a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed.
  • the control uses the double buffering technology to render the tree control according to the rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, and improving the display speed and display effect of the complex UI interface. Thereby improving the user experience.
  • the display processing method of the UI interface obtained by the embodiment of the present invention obtains the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

Disclosed in embodiments of the present invention are a display processing method and device for a UI interface. The method comprises: parsing a UI interface to be displayed to obtain element nodes of the UI interface to be displayed; creating, according to the element nodes of the UI interface to be displayed, tree controls corresponding to the UI interface to be displayed; configuring a rendering list of the UI interface to be displayed, the rendering list corresponding to the tree controls; and employing, according to the rendering list, a double buffering technique to render the tree controls. The display processing method and device for a UI interface in the embodiments of the present invention realize highly efficient rendering of a UI interface, and improves the display speed and effect of a complicated UI interface, thus enhancing user experience.

Description

一种UI界面的显示处理方法及装置Display processing method and device for UI interface 技术领域Technical field
本发明涉及图形用户界面技术领域,尤其涉及一种UI界面的显示处理方法及装置。The present invention relates to the field of graphic user interface technologies, and in particular, to a display processing method and apparatus for a UI interface.
背景技术Background technique
随着计算机技术的不断发展,硬件性能的不断提高,这使得设计更加复杂的UI控件成为可能。发明人在实现本发明过程中发现:虽然Windows已经提供有相应的UI控件,但是这些UI控件的功能比较单一,使用比较繁琐。而对于复杂的UI控件,不仅设计过程复杂,同时,在对复杂UI控件的界面进行显示时,经常会出现如闪烁或数据残留等现象,影响用户观看体验,而且现有技术无法灵活地实现UI控件的扩展和更新。With the continuous development of computer technology and the continuous improvement of hardware performance, it makes it possible to design more complex UI controls. The inventor found in the process of implementing the present invention that although Windows has provided corresponding UI controls, the functions of these UI controls are relatively simple and cumbersome to use. For complex UI controls, not only the design process is complicated, but also when displaying the interface of complex UI controls, such as flickering or data residue, which affects the user's viewing experience, and the prior art cannot flexibly implement the UI. Extensions and updates to controls.
发明内容Summary of the invention
鉴于上述问题,本发明提出了一种UI界面的显示处理方法及装置,能够高效地实现UI界面的渲染,提高复杂UI界面的显示速度和显示效果,提升用户的使用体验。In view of the above problems, the present invention provides a display processing method and apparatus for a UI interface, which can efficiently implement rendering of a UI interface, improve display speed and display effect of a complex UI interface, and improve user experience.
本发明的一个方面,提供了一种UI界面的显示处理方法,所述方法包括:One aspect of the present invention provides a display processing method of a UI interface, the method comprising:
解析待显示UI界面,得到所述待显示UI界面的元素节点;Parsing the UI interface to be displayed, and obtaining an element node of the UI interface to be displayed;
根据所述待显示UI界面的元素节点创建与待显示UI界面对应的树形控件;Creating a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed;
配置所述待显示UI界面的与所述树形控件对应的渲染列表;以及Configuring a rendering list corresponding to the tree control of the UI interface to be displayed; and
根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。According to the rendering list, the tree control is rendered using a double buffering technique.
可选地,所述树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。Optionally, each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and a parent node of the corresponding element node of the corresponding element node in the tree control. Information and child node list.
可选地,所述配置所述待显示UI界面的与所述树形控件对应的渲染列表,包括:Optionally, the rendering list corresponding to the tree control of the UI interface to be displayed is configured to include:
确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。Determining rendering information of the element data structure corresponding to each element node in the tree control; combining rendering information of each element data structure to obtain a rendering list of the UI interface to be displayed.
可选地,所述根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染,包括:Optionally, the rendering, according to the rendering list, the double-buffering technology is used to render the tree control, including:
采用双缓存技术创建与所述树形控件对应的位图对象;Creating a bitmap object corresponding to the tree control by using a double buffering technique;
根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域; Determining, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object;
根据各元素节点在树形控件中的绘制信息对所述待渲染区域进行渲染;Rendering the to-be-rendered area according to drawing information of each element node in the tree control;
将渲染后的所述位图对象绘制到所述树形控件。The rendered bitmap object is drawn to the tree control.
可选地,所述方法还包括:Optionally, the method further includes:
在接收到元素节点添加请求时,根据待添加元素节点的父节点信息查找对应的父元素节点,所述元素节点添加请求中包括有待添加元素节点的父节点信息;When the element node addition request is received, the corresponding parent element node is searched according to the parent node information of the element node to be added, and the element node addition request includes the parent node information of the element node to be added;
为所述待添加元素节点配置对应的待添加元素数据结构,将所述待添加元素数据结构添加在所述父元素节点中;Configuring a corresponding to-be-added element data structure for the to-be-added element node, and adding the to-be-added element data structure to the parent element node;
将待添加元素数据结构的渲染信息添加到所述渲染列表中。The rendering information of the element data structure to be added is added to the rendering list.
可选地,所述方法还包括:Optionally, the method further includes:
在接收到元素节点更新请求时,根据待更新元素节点的节点信息查找对应的元素节点,所述元素节点更新请求中包括有待更新元素节点的节点信息和该元素节点在树形控件中的目标绘制信息;When receiving the element node update request, searching for the corresponding element node according to the node information of the element node to be updated, where the element node update request includes the node information of the element node to be updated and the target drawing of the element node in the tree control information;
根据所述目标绘制信息对所述待更新元素节点对应的待渲染区域进行重新渲染。And re-rendering the area to be rendered corresponding to the element node to be updated according to the target drawing information.
本发明的又一个方面,提供了一种UI界面的显示处理装置,所述装置包括:According to still another aspect of the present invention, a display processing apparatus for a UI interface is provided, the apparatus comprising:
解析模块,用于解析待显示UI界面,得到所述待显示UI界面的元素节点;a parsing module, configured to parse the UI interface to be displayed, and obtain an element node of the UI interface to be displayed;
生成模块,用于根据所述待显示UI界面的元素节点创建与待显示UI界面对应的树形控件;a generating module, configured to create a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed;
配置模块,用于配置所述待显示UI界面的与所述树形控件对应的渲染列表;a configuration module, configured to configure a rendering list corresponding to the tree control of the UI interface to be displayed;
显示模块,用于根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。And a display module, configured to render the tree control by using a double buffering technique according to the rendering list.
可选地,所述树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。Optionally, each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and a parent node of the corresponding element node of the corresponding element node in the tree control. Information and child node list.
可选地,所述配置模块,具体用于确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。Optionally, the configuration module is specifically configured to determine rendering information of an element data structure corresponding to each element node in the tree control, and combine rendering information of each element data structure to obtain the UI interface to be displayed. Rendering list.
可选地,所述显示模块,包括:Optionally, the display module includes:
创建单元,用于采用双缓存技术创建与所述树形控件对应的位图对象;Creating a unit for creating a bitmap object corresponding to the tree control by using a double buffering technology;
确定单元,用于根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域;a determining unit, configured to determine, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object;
渲染单元,用于根据各元素节点在树形控件中的绘制信息对所述待渲染区 域进行渲染;a rendering unit, configured to map the area to be rendered according to drawing information of each element node in a tree control Field rendering;
显示单元,用于将渲染后的所述位图对象绘制到所述树形控件。a display unit, configured to draw the rendered bitmap object to the tree control.
本发明实施例提供的UI界面的显示处理方法及装置,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,并根据待显示UI界面的元素节点创建待显示UI界面对应的树形控件,以根据与待显示UI界面的树形控件对应的渲染列表,采用双缓冲技术对该树形控件进行渲染,实现对待显示UI界面的高效渲染,提高复杂UI界面的显示速度和显示效果,进而提升用户的使用体验。The display processing method and device of the UI interface provided by the embodiment of the present invention obtains an element node of the UI interface to be displayed by parsing the UI interface to be displayed, and creates a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed. The control uses the double buffering technology to render the tree control according to the rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, and improving the display speed and display effect of the complex UI interface. Thereby improving the user experience.
此外,本发明实施例提供的UI界面的显示处理方法及装置,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,进而可以灵活地实现基于元素节点的UI控件的扩展和更新。In addition, the display processing method and device of the UI interface provided by the embodiment of the present invention can obtain the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了本发明实施例的一种UI界面的显示处理方法的流程图;FIG. 1 is a flowchart of a display processing method of a UI interface according to an embodiment of the present invention;
图2示出了本发明实施例的UI界面的显示处理方法中步骤S14的细分流程图;FIG. 2 is a flowchart showing the subdivision of step S14 in the display processing method of the UI interface according to the embodiment of the present invention;
图3示出了本发明实施例的一种UI界面的显示处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a display processing apparatus of a UI interface according to an embodiment of the present invention;
图4示出了本发明实施例的UI界面的显示处理装置中显示模块的内部结构示意图。FIG. 4 is a schematic diagram showing the internal structure of a display module in a display processing device of a UI interface according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理 解为具有与现有技术的上下文中的意义一致的意义,并且除非被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in the general dictionary should be considered The solution is to have a meaning consistent with the meaning in the context of the prior art, and unless specifically defined, it will not be interpreted in an idealized or overly formal meaning.
图1示意性示出了本发明实施例的一种UI界面的显示处理方法的流程图。参照图1,本发明实施例的UI界面的显示处理方法具体包括以下步骤:FIG. 1 is a flow chart schematically showing a display processing method of a UI interface according to an embodiment of the present invention. Referring to FIG. 1 , a display processing method of a UI interface according to an embodiment of the present invention specifically includes the following steps:
S11、解析待显示UI界面,得到所述待显示UI界面的元素节点。S11. Parse the UI interface to be displayed, and obtain an element node of the UI interface to be displayed.
目前,在开发Windows可视化窗口程序时通常会用到列表或树控件,即将可视化窗口程序中的数组信息展示到窗口上。本实施例中,UI界面的元素节点即UI界面对应的树控件的枝干或树叶,例如要实现一个好友列表的树型控件,好友类型就是一个枝干,类型名称是一个Lable控件是好友枝干的叶子,好友张三列表项又是好友类型对应枝干的枝干,而列表项又是由好友头像UI,好友名字UI,可能还有按钮UI这些叶子组成。因此,通过对UI界面进行解析,可以得到该UI界面的元素节点。Currently, a list or tree control is often used when developing a Windows visualization window program, which displays the array information in the visualization window program onto the window. In this embodiment, the element node of the UI interface is the branch or leaf of the tree control corresponding to the UI interface, for example, a tree control to implement a buddy list, the buddy type is a branch, and the type name is a Lable control is a buddy branch. The dry leaf, the friend Zhang San list item is the branch of the friend type corresponding to the branch, and the list item is composed of the friend avatar UI, the friend name UI, and possibly the button UI. Therefore, by parsing the UI interface, the element nodes of the UI interface can be obtained.
S12、根据所述待显示UI界面的元素节点创建与待显示UI界面对应的树形控件。S12. Create a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed.
本实施例中,树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。其中,父节点信息可以为父节点句柄。元素结构可以看作是列表项。从数据层面看控件其实是一个列表,列表项是子项信息包括了渲染信息,如果现在子项添加其他UI控件,其实就是在子项信息中在添加一个列表,列表项信息就是你要添加的UI控件的渲染信息。当控件需要更新的时候记得遍历子项中的列表就可以实现了。这样一来子项中的UI就被称为子项的子项,也就是大家所认识的树型结构了。In this embodiment, each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and parent node information of the corresponding element node in the tree control. And a list of child nodes. The parent node information can be a parent node handle. The element structure can be thought of as a list item. From the data level, the control is actually a list. The list item is the sub-item information including the rendering information. If the sub-item now adds other UI controls, it is actually adding a list in the sub-item information, and the list item information is what you want to add. Rendering information for UI controls. Remember to iterate over the list in the sub-item when the control needs to be updated. In this way, the UI in the sub-item is called the sub-item of the sub-item, which is the tree structure that everyone knows.
S13、配置所述待显示UI界面的与所述树形控件对应的渲染列表。S13. Configure a rendering list corresponding to the tree control of the UI interface to be displayed.
相应地,所述配置所述待显示UI界面的与所述树形控件对应的渲染列表,具体包括:确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。Correspondingly, the rendering list corresponding to the tree control of the UI interface to be displayed specifically includes: determining rendering information of an element data structure corresponding to each element node in the tree control; The rendering information of the data structure is combined to obtain a rendering list of the UI interface to be displayed.
S14、根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。S14. Render the tree control by using a double buffering technique according to the rendering list.
本发明实施例中,通过对待显示UI界面进行解析,得到所述待显示UI界面的元素节点,然后在MFC中创建一个CWnd原始控件,用来作为容器(或称为画板),然后通过CWnd控件的消息回调,如OnPain()窗口绘制消息,OnMouseMove()鼠标移动消息,OnLButtonDown()鼠标左键按下消息,OnLButtonUp()鼠标左键抬起,OnMouseWheel()鼠标滑轮消息,OnVScroll()拖放滚动条消息,OnMouseLeave()鼠标移出消息等,来绘制一个与待显示UI界面对应的 树型控件,根据待显示UI界面的元素节点添加ROOT元素,具体实现如下:子项信息保存在原始父节点列表中,子项UI信息保存在子项列表中。设置回调函数,本实施例中,为了实现CWnd控件的消息回调,还包括设置消息回调函数的步骤。具体的,回调函数是通过BOOST库提供的函数绑定方法定义函数回调,然后用库提供的方法将外部的函数设置到内部中定义的回调函数值中,最后在控件内部调用回调,函数实现其实是在外部定义的。然后通过CScrollBar的Create方法创建滚动条,然后用SCROLLINFO结构体设置滚动条,最后通过OnVScroll()滚动条拖放消息使控件显示和滚动条高度保持一致。In the embodiment of the present invention, by parsing the UI interface to be displayed, the element node of the UI interface to be displayed is obtained, and then a CWnd original control is created in the MFC, used as a container (or called a drawing board), and then passed through the CWnd control. Message callbacks, such as OnPain() window drawing messages, OnMouseMove() mouse moving messages, OnLButtonDown() left mouse button presses, OnLButtonUp() left mouse button up, OnMouseWheel() mouse wheel messages, OnVScroll() drag and drop Scroll bar message, OnMouseLeave () mouse moves out the message, etc., to draw a corresponding to the UI interface to be displayed The tree control adds a ROOT element according to the element node of the UI interface to be displayed, and the specific implementation is as follows: the child item information is saved in the original parent node list, and the child item UI information is saved in the child item list. The callback function is set. In this embodiment, in order to implement the message callback of the CWnd control, the step of setting a message callback function is also included. Specifically, the callback function defines the function callback through the function binding method provided by the BOOST library, and then uses the method provided by the library to set the external function to the value of the callback function defined in the internal, and finally calls the callback inside the control, and the function implementation actually It is defined externally. Then create a scroll bar through the Create method of CScrollBar, then set the scroll bar with the SCROLLINFO structure, and finally drag and drop the message through the OnVScroll() scroll bar to make the control display and the height of the scroll bar consistent.
树形控件中的每一元素节点配置有对应的元素数据结构,该元素数据结构包含对应元素节点在树形控件中的绘制信息(文本图片等)、位置信息和对应元素节点的元素数据信息,如父节点信息和子节点列表等。Each element node in the tree control is configured with a corresponding element data structure, the element data structure includes drawing information (text image, etc.) of the corresponding element node in the tree control, position information, and element data information of the corresponding element node, Such as parent node information and child node list.
元素数据结构的代码实现具体如下:The code implementation of the element data structure is as follows:
Figure PCTCN2017075739-appb-000001
Figure PCTCN2017075739-appb-000001
最后定义控件的一些属性,如渲染列表将所有的元素添加到列表中,当前选中项元素句柄(元素结构内存地址),ROOT元素是指所有枝干叶子的最上层元素这里可以理解为控件本身,滚动条类型一般只垂直或水平显示等。Finally, define some properties of the control, such as the render list to add all the elements to the list, the currently selected item handle (the element structure memory address), the ROOT element refers to the top element of all the branches and leaves can be understood as the control itself, Scroll bar types are generally only displayed vertically or horizontally.
本发明实施例提供的UI界面的显示处理方法,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,并根据待显示UI界面的元素节点创建待显示UI界面对应的树形控件,以根据与待显示UI界面的树形控件对应的渲染列表,采用双缓冲技术对该树形控件进行渲染,实现对待显示UI界面的高效渲染,提高复杂UI界面的显示速度和显示效果,进而提升用户的使用体验。此外,本 发明实施例提供的UI界面的显示处理方法,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,进而可以灵活地实现基于元素节点的UI控件的扩展和更新。The display processing method of the UI interface provided by the embodiment of the present invention obtains an element node of the UI interface to be displayed by parsing the UI interface to be displayed, and creates a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed. The tree control is rendered by using a double buffering technology according to a rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, improving the display speed and display effect of the complex UI interface, thereby improving User experience. In addition, this The display processing method of the UI interface provided by the embodiment of the present invention obtains the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
为了进一步体现发明的优越性,如下进一步揭示本发明UI界面的显示处理方法中步骤S14的细分步骤,来体现依据本步骤实现的另一实施例。参照图2,本步骤的细分步骤包括:In order to further embody the superiority of the invention, the subdivision step of step S14 in the display processing method of the UI interface of the present invention is further disclosed as follows to embody another embodiment implemented according to this step. Referring to Figure 2, the subdivision steps of this step include:
S141、采用双缓存技术创建与所述树形控件对应的位图对象;S141. Create a bitmap object corresponding to the tree control by using a double buffering technology.
操作流程具体如下,创建GDI双缓冲,首先通过CreateCompatibleDC方法创建一个临时DC,然后通过CreateCompatibleBitmap方法创建一个位图对象HBITMAP,最后通过SelectObject方法将HBITMAP选到临时DC中,这样就完成双缓冲创建。The operation flow is as follows. Create a GDI double buffer. First, create a temporary DC through the CreateCompatibleDC method, then create a bitmap object HBITMAP through the CreateCompatibleBitmap method, and finally select HBITMAP into the temporary DC through the SelectObject method, thus completing the double buffer creation.
S142、根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域;S142. Determine, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object.
S143、根据各元素节点在树形控件中的绘制信息对所述待渲染区域进行渲染;S143. Render the area to be rendered according to the drawing information of each element node in the tree control.
S144、将渲染后的所述位图对象绘制到所述树形控件。S144. Draw the rendered bitmap object to the tree control.
本发明实施例中,具体通过以下方式实现控件的渲染:In the embodiment of the present invention, the rendering of the control is implemented in the following manner:
OnPain消息回调:首先获取控件的大小,然后使用GDI+双缓存技术定义一个与控件的大小相同的Bitmap,遍历渲染列表根据每个列表项中的位置信息(即列表项对应的元素在Bitmap中的位置)计算当前开始渲染位置并保存渲染节点在列表中的迭代器,然后通过一个While循环从保存的迭代器继续遍历列表,每遍历一个列表项根据列表项提供的信息渲染到双缓冲(Bitmap)中,最后把双缓冲绘制到CWnd中通过GDI+的DrawImage方法。OnPain message callback: first get the size of the control, then use GDI + double cache technology to define a Bitmap with the same size as the control, traverse the render list according to the position information in each list item (that is, the position of the element corresponding to the list item in the Bitmap) Calculate the current start rendering position and save the render node's iterator in the list, then continue to traverse the list from the saved iterator through a While loop, each time a list item is rendered into a double buffer (Bitmap) according to the information provided by the list item Finally, draw the double buffer into CWnd through GDI+'s DrawImage method.
InvalidateEx方法:刷新整个控件,通过调用Cwnd::Invalidate方法来实现,刷新逻辑在CWnd::OnPain消息回调中实现InvalidateEx method: refresh the entire control, by calling the Cwnd::Invalidate method, the refresh logic is implemented in the CWnd::OnPain message callback
InvalidateItem方法:更新某一个节点,通过输入的节点句柄,遍历列表查找列表项,然后根据列表项的渲染信息进行绘制,并根据列表项的位置信息覆盖到失效的区域。InvalidateItem method: Update a node, traverse the list to find the list item through the input node handle, and then draw according to the rendering information of the list item, and overwrite the invalid area according to the position information of the list item.
本发明实施例中,使用高效的GID+双缓冲技术进行渲染,并通过将UI界面解析成对应的树形控件,从数据层面看控件其实就是一个列表,当更新和显示的时候可以只渲染用户感兴趣的子项,其他子项可以忽略。例如。当显示控件时,是从列表的第一项开始的,然后在渲染第二项…….,当超过控件的显示高度是可以停止了,同理当控件滚动或滑动时是一样的。本发明实施例解决了现有技术中在对复杂UI空间的界面进行显示时,出现的如闪烁或数据残留等现 象的问题,达到了随着子节点的增加控件渲染效率不变的效果,提高用户观看体验。In the embodiment of the present invention, using the efficient GID+ double buffering technology for rendering, and by parsing the UI interface into the corresponding tree control, the control is actually a list from the data level, and can only render the user sense when updating and displaying. Children of interest, other children can be ignored. E.g. When the control is displayed, it starts from the first item of the list, and then the second item is rendered.... When the display height of the control is over, it can be stopped. Similarly, when the control scrolls or slides, it is the same. The embodiment of the invention solves the problems such as flicker or data residue that appear in the interface of the complex UI space in the prior art. The problem of imagery achieves the effect of increasing the rendering efficiency of the control as the child nodes increase, improving the user's viewing experience.
为了实现在控件子项中添加其他UI控件子项,在本发明的一个可选实施例中,所述方法还包括以下步骤:在接收到元素节点添加请求时,根据待添加元素节点的父节点信息查找对应的父元素节点,所述元素节点添加请求中包括有待添加元素节点的父节点信息;为所述待添加元素节点配置对应的待添加元素数据结构,将所述待添加元素数据结构添加在所述父元素节点中;将待添加元素数据结构的渲染信息添加到所述渲染列表中。本发明实施例可以通过在待添加元素节点配置对应的待添加元素数据结构,并通过在对应的父元素节点中添加待添加元素数据结构,实现在控件子项中添加其他UI控件子项的操作,而且本发明实施例提供的在控件子项中添加其他UI控件子项的实现方案中,UI控件子项的增加不会影响控件的渲染效率。In an optional embodiment of the present invention, the method further includes the step of: according to the parent node of the element node to be added, when receiving the element node addition request, in order to implement adding another UI control sub-item in the control sub-item The information is searched for a corresponding parent element node, where the element node addition request includes the parent node information of the element node to be added; the corresponding element data structure to be added is configured for the to-be-added element node, and the to-be-added element data structure is added. In the parent element node; adding rendering information of the element data structure to be added to the rendering list. The embodiment of the present invention can implement the operation of adding other UI control sub-items in the control sub-item by configuring the corresponding element data structure to be added in the element node to be added, and adding the data structure to be added to the corresponding parent element node. In the implementation scheme of adding other UI control sub-items in the control sub-item provided by the embodiment of the present invention, the increase of the UI control sub-item does not affect the rendering efficiency of the control.
在一个具体实施例中,创建子项可通过以下方式实现:1、通过文件,由于JSON格式的文件本来就是数据结构,本实施可以把列表子项的信息数据按照树型结构保存到文件中,当要显示控件时把JSON文件读取到一个列表中即可实现。2、动态添加,比较简单一般是按照一定的样式一条一条的往列表中添加。In a specific embodiment, the creation of the sub-item can be implemented in the following manner: 1. Through the file, since the file in the JSON format is originally a data structure, the implementation can save the information data of the list sub-item into the file according to the tree structure. This is done by reading the JSON file into a list when the control is to be displayed. 2, dynamic addition, relatively simple is generally added to the list according to a certain style.
具体代码实现如下:The specific code is implemented as follows:
Addnode方法:根据传进来的父节点句柄查找对应的列表项,然后实例化NEW一个TreeItemInfo结构体添加到查询到的列表项的列表中,如果查询句柄为空直接添加到列表项尾部,最后还要把TreeItemInfo结构添加到渲染列表中。Addnode method: Find the corresponding list item according to the incoming parent node handle, and then instantiate NEW a TreeItemInfo structure is added to the list of the list items that are queried. If the query handle is empty, it is added directly to the end of the list item, and finally Add the TreeItemInfo structure to the render list.
AddNodeByList方法:跟Addnode大致一样,只是最后添加是从输入的列表完整添加到渲染列表中。AddNodeByList method: It is roughly the same as Addnode, except that the last addition is completely added to the render list from the entered list.
为了实现对树形控件中的元素节点的更新,在本发明的一个可选实施例中,所述方法还包括以下步骤:在接收到元素节点更新请求时,根据待更新元素节点的节点信息查找对应的元素节点,所述元素节点更新请求中包括有待更新元素节点的节点信息和该元素节点在树形控件中的目标绘制信息;根据所述目标绘制信息对所述待更新元素节点对应的待渲染区域进行重新渲染。本发明实施例可以通过对待更新元素节点的节点信息和该元素节点在树形控件中的目标绘制信息进行更新,实现对待更新元素节点对应的待渲染区域的重新渲染。简单方便地实现UI控件子项的更新。In an optional embodiment of the present invention, the method further includes the following steps: when receiving the element node update request, searching according to the node information of the element node to be updated Corresponding element node, the element node update request includes node information of the element node to be updated and target drawing information of the element node in the tree control; and the corresponding object to be updated according to the target drawing information Render the area for re-rendering. The embodiment of the present invention can update the node information of the element node to be updated and the target drawing information of the element node in the tree control, so as to re-render the area to be rendered corresponding to the element node to be updated. Simple and convenient implementation of UI control sub-items.
此外,基于相同的原理,本发明实施例还能够实现在控件子项中设置不同的高度的操作。子项设置不同高度,其实就是对列表子项的位置信息的设置,当遍历渲染时只要渲染按照位置信息就可以实现每一个子项的高度都可以不 同。本发明实施例能够实现复杂UI界面的快速设置和显示,进一步提升用户的使用体验。In addition, based on the same principle, the embodiment of the present invention can also implement an operation of setting different heights in the control sub-items. The setting of different heights of the sub-items is actually the setting of the position information of the list sub-items. When traversing the rendering, as long as the rendering according to the position information, the height of each sub-item can be achieved. with. The embodiment of the invention can realize fast setting and display of a complex UI interface, and further improve the user experience.
为了实现对树形控件中的元素节点的删除,在本发明的一个可选实施例中,所述方法还包括以下步骤:在接收到元素节点删除请求时,根据待删除元素节点的节点信息查找对应的元素节点,所述元素节点删除请求中包括有待删除元素节点的节点信息;删除该元素节点在树形控件中的目标绘制信息。本发明实施例通过删除元素节点在树形控件中的目标绘制信息的方式,实现元素节点的删除。在一个具体实施例中,删除子项可通过DeleteAllChild方法实现。具体的,DeleteAllChild方法:根据输入的节点句柄,遍历列表查找列表项并进行删除操作。In an optional embodiment of the present invention, the method further includes the following steps: when receiving the element node deletion request, searching according to node information of the element node to be deleted Corresponding element node, where the element node deletion request includes node information of the element node to be deleted; and deleting the target drawing information of the element node in the tree control. In the embodiment of the present invention, the deletion of the element node is implemented by deleting the manner in which the element node draws the information in the target of the tree control. In a specific embodiment, deleting a sub-item can be implemented by the DeleteAllChild method. Specifically, the DeleteAllChild method: traverses the list to find the list item and delete according to the input node handle.
在执行对树形控件中的元素节点的更新、删除以及在树形控件中的添加新的元素节点等操作后,需要对与所述树形控件对应的渲染列表进行相应操作,并根据更新后的渲染列表,采用双缓冲技术对所述树形控件进行重新渲染,以实现更新后的UI界面的显示。After performing operations such as updating and deleting the element nodes in the tree control and adding new element nodes in the tree control, it is necessary to perform corresponding operations on the rendering list corresponding to the tree control, and according to the update The rendering list is re-rendered by double buffering technology to implement display of the updated UI interface.
本发明实施例提供的UI界面的显示处理方法,在开发可视化UI程序时,可以把所可以看到的元素(例如文本,按钮,图片,面板等UI元素)看做一个元素节点或一个列表项,然后把所有的这些元素构建到树型结构中来,例如把主界面看做主干,由主干在分成许多面板枝干,在每个枝干由许多元素(按钮,图片等)来组成,类似枝干的树叶。其中有些复杂的枝干面板又可以由许多面板或元素组成。由此将一个复杂的UI界面构造成一个树型的数据结构。该树型结构,是一个数据信息结构,存在于内存也可以理解为一个字符串,由于最终是想得到一个可视化界面,这样就必须遍历树结构中的所有元素(列表项),通过元素中绘制信息使用GDI+双缓冲技术或其他绘制技术将元素绘制出来,即得到一个复杂的可视化界面。The display processing method of the UI interface provided by the embodiment of the present invention can regard the elements (such as text elements, buttons, pictures, panels, and the like) that can be seen as an element node or a list item when developing the visual UI program. Then, all of these elements are built into the tree structure, for example, the main interface is regarded as the trunk, and the trunk is divided into many panel branches, each of which is composed of many elements (buttons, pictures, etc.), similar Branches of leaves. Some of these complex stem panels can be made up of many panels or elements. This constructs a complex UI interface into a tree-like data structure. The tree structure is a data information structure. It can also be understood as a string in memory. Since you finally want to get a visual interface, you must traverse all the elements in the tree structure (list items) and draw information through the elements. Use GDI+ double buffering or other rendering techniques to draw the elements to get a complex visual interface.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present invention are not limited by the described action sequence, because the embodiment according to the present invention Some steps can be performed in other orders or at the same time. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
图3示意性示出了本发明一个实施例的UI界面的显示处理装置的结构示意图。参照图3,本发明实施例的UI界面的显示处理装置具体包括解析模块301、生成模块302、配置模块303以及显示模块304,其中:所述的解析模块301,用于解析待显示UI界面,得到所述待显示UI界面的元素节点;所述的生成模块302,用于根据所述待显示UI界面的元素节点创建与待显示UI界面对应的树形 控件;所述的配置模块303,用于配置所述待显示UI界面的与所述树形控件对应的渲染列表;所述的显示模块304,用于根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。FIG. 3 is a schematic structural diagram of a display processing apparatus of a UI interface according to an embodiment of the present invention. Referring to FIG. 3, the display processing device of the UI interface of the embodiment of the present invention specifically includes a parsing module 301, a generating module 302, a configuration module 303, and a display module 304, wherein the parsing module 301 is configured to parse the UI interface to be displayed. Obtaining an element node of the UI interface to be displayed; the generating module 302 is configured to create a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed a control module 303, configured to configure a rendering list corresponding to the tree control of the UI interface to be displayed; the display module 304 is configured to use a double buffering technology according to the rendering list. The tree control is rendered.
在本发明实施例中,所述树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。In the embodiment of the present invention, each element node in the tree control is configured with a corresponding element data structure, where the element data structure includes drawing information, position information, and corresponding element nodes of the corresponding element node in the tree control. Parent node information and child node list.
进一步地,所述配置模块303,具体用于确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。Further, the configuration module 303 is specifically configured to determine rendering information of an element data structure corresponding to each element node in the tree control, and combine the rendering information of each element data structure to obtain the UI interface to be displayed. Rendering list.
为了进一步体现发明的优越性,如下进一步揭示本发明UI界面的显示处理装置中显示模块304的内部结构图,来体现依据本步骤实现的另一实施例。参照图4,本实施例中的显示模块304,具体包括:创建单元3041、确定单元3042、渲染单元3043以及显示单元3044,其中:所述的创建单元3041,用于采用双缓存技术创建与所述树形控件对应的位图对象;所述的确定单元3042,用于根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域;所述的渲染单元3043,用于根据各元素节点在树形控件中的绘制信息对所述待渲染区域进行渲染;所述的显示单元3044,用于将渲染后的所述位图对象绘制到所述树形控件。In order to further embody the advantages of the invention, the internal structure of the display module 304 in the display processing device of the UI interface of the present invention is further disclosed as follows to embody another embodiment implemented in accordance with this step. Referring to FIG. 4, the display module 304 in this embodiment specifically includes: a creating unit 3041, a determining unit 3042, a rendering unit 3043, and a display unit 3044, wherein: the creating unit 3041 is configured to create and use a double buffering technology. Determining a bitmap object corresponding to the tree control; the determining unit 3042, configured to determine, according to location information of each element node in the tree control in the rendering list, that the corresponding element node corresponds to the bitmap object a rendering unit 3043, configured to render the area to be rendered according to the drawing information of each element node in the tree control; the display unit 3044 is configured to display the bitmap after the rendering The object is drawn to the tree control.
本发明实施例中,所述装置还包括附图中未示出的子项添加模块,所述的子项添加模块,用于在接收到元素节点添加请求时,根据待添加元素节点的父节点信息查找对应的父元素节点,所述元素节点添加请求中包括有待添加元素节点的父节点信息;为所述待添加元素节点配置对应的待添加元素数据结构,将所述待添加元素数据结构添加在所述父元素节点中;将待添加元素数据结构的渲染信息添加到所述渲染列表中。本发明实施例中,子项添加模块可以通过在待添加元素节点配置对应的待添加元素数据结构,并通过在对应的父元素节点中添加待添加元素数据结构,实现在控件子项中添加其他UI控件子项的操作,而且本发明实施例提供的在控件子项中添加其他UI控件子项的实现方案中,UI控件子项的增加不会影响控件的渲染效率。In the embodiment of the present invention, the device further includes a sub-item adding module not shown in the figure, where the sub-item adding module is configured to: according to the parent node of the element node to be added, when receiving the element node adding request The information is searched for a corresponding parent element node, where the element node addition request includes the parent node information of the element node to be added; the corresponding element data structure to be added is configured for the to-be-added element node, and the to-be-added element data structure is added. In the parent element node; adding rendering information of the element data structure to be added to the rendering list. In the embodiment of the present invention, the sub-item adding module may add another element data structure to be added by adding an element data structure to be added in the element node to be added, and adding another element to the control item by adding a data structure to be added to the corresponding parent element node. The operation of the UI control sub-item, and the implementation of the embodiment of the present invention to add other UI control sub-items in the control sub-item, the increase of the UI control sub-item does not affect the rendering efficiency of the control.
本发明实施例中,所述装置还包括附图中未示出的子项更新模块,所述的子项更新模块,用于在接收到元素节点更新请求时,根据待更新元素节点的节点信息查找对应的元素节点,所述元素节点更新请求中包括有待更新元素节点的节点信息和该元素节点在树形控件中的目标绘制信息;根据所述目标绘制信息对所述待更新元素节点对应的待渲染区域进行重新渲染。本发明实施例中,子项更新模块可以通过对待更新元素节点的节点信息和该元素节点在树形控 件中的目标绘制信息进行更新,实现对待更新元素节点对应的待渲染区域的重新渲染。简单方便地实现UI控件子项的更新。In the embodiment of the present invention, the device further includes a sub-item update module not shown in the figure, where the sub-item update module is configured to, according to the node information of the element node to be updated, when receiving the element node update request Searching for a corresponding element node, where the element node update request includes node information of the element node to be updated and target drawing information of the element node in the tree control; and corresponding to the object node to be updated according to the target drawing information The area to be rendered is re-rendered. In the embodiment of the present invention, the child item updating module may control the node information of the element node and the element node in the tree shape control The target drawing information in the piece is updated to implement re-rendering of the area to be rendered corresponding to the element node to be updated. Simple and convenient implementation of UI control sub-items.
此外,基于相同的原理,所述子项更新模块,还能够实现在控件子项中设置不同的高度的操作。本发明实施例能够实现复杂UI界面的快速设置和显示,进一步提升用户的使用体验。In addition, based on the same principle, the sub-item update module can also implement operations for setting different heights in the control sub-items. The embodiment of the invention can realize fast setting and display of a complex UI interface, and further improve the user experience.
本发明实施例中,所述装置还包括附图中未示出的子项删除模块,所述的子项删除模块,用于在接收到元素节点删除请求时,根据待删除元素节点的节点信息查找对应的元素节点,所述元素节点删除请求中包括有待删除元素节点的节点信息;删除该元素节点在树形控件中的目标绘制信息。本发明实施例通过删除元素节点在树形控件中的目标绘制信息的方式,实现元素节点的删除。In the embodiment of the present invention, the device further includes a sub-item deletion module not shown in the figure, where the sub-item deletion module is configured to: according to the node information of the element node to be deleted, when receiving the element node deletion request Searching for a corresponding element node, where the element node deletion request includes node information of the element node to be deleted; and deleting the target drawing information of the element node in the tree control. In the embodiment of the present invention, the deletion of the element node is implemented by deleting the manner in which the element node draws the information in the target of the tree control.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本发明实施例提供的UI界面的显示处理方法及装置,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,并根据待显示UI界面的元素节点创建待显示UI界面对应的树形控件,以根据与待显示UI界面的树形控件对应的渲染列表,采用双缓冲技术对该树形控件进行渲染,实现对待显示UI界面的高效渲染,提高复杂UI界面的显示速度和显示效果,进而提升用户的使用体验。此外,本发明实施例提供的UI界面的显示处理方法,通过对待显示UI界面进行解析,得到待显示UI界面的元素节点,进而可以灵活地实现基于元素节点的UI控件的扩展和更新。The display processing method and device of the UI interface provided by the embodiment of the present invention obtains an element node of the UI interface to be displayed by parsing the UI interface to be displayed, and creates a tree shape corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed. The control uses the double buffering technology to render the tree control according to the rendering list corresponding to the tree control of the UI interface to be displayed, thereby realizing efficient rendering of the UI interface to be displayed, and improving the display speed and display effect of the complex UI interface. Thereby improving the user experience. In addition, the display processing method of the UI interface provided by the embodiment of the present invention obtains the element node of the UI interface to be displayed by parsing the UI interface to be displayed, thereby flexibly implementing the extension and update of the UI control based on the element node.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着 处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Moreover, those skilled in the art will appreciate that although some embodiments herein include certain features that are included in other embodiments and not other features, a combination of features of the different embodiments means that It is within the scope of the invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

  1. 一种UI界面的显示处理方法,其特征在于,所述方法包括:A display processing method for a UI interface, the method comprising:
    解析待显示UI界面,得到所述待显示UI界面的元素节点;Parsing the UI interface to be displayed, and obtaining an element node of the UI interface to be displayed;
    根据所述待显示UI界面的元素节点创建与所述待显示UI界面对应的树形控件;Creating a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed;
    配置所述待显示UI界面的与所述树形控件对应的渲染列表;以及Configuring a rendering list corresponding to the tree control of the UI interface to be displayed; and
    根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。According to the rendering list, the tree control is rendered using a double buffering technique.
  2. 根据权利要求1所述的方法,其特征在于,所述树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。The method according to claim 1, wherein each element node in the tree control is configured with a corresponding element data structure, and the element data structure includes drawing information of a corresponding element node in a tree control, Location information and parent node information and child node lists of corresponding element nodes.
  3. 根据权利要求2所述的方法,其特征在于,所述配置所述待显示UI界面的与所述树形控件对应的渲染列表,包括:The method according to claim 2, wherein the configuring the rendering list corresponding to the tree control of the UI interface to be displayed comprises:
    确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。Determining rendering information of the element data structure corresponding to each element node in the tree control; combining rendering information of each element data structure to obtain a rendering list of the UI interface to be displayed.
  4. 根据权利要求2所述的方法,其特征在于,所述根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染,包括:The method according to claim 2, wherein the rendering of the tree control by using a double buffering technique according to the rendering list comprises:
    采用双缓存技术创建与所述树形控件对应的位图对象;Creating a bitmap object corresponding to the tree control by using a double buffering technique;
    根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域;Determining, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object;
    根据各元素节点在树形控件中的绘制信息对所述待渲染区域进行渲染;Rendering the to-be-rendered area according to drawing information of each element node in the tree control;
    将渲染后的所述位图对象绘制到所述树形控件。The rendered bitmap object is drawn to the tree control.
  5. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    在接收到元素节点添加请求时,根据待添加元素节点的父节点信息查找对应的父元素节点,所述元素节点添加请求中包括有待添加元素节点的父节点信息;When the element node addition request is received, the corresponding parent element node is searched according to the parent node information of the element node to be added, and the element node addition request includes the parent node information of the element node to be added;
    为所述待添加元素节点配置对应的待添加元素数据结构,将所述待添加元素数据结构添加在所述父元素节点中;Configuring a corresponding to-be-added element data structure for the to-be-added element node, and adding the to-be-added element data structure to the parent element node;
    将待添加元素数据结构的渲染信息添加到所述渲染列表中。The rendering information of the element data structure to be added is added to the rendering list.
  6. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    在接收到元素节点更新请求时,根据待更新元素节点的节点信息查找对应的元素节点,所述元素节点更新请求中包括有待更新元素节点的节点信息和该元素节点在树形控件中的目标绘制信息;When receiving the element node update request, searching for the corresponding element node according to the node information of the element node to be updated, where the element node update request includes the node information of the element node to be updated and the target drawing of the element node in the tree control information;
    根据所述目标绘制信息对所述待更新元素节点对应的待渲染区域进行重新渲染。 And re-rendering the area to be rendered corresponding to the element node to be updated according to the target drawing information.
  7. 一种UI界面的显示处理装置,其特征在于,所述装置包括:A display processing device for a UI interface, the device comprising:
    解析模块,用于解析待显示UI界面,得到所述待显示UI界面的元素节点;a parsing module, configured to parse the UI interface to be displayed, and obtain an element node of the UI interface to be displayed;
    生成模块,用于根据所述待显示UI界面的元素节点创建与待显示UI界面对应的树形控件;a generating module, configured to create a tree control corresponding to the UI interface to be displayed according to the element node of the UI interface to be displayed;
    配置模块,用于配置所述待显示UI界面的与所述树形控件对应的渲染列表;a configuration module, configured to configure a rendering list corresponding to the tree control of the UI interface to be displayed;
    显示模块,用于根据所述渲染列表,采用双缓冲技术对所述树形控件进行渲染。And a display module, configured to render the tree control by using a double buffering technique according to the rendering list.
  8. 根据权利要求7所述的装置,其特征在于,所述树形控件中的每一元素节点配置有对应的元素数据结构,所述元素数据结构包括对应元素节点在树形控件中的绘制信息、位置信息和对应元素节点的父节点信息和子节点列表。The device according to claim 7, wherein each element node in the tree control is configured with a corresponding element data structure, and the element data structure includes drawing information of a corresponding element node in a tree control, Location information and parent node information and child node lists of corresponding element nodes.
  9. 根据权利要求8所述的装置,其特征在于,所述配置模块,具体用于确定所述树形控件中每一元素节点对应的元素数据结构的渲染信息;将各个元素数据结构的渲染信息进行组合,得到所述待显示UI界面的渲染列表。The device according to claim 8, wherein the configuration module is specifically configured to determine rendering information of an element data structure corresponding to each element node in the tree control; and perform rendering information of each element data structure Combine to obtain a rendering list of the UI interface to be displayed.
  10. 根据权利要求8所述的装置,其特征在于,所述显示模块,包括:The device according to claim 8, wherein the display module comprises:
    创建单元,用于采用双缓存技术创建与所述树形控件对应的位图对象;Creating a unit for creating a bitmap object corresponding to the tree control by using a double buffering technology;
    确定单元,用于根据所述渲染列表中各元素节点在树形控件中的位置信息确定对应元素节点在所述位图对象中对应的待渲染区域;a determining unit, configured to determine, according to location information of each element node in the tree control in the rendering list, a corresponding to-be-rendered region of the corresponding element node in the bitmap object;
    渲染单元,用于根据各元素节点在树形控件中的绘制信息对所述待渲染区域进行渲染;a rendering unit, configured to render the area to be rendered according to drawing information of each element node in the tree control;
    显示单元,用于将渲染后的所述位图对象绘制到所述树形控件。 a display unit, configured to draw the rendered bitmap object to the tree control.
PCT/CN2017/075739 2016-12-08 2017-03-06 Display processing method and device for ui interface WO2018103218A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611121830.5 2016-12-08
CN201611121830.5A CN108196920B (en) 2016-12-08 2016-12-08 Display processing method and device of UI (user interface)

Publications (1)

Publication Number Publication Date
WO2018103218A1 true WO2018103218A1 (en) 2018-06-14

Family

ID=62490762

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075739 WO2018103218A1 (en) 2016-12-08 2017-03-06 Display processing method and device for ui interface

Country Status (2)

Country Link
CN (1) CN108196920B (en)
WO (1) WO2018103218A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10705708B2 (en) 2018-11-29 2020-07-07 International Business Machines Corporation Data expansion control
CN111539186A (en) * 2020-04-29 2020-08-14 烽火通信科技股份有限公司 Big data tree component implementation method and system applied to HTML5
CN113190230A (en) * 2021-05-21 2021-07-30 广东群创信息科技有限公司 Medical display method and system for setting UI interface in user-defined mode
CN113342454A (en) * 2021-08-05 2021-09-03 北京金堤科技有限公司 Method and apparatus for locating detail cards
CN113923519A (en) * 2021-11-11 2022-01-11 深圳万兴软件有限公司 Video rendering method and device, computer equipment and storage medium
EP3968147A4 (en) * 2019-06-27 2022-06-29 Huawei Technologies Co., Ltd. Page drawing control method, apparatus and device
US11741648B2 (en) 2019-05-06 2023-08-29 Tencent Technology (Shenzhen) Company Limited Element rendering method and apparatus, computer readable storage medium, and computer device
CN117648153A (en) * 2024-01-29 2024-03-05 太平金融科技服务(上海)有限公司 Rendering display method and device, electronic equipment and storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324796B (en) * 2018-08-01 2022-09-09 浙江口碑网络技术有限公司 Interface layout method and device
CN110837368B (en) * 2018-08-17 2023-04-07 阿里巴巴集团控股有限公司 Data processing method and device and electronic equipment
CN109656557B (en) * 2018-12-19 2022-08-05 北京像素软件科技股份有限公司 User interface generation method and device
CN110221889B (en) * 2019-05-05 2020-09-25 北京三快在线科技有限公司 Page display method and device, electronic equipment and storage medium
CN111221528B (en) * 2019-12-27 2023-07-25 广东金赋科技股份有限公司 Cascade data display method
CN111258474B (en) * 2020-01-15 2021-07-06 广东三维家信息科技有限公司 Interaction method and device based on GUI and electronic equipment
CN111506380A (en) * 2020-04-22 2020-08-07 上海极链网络科技有限公司 Rendering method, device, equipment and storage medium
CN113626113B (en) * 2020-05-08 2024-04-05 北京沃东天骏信息技术有限公司 Page rendering method and device
CN112604277B (en) * 2020-12-29 2021-08-31 广州银汉科技有限公司 GUI quick repeated engraving production method based on mobile phone game
CN113312135B (en) * 2021-07-30 2021-11-09 平安科技(深圳)有限公司 List display method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556539A (en) * 2009-04-03 2009-10-14 腾讯科技(北京)有限公司 Method and device for realizing tree structure based on a macos operation system
CN101944027A (en) * 2010-09-26 2011-01-12 北京神州泰岳软件股份有限公司 User interface generation method
CN102955680A (en) * 2011-08-25 2013-03-06 腾讯科技(深圳)有限公司 Screen writing method and mobile terminal with screen writing function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101556539A (en) * 2009-04-03 2009-10-14 腾讯科技(北京)有限公司 Method and device for realizing tree structure based on a macos operation system
CN101944027A (en) * 2010-09-26 2011-01-12 北京神州泰岳软件股份有限公司 User interface generation method
CN102955680A (en) * 2011-08-25 2013-03-06 腾讯科技(深圳)有限公司 Screen writing method and mobile terminal with screen writing function

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10705708B2 (en) 2018-11-29 2020-07-07 International Business Machines Corporation Data expansion control
US11741648B2 (en) 2019-05-06 2023-08-29 Tencent Technology (Shenzhen) Company Limited Element rendering method and apparatus, computer readable storage medium, and computer device
EP3968147A4 (en) * 2019-06-27 2022-06-29 Huawei Technologies Co., Ltd. Page drawing control method, apparatus and device
CN111539186B (en) * 2020-04-29 2023-05-09 烽火通信科技股份有限公司 Big data tree component realization method and system applied to HTML5
CN111539186A (en) * 2020-04-29 2020-08-14 烽火通信科技股份有限公司 Big data tree component implementation method and system applied to HTML5
CN113190230A (en) * 2021-05-21 2021-07-30 广东群创信息科技有限公司 Medical display method and system for setting UI interface in user-defined mode
CN113190230B (en) * 2021-05-21 2024-05-03 广东群创信息科技有限公司 Medical display method and system for user-defined setting of UI (user interface)
CN113342454A (en) * 2021-08-05 2021-09-03 北京金堤科技有限公司 Method and apparatus for locating detail cards
CN113342454B (en) * 2021-08-05 2021-11-16 北京金堤科技有限公司 Method and apparatus for locating detail cards
CN113923519A (en) * 2021-11-11 2022-01-11 深圳万兴软件有限公司 Video rendering method and device, computer equipment and storage medium
CN113923519B (en) * 2021-11-11 2024-02-13 深圳万兴软件有限公司 Video rendering method, device, computer equipment and storage medium
CN117648153A (en) * 2024-01-29 2024-03-05 太平金融科技服务(上海)有限公司 Rendering display method and device, electronic equipment and storage medium
CN117648153B (en) * 2024-01-29 2024-04-26 太平金融科技服务(上海)有限公司 Rendering display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108196920B (en) 2020-01-03
CN108196920A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
WO2018103218A1 (en) Display processing method and device for ui interface
KR102291674B1 (en) Method and apparatus for generating knowledge graph, device and computer readable storage medium
US10558331B2 (en) Terminal device and method for designing network application product
US11314801B2 (en) Multiple partial-image compositional searching
US10528589B2 (en) Cross visualization interaction between data visualizations
US9305385B2 (en) Animation creation and management in presentation application programs
US9317963B2 (en) Generating scenes and tours in a spreadsheet application
KR102148541B1 (en) Utilizing a ribbon to access an application user interface
CN106537371B (en) Visualization suggestions
US20230221837A1 (en) Coalescing Notifications Associated with Interactive Digital Content
US20100229127A1 (en) System and method for navigating posts in a discussion
CN107066177A (en) The multiple spot kneading gesture control of search result
CN111611518B (en) Automatic visual display page publishing method and system based on Html5
JP6157758B2 (en) Information processing apparatus, moving image reproducing method, and moving image reproducing program
US20230075403A1 (en) Voice packet recommendation method and apparatus, device and storage medium
US20120110499A1 (en) Virtualized layouts
CN104298695B (en) Data caching method and device and server
KR102063425B1 (en) Endless search result page
WO2020000812A1 (en) Method and apparatus for generating ppt document, storage medium, and computer device
JP6898542B2 (en) Information processing device, its control method, and program
WO2016029425A1 (en) Information notifying method, apparatus and terminal
US11163830B2 (en) Augmenting the display of data in a tree format
US20160307123A1 (en) Methods and systems for legacy compatible software
CN114398122B (en) Input method, input device, electronic equipment, storage medium and product
US11908493B2 (en) Single clip segmentation of media

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17878048

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17878048

Country of ref document: EP

Kind code of ref document: A1