# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 179
- 180
- 181
- 182
- 183
…
- 373
- 374

Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_DIGITALMETER 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.
Preconditions
None.
Example
GFX_GOL_OBJ_SCHEME *pScheme;
GFX_GOL_DIGITALMETER *pDm;
pScheme = GFX_GOL_SchemeCreate();
state = GFX_GOL_DIGITALMETER_DRAW_STATE |
GFX_GOL_DIGITALMETER_FRAME_STATE;
GFX_GOL_DigitalMeterCreate(
ID_DIGITALMETER1,
// ID
30,80,235,160, // dimension
state, // has frame and center aligned
789,4,1, // to display 078.9
GFX_ALIGN_CENTER,
pScheme); // use given scheme
// draw the objects
while(GFX_GOL_ObjectListDraw() != GFX_STATUS_SUCCESS);
Parameters
Parameters Description
instance Device instance
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.
value Sets the initial value to be displayed
NoOfDigits Sets the number of digits to be displayed
DotPos Sets the position of decimal point in the display
alignment text alignment of the text used in the object.
pScheme Pointer to the style scheme. Set to NULL if default style
scheme is used.
Function
GFX_GOL_DIGITALMETER *GFX_GOL_DigitalMeterCreate(
uint16_t ID,
uint16_t left,
uint16_t top,
uint16_t right,
uint16_t bottom,
uint16_t state,
uint32_t value,
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
181

- 1
- 2
…
- 179
- 180
- 181
- 182
- 183
…
- 373
- 374