# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 261
- 262
- 263
- 264
- 265
…
- 373
- 374

Preconditions
Object must exist in memory.
Example
#define MAXVALUE 100;
GFX_GOL_SCROLLBAR *pScrollBar;
uint32_t ctr = 0;
// create scroll bar here and initialize parameters
pScrollBar = GFX_GOL_ScrollBarCreate(....)
GFX_GOL_ObjectStateSet(pScrollBar, GFX_GOL_SCROLLBAR_DRAW_STATE);
// draw the scroll bar
GFX_GOL_ObjectListDraw();
// a routine that updates the position of the thumb through some
// conditions
while("some condition")
{
GFX_GOL_ScrollBarPositionSet(pScrollBar, ctr);
GFX_GOL_ObjectStateSet( pScrollBar,
GFX_GOL_SCROLLBAR_DRAW_THUMB_STATE);
// update the screen
GFX_GOL_ObjectListDraw();
// update ctr here
ctr = "some source of value";
}
if (GFX_GOL_ScrollBarPositionGet(pScrollBar) > MAXVALUE)
return 0;
else
"do something else"
Parameters
Parameters Description
pObject pointer to the object.
Function
uint16_t GFX_GOL_ScrollBarPositionGet(
GFX_GOL_SCROLLBAR *pObject)
1.6.2.1.11.9 GFX_GOL_ScrollBarPositionIncrement Function
This function increments the scroll bar position by the delta change (page) value set.
File
gfx_gol_scroll_bar.h
Syntax
void GFX_GOL_ScrollBarPositionIncrement(GFX_GOL_SCROLLBAR * pObject);
Returns
None.
Description
This function increments 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.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
263

- 1
- 2
…
- 261
- 262
- 263
- 264
- 265
…
- 373
- 374