Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Function
void GFX_GOL_ObjectDrawEnable( GFX_GOL_OBJ_HEADER *pObject)
1.6.2.4.5 GFX_GOL_ObjectIsRedrawSet Function
This function checks if the object needs to be redrawn or not.
File
gfx_gol.h
Syntax
bool GFX_GOL_ObjectIsRedrawSet(GFX_GOL_OBJ_HEADER * pObject);
Returns
true - when the object needs to be redrawn. false - when the object does not need to be redrawn.
Description
This function checks if the object needs to be redrawn or not. The function returns true if it is to be redrawn or false if it is not
to be redrawn.
Preconditions
None.
Example
int DrawButtonWindowOnly()
{
static GFX_GOL_OBJ_HEADER *pCurrentObj = NULL;
uint16_t done = 0;
if (pCurrentObj == NULL)
{
// get current list
pCurrentObj = GFX_GOL_ObjectListGet();
}
while(pCurrentObj != NULL)
{
if(GFX_GOL_ObjectIsRedrawSet(pCurrentObj) == true)
{
done = pCurrentObj->draw(pCurrentObj);
// reset state of object if done
if (done)
GOLDrawComplete(pCurrentObj)
// Return if not done. This means that Button Draw function
// was not able to finish redrawing the object
// and must be called again to finish rendering of
// objects in the list that have new states.
else
return 0;
}
// go to the next object in the list
pCurrentObj = pCurrentObj->pNxtObj;
}
return 1;
}
Parameters
Parameters Description
pObject pointer to the object that will be checked.
Function
bool GFX_GOL_ObjectIsRedrawSet(
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
312
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf