# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 165
- 166
- 167
- 168
- 169
…
- 373
- 374

Description
This function renders the object on the screen based on the current state of the object. Location of the object is determined
by the left, top, right and bottom parameters. The colors used are dependent on the state of the object. The font used is
determined by the style scheme set.
The text on the face of the GFX_GOL_BUTTON is drawn on top of the bitmap. Text alignment based on the alignment
parameter set on the object.
When rendering objects of the same type, each object must be rendered completely before the rendering of the next object
is started. This is to avoid incomplete object rendering.
Normally, application will just call GFX_GOL_ObjectListDraw() to allow the Graphics Library to manage all object rendering.
See GFX_GOL_ObjectListDraw() for more information on object rendering.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject Pointer to the object.
Function
GFX_STATUS GFX_GOL_ButtonDraw(void *pObject)
1.6.2.1.1.10 GFX_GOL_ButtonTextAlignmentGet Function
This function returns the text alignment of the text string used by the object.
File
gfx_gol_button.h
Syntax
GFX_ALIGNMENT GFX_GOL_ButtonTextAlignmentGet(GFX_GOL_BUTTON * pObject);
Returns
The text alignment set in the object. See GFX_ALIGNMENT for more details.
Description
This function returns 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.
Function
GFX_ALIGNMENT GFX_GOL_ButtonTextAlignmentGet(
GFX_GOL_BUTTON *pObject)
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
167

- 1
- 2
…
- 165
- 166
- 167
- 168
- 169
…
- 373
- 374