Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Returns
The current value of the object.
Description
This function returns the current value of the meter.
Preconditions
Object must exist in memory.
Example
#define MAXVALUE 100;
GFX_GOL_METER *pMeter;
uint32_t ctr = 0;
// create scroll bar here and initialize parameters
pMeter = GFX_GOL_MeterCreate(....)
GFX_GOL_ObjectStateSet(pMeter, GFX_GOL_METER_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_MeterValueSet(pMeter, ctr);
GFX_GOL_ObjectStateSet( pMeter,
GFX_GOL_METER_UPDATE_DRAW_STATE);
// update the screen
GFX_GOL_ObjectListDraw();
// update ctr here
ctr = "some source of value";
}
if (GFX_GOL_MeterValueGet(pScrollBar) > MAXVALUE)
return 0;
else
"do something else"
Parameters
Parameters Description
pObject pointer to the object.
Function
uint16_t GFX_GOL_MeterValueGet(
GFX_GOL_METER *pObject)
1.6.2.1.7.7 GFX_GOL_MeterActionGet Function
This function evaluates the message from a user if the message will affect the object or not.
File
gfx_gol_meter.h
Syntax
GFX_GOL_TRANSLATED_ACTION GFX_GOL_MeterActionGet(void * pObject, GFX_GOL_MESSAGE *
pMessage);
Returns
• GFX_GOL_METER_ACTION_SET – Meter id is given in parameter 1 for a TYPE_SYSTEM message.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
222
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf