Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

1.6.2.1.6.12 GFX_GOL_ListBoxDraw Function
This function renders the object on the screen based on the current state of the object.
File
gfx_gol_list_box.h
Syntax
GFX_STATUS GFX_GOL_ListBoxDraw(void * pObject);
Returns
GFX_STATUS_SUCCESS - When the object rendering is finished. GFX_STATUS_FAILURE - When the object rendering is
not yet finished. Application needs to call this rendering function again to continue the rendering.
Description
This function renders the object on the screen based on the current state of the object. Location of the object is determined
by the left, top, right and bottom parameters. The colors used are dependent on the state of the object. The font used is
determined by the style scheme set.
Text alignment based on the alignment parameter set on the object.
When rendering objects of the same type, each object must be rendered completely before the rendering of the next object
is started. This is to avoid incomplete object rendering.
Normally, application will just call GFX_GOL_ObjectListDraw() to allow the Graphics Library to manage all object rendering.
See GFX_GOL_ObjectListDraw() for more information on object rendering.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject Pointer to the object.
Function
GFX_STATUS GFX_GOL_ListBoxDraw(void *pObject)
1.6.2.1.6.13 GFX_GOL_ListBoxItemAdd Function
This function adds an item to the list box.
File
gfx_gol_list_box.h
Syntax
GFX_GOL_LISTITEM * GFX_GOL_ListBoxItemAdd(GFX_GOL_LISTBOX * pObject, GFX_GOL_LISTITEM *
pPrevItem, GFX_XCHAR * pText, GFX_RESOURCE_HDR * pImage, uint16_t status, uint16_t data);
Returns
The pointer to the created item.
Description
This function adds an item to the list box. This function allocates the memory needed for the GFX_GOL_LISTITEM and adds
it to the list box. The newly created GFX_GOL_LISTITEM will store the location of pText, pImage and other parameters
describing the added item.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
211

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh