Vault 7: Projects

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

GFX_ALIGNMENT align)
1.6.2.1.3.3 GFX_GOL_DigitalMeterValueGet Macro
This function returns the current value of the digital meter.
File
gfx_gol_digital_meter.h
Syntax
#define GFX_GOL_DigitalMeterValueGet(pObject) \
(((GFX_GOL_DIGITALMETER*)pObject)->value)
Returns
The current value of the object.
Description
This function returns the current value of the digital meter.
Preconditions
Object must exist in memory.
Example
#define MAXVALUE 100;
GFX_GOL_DIGITALMETER *pMeter;
uint32_t ctr = 0;
// create scroll bar here and initialize parameters
pMeter = GFX_GOL_DigitalMeterCreate(....)
GFX_GOL_ObjectStateSet(pMeter, GFX_GOL_DIGITALMETER_DRAW_STATE);
// draw the scroll bar
GFX_GOL_ObjectListDraw();
// a routine that updates the position of the thumb through some
// conditions
while("some condition")
{
GFX_GOL_DigitalMeterValueSet(pMeter, ctr);
GFX_GOL_ObjectStateSet( pMeter,
GFX_GOL_DIGITALMETER_UPDATE_STATE);
// update the screen
GFX_GOL_ObjectListDraw();
// update ctr here
ctr = "some source of value";
}
if (GFX_GOL_DigitalMeterValueGet(pScrollBar) > MAXVALUE)
return 0;
else
"do something else"
Parameters
Parameters Description
pObject pointer to the object.
Function
uint16_t GFX_GOL_DigitalMeterValueGet(
GFX_GOL_DIGITALMETER *pObject)
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
179

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh