Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
// decrement by 1
GFX_GOL_DigitalMeterDecrement(pObj, 1);
}
}
}
Parameters
Parameters Description
pObject pointer to the object.
Function
void GFX_GOL_DigitalMeterIncrement(
GFX_GOL_DIGITALMETER *pObject,
uint16_t delta)
1.6.2.1.3.9 GFX_GOL_DigitalMeterValueSet Function
This function sets the value of the meter.
File
gfx_gol_digital_meter.h
Syntax
void GFX_GOL_DigitalMeterValueSet(GFX_GOL_DIGITALMETER * pObject, int16_t value);
Returns
None.
Description
This function sets the value of the meter. The value used should be within the range set for the object. The new value is
checked to be in the minimum and maximum value range. If the value set is less than the minimum value, the value that will
be set is the minimum value. If the value set is more than the maximum value, then the value that will be set is the maximum
value.
Preconditions
Object must exist in memory.
Example
GFX_GOL_DIGITALMETER *pMeter;
uint16_t ctr = 0;
// create slider here and initialize parameters
GFX_GOL_ObjectStateSet(pMeter, GFX_GOL_DIGITALMETER_DRAW_STATE);
GFX_GOL_ObjectListDraw();
while("some condition")
{
GFX_GOL_DigitalMeterValueSet(pMeter, ctr);
GFX_GOL_ObjectStateSet( pMeter,
GFX_GOL_DIGITALMETER_UPDATE_STATE);
// redraw the scroll bar
GFX_GOL_ObjectListDraw();
// update ctr here
ctr = "some source of value";
}
Parameters
Parameters Description
pObject pointer to the object.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
184
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf