Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
GFX_GOL_RADIOBUTTON * GFX_GOL_RadioButtonCreate(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);
Returns
Pointer to the newly created object.
Description
This function creates a GFX_GOL_RADIOBUTTON 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_RadioButtonCreate() 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
static GFX_XCHAR label0[] = "RB1";
static GFX_XCHAR label1[] = "RB2";
static GFX_XCHAR label2[] = "RB3";
uint16_t state;
GFX_GOL_OBJ_SCHEME *pScheme;
RADIOBUTTON *pRb[3];
pScheme = GFX_GOL_ObjectSchemeCreate();
// Object will be drawn after creation
// Object will be first button in the group
state = GFX_GOL_RADIOBUTTON_DRAW_STATE |
GFX_GOL_RADIOBUTTON_CHECKED_STATE;
pRb[0] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON1,
255,40,310,80,
state,
label0,
GFX_ALIGN_CENTER,
pScheme);
// Object will be drawn after creation
state = GFX_GOL_RADIOBUTTON_DRAW_STATE;
pRb[1] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON2,
255,85,310,125,
state,
label1,
GFX_ALIGN_CENTER,
pScheme);
// Object will be drawn after creation
state = GFX_GOL_RADIOBUTTON_DRAW_STATE;
pRb[2] = GFX_GOL_RadioButtonCreate(ID_RADIOBUTTON3,
255,130,310,170,
state,
label2,
GFX_ALIGN_CENTER,
pScheme);
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
250
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf