Vault 7: Projects

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

GFX_GOL_OBJ_HEADER *pObject)
1.6.2.4.6 GFX_GOL_ObjectListDraw Function
This function redraws all objects in the current active list that has the rendering state bits set.
File
gfx_gol.h
Syntax
GFX_STATUS GFX_GOL_ObjectListDraw();
Returns
GFX_STATUS_SUCCESS - is returned when the active list is completely parsed and redrawn. GFX_STATUS_BUSY - is
returned when the active list is not completely parsed and redrawn.
Description
This function loops through the active list and redraws objects that need to be redrawn. Partial redrawing or full redraw is
performed depending on the drawing states of the objects.
GFX_GOL_ObjectDrawCallback() function is called by GFX_GOL_ObjectListDraw() when drawing of objects in the active list
is completed. GFX_GOL_ObjectDrawCallback() is an application implemented function that allows the application the
opportunity to insert application specific rendering using Primitive Layer rendering functions.
The GFX_GOL_ObjectListDraw() function can return with GFX_STATUS_BUSY. In this case, it indicates that the currently
redrawn object is not able to continue. Application needs to call GFX_GOL_ObjectListDraw() again to continue the redraw of
the objects in the list.
Preconditions
None.
Example
// Assume objects are created & states are set to draw objects
while(1)
{
// parse active list and redraw objects
// that needs to be redrawn
if( GFX_GOL_ObjectListDraw() == GFX_STATUS_SUCCESS)
{
// at this point drawing is completed
// it is safe to modify objects states and linked list
// evaluate messages from touch screen device
TouchGetMsg(&msg);
// evaluate each object is affected by the message
GFX_GOL_ObjectMessage(&msg);
}
}
Function
GFX_STATUS GFX_GOL_ObjectListDraw(void)
1.6.2.4.7 GFX_GOL_ObjectListHide Function
This function marks all objects in the active list to be hidden.
File
gfx_gol.h
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
313

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh