# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 277
- 278
- 279
- 280
- 281
…
- 373
- 374

GFX_XCHAR *pText,
uint16_t MaxSize)
1.6.2.1.13.6 GFX_GOL_TextEntryCharAdd Function
This function will insert a character to the end of the buffer.
File
gfx_gol_text_entry.h
Syntax
void GFX_GOL_TextEntryCharAdd(GFX_GOL_TEXTENTRY * pObject);
Returns
None.
Description
This function will insert a character to the end of the buffer. Drawing states
GFX_GOL_TEXTENTRY_UPDATE_TEXT_STATE or GFX_GOL_TEXTENTRY_DRAW_STATE must be set to see the
effect of the addition.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject pointer to the object.
Function
void GFX_GOL_TextEntryCharAdd(
GFX_GOL_TEXTENTRY *pObject)
1.6.2.1.13.7 GFX_GOL_TextEntryCreate Function
This function creates a GFX_GOL_TEXTENTRY 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_text_entry.h
Syntax
GFX_GOL_TEXTENTRY * GFX_GOL_TextEntryCreate(uint16_t ID, uint16_t left, uint16_t top,
uint16_t right, uint16_t bottom, uint16_t state, uint16_t horizontalKeys, uint16_t
verticalKeys, GFX_XCHAR * pText[], GFX_XCHAR * pBuffer, GFX_ALIGNMENT alignment, uint16_t
bufferLength, GFX_RESOURCE_HDR * pDisplayFont, GFX_GOL_OBJ_SCHEME * pScheme);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_TEXTENTRY 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_TextEntryCreate() will be undefined if one of the following is true:
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
279

- 1
- 2
…
- 277
- 278
- 279
- 280
- 281
…
- 373
- 374