# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

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

return 1;
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.
radius Radius of the rounded edge. When using gradient buttons
and radius != 0, emboss size <= radius. If this is not met, the
the GFX_GOL_BUTTON face will not have gradient effect.
state Sets the initial state of the object.
pPressImage Pointer to the image used on the face of the object when it is
in the pressed state.
pReleaseImage Pointer to the image used on the face of the object when it is
in the pressed state.
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_BUTTON *GFX_GOL_ButtonCreate(
uint16_t ID,
uint16_t left,
uint16_t top,
uint16_t right,
uint16_t bottom,
uint16_t radius,
uint16_t state,
GFX_RESOURCE_HDR *pPressImage,
GFX_RESOURCE_HDR *pReleaseImage,
GFX_XCHAR *pText,
GFX_ALIGNMENT alignment,
GFX_GOL_OBJ_SCHEME *pScheme)
1.6.2.1.1.9 GFX_GOL_ButtonDraw Function
This function renders the object on the screen based on the current state of the object.
File
gfx_gol_button.h
Syntax
GFX_STATUS GFX_GOL_ButtonDraw(void * pObject);
Returns
GFX_STATUS_SUCCESS - When the object rendering is finished. GFX_STATUS_FAILURE - When the object rendering is
not yet finished. Application needs to call this rendering function again to continue the rendering.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
166

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