Vault 7: Projects

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

Example
void ControlSpeed( GFX_GOL_SCROLLBAR* pObj,
int setSpeed,
int curSpeed)
{
// set page size to 1
GFX_GOL_ScrollBarPageSet(pObj, 1);
if (setSpeed < curSpeed)
{
while(GFX_GOL_ScrollBarPositionGet(pObj) < SetSpeed)
GFX_GOL_ScrollBarPositionIncrement(pObj); // increment by 1
}
else if (setSpeed > curSpeed)
{
while(GFX_GOL_ScrollBarPositionGet(pObj) > SetSpeed)
GFX_GOL_ScrollBarPositionDecrement(pObj); // decrement by 1
}
}
Parameters
Parameters Description
pObject pointer to the object.
Function
void GFX_GOL_ScrollBarPositionIncrement(
GFX_GOL_SCROLLBAR *pObject)
1.6.2.1.11.10 GFX_GOL_ScrollBarPositionSet Function
This function sets the position of the scroll bar thumb.
File
gfx_gol_scroll_bar.h
Syntax
void GFX_GOL_ScrollBarPositionSet(GFX_GOL_SCROLLBAR * pObject, uint16_t position);
Returns
None.
Description
This function sets the position of the scroll bar thumb. The thumb is the rectangular area that slides left or right (for horizontal
orientation) or slides up or down (for vertical orientation).
The value used for the position should be within the range set for the object.
Function will have an undefined behavior if the position is outside the range.
Preconditions
Object must exist in memory.
Example
GFX_GOL_SCROLLBAR *pScrollBar;
uint16_t ctr = 0;
// create slider here and initialize parameters
GFX_GOL_ObjectStateSet(pScrollBar, GFX_GOL_SCROLLBAR_DRAW_STATE);
GFX_GOL_ObjectListDraw();
while("some condition")
{
GFX_GOL_ScrollBarPositionSet(pScrollBar, ctr);
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
264

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh