Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
translatedMsg The action of the object based on the message.
pObject The pointer to the object whose state will be modified.
pMessage The pointer to the original message.
Function
void GFX_GOL_CheckBoxActionSet(
GFX_GOL_TRANSLATED_ACTION translatedMsg,
void *pObject,
GFX_GOL_MESSAGE *pMessage)
1.6.2.1.2.4 GFX_GOL_CheckBoxCreate Function
This function creates a GFX_GOL_CHECKBOX 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_check_box.h
Syntax
GFX_GOL_CHECKBOX * GFX_GOL_CheckBoxCreate(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_CHECKBOX 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_CheckBoxCreate() 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
GFX_GOL_OBJ_SCHEME *pScheme;
GFX_GOL_CHECKBOX *pCb[2];
pCb[0] = GFX_GOL_CheckBoxCreate(
ID_CHECKBOX1,
// ID
20,135,150,175, // dimension
GFX_GOL_CHECKBOX_DRAW_STATE, // Draw the object
"Scale", // text
GFX_ALIGN_CENTER, // text alignment
pScheme); // use this scheme
pCb[1] = GFX_GOL_CheckBoxCreate(
ID_CHECKBOX2, // ID
170,135,300,175, // dimension
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
173
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf