# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 191
- 192
- 193
- 194
- 195
…
- 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.
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_EditBoxDraw(void *pObject)
1.6.2.1.4.10 GFX_GOL_EditBoxTextSet Function
This function sets the text in the object.
File
gfx_gol_edit_box.h
Syntax
void GFX_GOL_EditBoxTextSet(GFX_GOL_EDITBOX * pObject, GFX_XCHAR* pText);
Returns
None.
Description
This function sets the text in the object. This function copies the text located in the address pointed to by pText to the object
text buffer.
The string length must be less than or equal to the maximum characters allowed in the object. The object will truncate the
string once it reaches the maximum length.
Preconditions
Object must exist in memory.
Example
#define MAX_EDITBOX_CHAR_LENGTH 20
GFX_XCHAR Label0[] = "This is really a long string";
// assume pEb is a pointer initialized to an edit box that
// as a buffer with 20 characters allowed.
GFX_GOL_EditBoxTextSet(pEb, Label0);
// at this point the edit box contains
// This is really a lon" - truncated to only 20 characters.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
193

- 1
- 2
…
- 191
- 192
- 193
- 194
- 195
…
- 373
- 374