Vault 7: Projects

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

1.6.2.2.1 GFX_GOL_ObjectStateClear Macro
This function clears the state bits of the given object.
File
gfx_gol.h
Syntax
#define GFX_GOL_ObjectStateClear(pObject, stateBits) \
((((GFX_GOL_OBJ_HEADER*)pObject)->state) &= (~(stateBits)))
Returns
GFX_STATUS_SUCCESS - is returned if the clear was successful. GFX_STATUS_FAILURE - is returned if the clear was
not successful.
Description
This function clears the state bits of the given object. Object must be redrawn to display the changes. It is possible to set
several state bits with this function.
Preconditions
None.
Example
See GFX_GOL_ObjectStateSet() for code example.
Parameters
Parameters Description
pObject Pointer to the object.
stateBits Defines which state bits are to be cleared. Please refer to
specific objects for object state bits definition for details
Function
GFX_STATUS GFX_GOL_ObjectStateClear(
GFX_GOL_OBJ_HEADER *pObject,
uint16_t stateBits);
1.6.2.2.2 GFX_GOL_ObjectStateGet Macro
This function retrieves the current value of the state bits of an object.
File
gfx_gol.h
Syntax
#define GFX_GOL_ObjectStateGet(pObject, stateBits) \
(((GFX_GOL_OBJ_HEADER*)pObject)->state & stateBits)
Returns
The current status of the specified state bits.
Description
This function retrieves the current value of the state bits of an object. It is possible to get several state bits.
Preconditions
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
295

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh