The IOEventManager class is a pure abstract class that provides an interface to create any input/output event called from a GestureManager object. More...
#include <ioeventmanager.h>
Public Member Functions | |
IOEventManager () | |
virtual void | initData ()=0 |
initData This function initializes the atributes needed for using the event later on More... | |
virtual void | gestureInitialize (EventData ¶m)=0 |
gestureInitialize This function is called when the event needs to be started More... | |
virtual void | gestureInProgressUpdate (EventData ¶m)=0 |
gestureInProgressUpdate This function is called when the event is happening More... | |
virtual void | gestureFinalize (EventData ¶m)=0 |
gestureFinalize This function is called when the event needs to be finalized More... | |
Protected Attributes | |
bool | hasBeenInit |
The IOEventManager class is a pure abstract class that provides an interface to create any input/output event called from a GestureManager object.
The idea of this class is to interface to any event using three functions: IOEventManager::gestureInitialize, IOEventManager::gestureInProgressUpdate and IOEventManager::gestureFinalize.
IOEventManager::IOEventManager | ( | ) |
|
pure virtual |
gestureFinalize This function is called when the event needs to be finalized
param | data of the frame needed for the event |
This function should not be called again until IOEventManager::gestureInitialize has been called.
In the example of doing a mouse click and drag this function would unclick the button. In the example of recording a video this function should close the file descriptor.
Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.
|
pure virtual |
gestureInitialize This function is called when the event needs to be started
param | data of the frame needed for the event |
In the example of doing a mouse click and drag this would be the function when the button is clicked. In the example of recording a video the file descriptor should be created in this function.
This function should not be called again until IOEventManager::gestureFinalize has been called.
Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.
|
pure virtual |
gestureInProgressUpdate This function is called when the event is happening
param | data of the frame needed for the event |
This function could be called several times. In the example of doing a mouse click and drag this would be the function that updates the mouse position. In the exmample of recording a video each call to this function would store a frame.
Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.
|
pure virtual |
initData This function initializes the atributes needed for using the event later on
Implemented in StoreHandMask, SingleClickHoldEventManager, ScrollUpDownManager, and AltTabEventManager.
|
protected |