# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 211
- 212
- 213
- 214
- 215
…
- 373
- 374

pPrevItem Pointer to the item after which a new item must be inserted,
if this pointer is NULL, the item will be appended at the end
of the items list.
pText Pointer to the text that will be inserted. Text must persist in
memory for as long as it is referenced by an item in the list
box.
pImage Pointer to the image for the item. Image must persist in
memory for as long as it is referenced by the an item in the
list box.
status This parameter specifies if the item being added will be
selected or redrawn (LB_STS_SELECTED or
LB_STS_REDRAW). Refer to LISTITEM structure for details.
data User assigned data associated with the item.
Function
GFX_GOL_LISTITEM *GFX_GOL_ListBoxItemAdd(
GFX_GOL_LISTBOX *pObject,
GFX_GOL_LISTITEM *pPrevItem,
GFX_XCHAR *pText,
GFX_RESOURCE_HDR *pImage,
uint16_t status,
uint16_t data)
1.6.2.1.6.14 GFX_GOL_ListBoxItemFocusGet Function
This function returns the index of the focused item in the list box.
File
gfx_gol_list_box.h
Syntax
int16_t GFX_GOL_ListBoxItemFocusGet(GFX_GOL_LISTBOX * pObject);
Returns
The index of the focused item in the list box.
Description
This function returns the index of the focused item in the list box. First item on the list is always indexed 0. If none of the
items in the list is focused, -1 is returned.
Preconditions
Object must exist in memory.
Example
None.
Parameters
Parameters Description
pObject The pointer to the object.
Function
int16_t GFX_GOL_ListBoxItemFocusGet(
GFX_GOL_LISTBOX *pObject)
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
213

- 1
- 2
…
- 211
- 212
- 213
- 214
- 215
…
- 373
- 374