Vault 7: Projects

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

color3 color assigned to Arc 3 and Scale 3.
color4 color assigned to Arc 4 and Scale 4.
color5 color assigned to Arc 5 and Scale 5.
color6 color assigned to Arc 6 and Scale 6.
Function
void GFX_GOL_MeterScaleColorsSet(
GFX_GOL_METER *pObject,
GFX_COLOR color1,
GFX_COLOR color2,
GFX_COLOR color3,
GFX_COLOR color4,
GFX_COLOR color5,
GFX_COLOR color6)
1.6.2.1.7.15 GFX_GOL_MeterValueSet Function
This function sets the value of the meter.
File
gfx_gol_meter.h
Syntax
void GFX_GOL_MeterValueSet(GFX_GOL_METER * 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_METER *pMeter;
uint16_t ctr = 0;
// create slider here and initialize parameters
GFX_GOL_ObjectStateSet(pMeter, GFX_GOL_METER_DRAW_STATE);
GFX_GOL_ObjectListDraw();
while("some condition")
{
GFX_GOL_MeterValueSet(pMeter, ctr);
GFX_GOL_ObjectStateSet( pMeter,
GFX_GOL_METER_UPDATE_DRAW_STATE);
// redraw the scroll bar
GFX_GOL_ObjectListDraw();
// update ctr here
ctr = "some source of value";
}
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
230

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh