![]() |
MHEG5
22.3.0
|
Event handling. Implementation of a combined queue for events and actions. This is the eventsystem which drives the MHEG engine. More...
Go to the source code of this file.
Functions | |
void | MHEG5queueResetScene (MHEG5Root *grp) |
Reset both event queues and the action queue, discarding any pending events and actions for this scene. More... | |
void | MHEG5queueResolveTargets (MHEG5ActionList actions) |
Finds targets for the action list. More... | |
void | MHEG5queueUnresolveTargets (MHEG5ActionList actions) |
Clear targets for the action list. More... | |
void | MHEG5actionListExecute (MHEG5Group *source, MHEG5ActionList actions) |
Execute the supplied list of actions immediately. The actions will have been executed by the time the function returns. More... | |
void | MHEG5PrependActionList (MHEG5ActionList actions) |
Execute the supplied list of actions before others. More... | |
void | MHEG5AppendActionList (MHEG5ActionList actions) |
The supplied list of actions should execute after any already on queue. More... | |
void | MHEG5sendEvent (MHEG5Root *source, MHEG5EventType event, MHEG5Int data) |
Store an event in the asynchronous event queue. More... | |
void | MHEG5sendAppEngineEvent (E_ENGINE_EVENT engine_event) |
Store an Engine event in the asynchronous event queue. More... | |
void | MHEG5sendSync (MHEG5Root *source, MHEG5EventType event, MHEG5Int data) |
Store an event in the synchronous event queue. More... | |
void | MHEG5stopEventsAndResetQueue (void) |
Discard any pending events and actions and prevent future events from being queued. And reset queues. See also MHEG5queueEvents. More... | |
void | MHEG5queueEvents (void) |
Allow future events to be stored in the event queues. See also MHEG5stopEventsAndQueueReset. More... | |
void | MHEG5processQueue (void) |
Process all pending events and actions. After processing all events and actions, Normally there will not be any pending synchronous events or actions when this function is entered. The exception to this is when event processing has been disabled and re-enabled. In this case, any pending synchronous events should be processed before processing asynchronous events. More... | |
void | MHEG5enableEventProcessing (MHEG5Bool enable) |
Enable or disable engine event processing. This function is used to implement the Call action for resident programs that normally fork by disabling engine event progressing until the program finishes. More... | |
void | MHEG5eventProcessingReset (void) |
Causes the MHEG5enableEventProcessing counter to be reset to 0, and event processing to be enabled. This function is called when the engine is terminated to ensure that event processing will be enabled next time the engine is started. More... | |
void | MHEG5requestDisplayUpdate (void) |
Request display update at the end of synchronous event processing. More... | |
int | MHEG5InitQueues (void) |
void | MHEG5ExitQueues (void) |
Event handling. Implementation of a combined queue for events and actions. This is the eventsystem which drives the MHEG engine.
void MHEG5actionListExecute | ( | MHEG5Group * | source, |
MHEG5ActionList | act_q | ||
) |
Execute the supplied list of actions immediately. The actions will have been executed by the time the function returns.
source | Source object generating the actions |
actions | List of actions to execute |
Execute the supplied list of actions immediately. The actions will have been executed by the time the function returns.
source | Source object generating the actions |
actions | List of actions to execute |
void MHEG5AppendActionList | ( | MHEG5ActionList | actions | ) |
The supplied list of actions should execute after any already on queue.
actions | List of actions to execute |
void MHEG5enableEventProcessing | ( | MHEG5Bool | enable | ) |
Enable or disable engine event processing. This function is used to implement the Call action for resident programs that normally fork by disabling engine event progressing until the program finishes.
enable | MHEG5TRUE to enable event processing, MHEG5FALSE to disable event processing. |
Enable or disable engine event processing. This function is used to implement the Call action for resident programs that normally fork by disabling engine event progressing until the program finishes.
enable | MHEG5TRUE to enable event processing, MHEG5FALSE to disable event processing. |
void MHEG5eventProcessingReset | ( | void | ) |
Causes the MHEG5enableEventProcessing counter to be reset to 0, and event processing to be enabled. This function is called when the engine is terminated to ensure that event processing will be enabled next time the engine is started.
void MHEG5PrependActionList | ( | MHEG5ActionList | actions | ) |
Execute the supplied list of actions before others.
actions | List of actions to execute |
Execute the supplied list of actions before others.
actions | List of actions to execute |
void MHEG5processQueue | ( | void | ) |
Process all pending events and actions. After processing all events and actions, Normally there will not be any pending synchronous events or actions when this function is entered. The exception to this is when event processing has been disabled and re-enabled. In this case, any pending synchronous events should be processed before processing asynchronous events.
void MHEG5queueEvents | ( | void | ) |
Allow future events to be stored in the event queues. See also MHEG5stopEventsAndQueueReset.
Allow future events to be stored in the event queues. See also MHEG5stopEventsAndQueueReset.
void MHEG5queueResetScene | ( | MHEG5Root * | grp | ) |
Reset both event queues and the action queue, discarding any pending events and actions for this scene.
void MHEG5queueResolveTargets | ( | MHEG5ActionList | actions | ) |
Finds targets for the action list.
actions | List of actions to execute |
void MHEG5queueUnresolveTargets | ( | MHEG5ActionList | actions | ) |
Clear targets for the action list.
actions | List of actions to execute |
void MHEG5requestDisplayUpdate | ( | void | ) |
Request display update at the end of synchronous event processing.
Request display update at the end of synchronous event processing.
void MHEG5sendAppEngineEvent | ( | E_ENGINE_EVENT | engine_event | ) |
Store an Engine event in the asynchronous event queue.
void MHEG5sendEvent | ( | MHEG5Root * | source, |
MHEG5EventType | a_type, | ||
MHEG5Int | data | ||
) |
Store an event in the asynchronous event queue.
source | Source object generating the event |
event | Type of event to send |
data | Event data associated with this event |
Store an event in the asynchronous event queue.
source | Source object generating the event |
event | Type of event to send |
data | Event data associated with this event |
void MHEG5sendSync | ( | MHEG5Root * | source, |
MHEG5EventType | e_type, | ||
MHEG5Int | e_data | ||
) |
Store an event in the synchronous event queue.
source | Source object generating the event |
event | Type of event to send |
data | Event data associated with this event |
void MHEG5stopEventsAndResetQueue | ( | void | ) |
Discard any pending events and actions and prevent future events from being queued. And reset queues. See also MHEG5queueEvents.