Vault 7: Projects

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

Syntax
GFX_GOL_PROGRESSBAR * GFX_GOL_ProgressBarCreate(uint16_t ID, uint16_t left, uint16_t top,
uint16_t right, uint16_t bottom, uint16_t state, uint16_t pos, uint16_t range,
GFX_GOL_OBJ_SCHEME * pScheme);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_PROGRESSBAR object with the parameters given. It automatically attaches the new
object into a global linked list of objects and returns the address of the object.
This function returns the pointer to the newly created object. If the object is not successfully created, it returns NULL.
The behavior of GFX_GOL_RadioButtonCreate() will be undefined if one of the following is true:
left >= right
top >= bottom
pos > range
range = 0
pScheme is not pointing to a GFX_GOL_OBJ_SCHEME
pText is an unterminated string
Preconditions
None.
Example
GFX_GOL_PROGRESSBAR *pPBar;
void CreateProgressBar()
{
pPBar = PbCreate(ID_PROGRESSBAR1, // ID
50,90,270,140, // dimension
PB_DRAW, // Draw the object
25, // position
50, // set the range
NULL); // use default GOL scheme
}
Parameters
Parameters Description
ID Unique user defined ID for the object instance.
left Left most position of the object.
top Top most position of the object.
right Right most position of the object.
bottom Bottom most position of the object.
state Sets the initial state of the object.
pos Defines the initial position of the progress.
range This specifies the maximum value of the progress bar when
the progress bar is at 100% position.
pScheme Pointer to the style scheme used.
Function
GFX_GOL_PROGRESSBAR *GFX_GOL_ProgressBarCreate(
uint16_t ID,
uint16_t left,
uint16_t top,
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
241

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh