Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Description
This function increments the scroll bar position by the given delta value set. If the delta given exceeds the maximum value of
the meter, the value will remain to be at maximum.
Object must be redrawn after this function is called to reflect the changes to the object.
Preconditions
Object must exist in memory.
Example
void ControlSpeed( GFX_GOL_METER* pObj,
int setSpeed,
int curSpeed)
{
// set page size to 1
GFX_GOL_MeterValueSet(pObj, 1);
if (setSpeed < curSpeed)
{
while(GFX_GOL_MeterValueGet(pObj) < SetSpeed)
GFX_GOL_MeterIncrement(pObj, 1); // increment by 1
}
else if (setSpeed > curSpeed)
{
while(GFX_GOL_MeterValueGet(pObj) > SetSpeed)
GFX_GOL_MeterDecrement(pObj, 1); // decrement by 1
}
}
Parameters
Parameters Description
pObject pointer to the object.
Function
void GFX_GOL_MeterIncrement(
GFX_GOL_METER *pObject,
uint16_t delta)
1.6.2.1.7.13 GFX_GOL_MeterRangeSet Function
This function sets the range of the meter.
File
gfx_gol_meter.h
Syntax
void GFX_GOL_MeterRangeSet(GFX_GOL_METER * pObject, int16_t minValue, int16_t maxValue);
Returns
None.
Description
This function sets the range of the meter. When the range is modified, object must be completely redrawn to reflect the
change. minValue should always be less than maxValue.
Preconditions
Object must exist in memory.
Example
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
228
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf