Vault 7: Projects

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

Types
Name Description
GFX_GOL_MESSAGE_CALLBACK_FUNC Message callback function definition. This application defined function
allows the application to perform application specific processing of user
messsages.
1.6.2.6.1 GFX_GOL_MESSAGE_CALLBACK_FUNC Type
Message callback function definition. This application defined function allows the application to perform application specific
processing of user messsages.
File
gfx_gol.h
Syntax
typedef bool (* GFX_GOL_MESSAGE_CALLBACK_FUNC)(GFX_GOL_TRANSLATED_ACTION,
GFX_GOL_OBJ_HEADER *, GFX_GOL_MESSAGE *);
Returns
true - When true is returned, the object will set its state depending on the translated messages. false - When false is
returned, the object will not process the translated message and will assume the application has performed necessary action
on the message.
Description
This application defined function is called by the GFX_GOL_ObjectMessage() function allowing the application the
opportunity to process the user messages and customize object behavior as well as application controlled functions.
GFX_GOL_ObjectMessage() calls this function when a valid message for an object in the active list is received. Application
implements any action for the message in this callback function. If this callback function returns true, the message for the
object will be processed using the default action of the object. If false is returned, the default action will not be performed. In
this case, it is assumed that this callback function has performed the appropriate changes to the states of the objects.
Preconditions
None.
Example
None.
Parameters
Parameters Description
GFX_GOL_TRANSLATED_ACTION Translated message for the object
GFX_GOL_OBJ_HEADER * Pointer to the object that processed the message.
GFX_GOL_MESSAGE * Pointer to the message from user.
Function
typedef bool (*GFX_GOL_MESSAGE_CALLBACK_FUNC)
( GFX_GOL_TRANSLATED_ACTION,
GFX_GOL_OBJ_HEADER *,
GFX_GOL_MESSAGE *
);
1.6.2.6.2 GFX_GOL_MessageCallbackSet Function
This function sets the message callback function that the application will use to evaluate user inputs that affects the objects
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
321

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh