# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 267
- 268
- 269
- 270
- 271
…
- 373
- 374

1.6.2.1.12.3 GFX_GOL_StaticTextAlignmentSet Function
This function sets the text alignment of the text string used by the object.
File
gfx_gol_static_text.h
Syntax
void GFX_GOL_StaticTextAlignmentSet(GFX_GOL_STATICTEXT * pObject, GFX_ALIGNMENT align);
Returns
None.
Description
This function sets the text alignment of the text string used by the object.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject Pointer to the object.
align The alignment set for the text in the object. See
GFX_ALIGNMENT for more details.
Function
void GFX_GOL_StaticTextAlignmentSet(
GFX_GOL_STATICTEXT *pObject,
GFX_ALIGNMENT align)
1.6.2.1.12.4 GFX_GOL_StaticTextCreate Function
This function creates a GFX_GOL_STATICTEXT 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.
File
gfx_gol_static_text.h
Syntax
GFX_GOL_STATICTEXT * GFX_GOL_StaticTextCreate(uint16_t ID, uint16_t left, uint16_t top,
uint16_t right, uint16_t bottom, uint16_t state, GFX_XCHAR * pText, GFX_ALIGNMENT
alignment, GFX_GOL_OBJ_SCHEME * pScheme);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_STATICTEXT 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 text can be configured to have text aligned. See GFX_ALIGNMENT for details. Text can also have multiple lines by
inserting the new line character to the text string supplied to the object. Any string that exceeds the dimension of the object
will be clipped.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
269

- 1
- 2
…
- 267
- 268
- 269
- 270
- 271
…
- 373
- 374