# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

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

When the object is used with no background, application must manage the object when text is modified and redrawn. i.e. the
previous text must be removed. Use GFX_GOL_STATICTEXT_NOBACKGROUND_STATE state bit to disable the
background.
The behavior of GFX_GOL_StaticTextCreate() will be undefined if one of the following is true:
• left >= right
• top >= bottom
• pScheme is not pointing to a GFX_GOL_OBJ_SCHEME
• pText is an unterminated string
Preconditions
None.
Example
#define ID_STATICTEXT1 0x10
// assume pScheme is initialized
GFX_GOL_OBJ_SCHEME *pScheme;
GFX_GOL_STATICTEXT *pSt;
pSt = GFX_GOL_StaticTextCreate(
ID_STATICTEXT1, // ID
30,80,235,160, // dimension
GFX_GOL_STATICTEXT_DRAW_STATE, // draw the object
"Static Textn Example", // 2 lines of text
GFX_ALIGN_CENTER, // align text on the center
pScheme); // use given scheme
Parameters
Parameters Description
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.
pText Pointer to the text of the object.
alignment text alignment of the text used in the object.
pScheme Pointer to the style scheme used.
Function
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)
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
270

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