Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
File
gfx_gol_button.h
Syntax
void GFX_GOL_ButtonActionSet(GFX_GOL_TRANSLATED_ACTION translatedMsg, void * pObject,
GFX_GOL_MESSAGE * pMessage);
Returns
None.
Description
This function performs the state change of the object based on the translated action. This change can be overridden by the
application using the application defined GFX_GOL_MESSAGE_CALLBACK_FUNC. When the user message is determined
to affect the object, application can perform the state change in the message callback function. The following state changes
are supported:
Translated Message Input Source Set/Clear State Bit Description
GFX_GOL_BUTTON_ACTION_PRESSED Touch
Screen,
Set
GFX_GOL_BUTTON_PRESSED_STATE
Button will be
redrawn in the
pressed state.
Keyboard
GFX_GOL_BUTTON_ACTION_RELEASED Touch
Screen,
Clear
GFX_GOL_BUTTON_PRESSED_STATE
Button will be
redrawn in the
released state.
Keyboard
GFX_GOL_BUTTON_ACTION_CANCELPRESS Touch
Screen,
Clear
GFX_GOL_BUTTON_PRESSED_STATE
Button will be
redrawn in the
released state.
Preconditions
Object must exist in memory.
Example
None.
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_ButtonActionSet(
GFX_GOL_TRANSLATED_ACTION translatedMsg,
void *pObject,
GFX_GOL_MESSAGE *pMessage)
1.6.2.1.1.8 GFX_GOL_ButtonCreate Function
This function creates a GFX_GOL_BUTTON 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_button.h
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
164
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf