Vault 7: Projects

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

Returns
None.
Description
This function decrements the scroll bar position by the delta change (page) value set. 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_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)
{
// increment by 1
GFX_GOL_ScrollBarPositionIncrement(pObj);
}
}
else if (setSpeed > curSpeed)
{
while(GFX_GOL_ScrollBarPositionGet(pObj) > SetSpeed)
{
// decrement by 1
GFX_GOL_ScrollBarPositionDecrement(pObj);
}
}
}
Parameters
Parameters Description
pObject pointer to the object.
Function
void GFX_GOL_ScrollBarPositionDecrement(
GFX_GOL_SCROLLBAR *pObject)
1.6.2.1.11.8 GFX_GOL_ScrollBarPositionGet Function
This function returns the current position of the scroll bar thumb.
File
gfx_gol_scroll_bar.h
Syntax
uint16_t GFX_GOL_ScrollBarPositionGet(GFX_GOL_SCROLLBAR * pObject);
Returns
The current position of the scroll bar thumb.
Description
This function returns the current 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).
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
262

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh