class GmEvent |
The GmEvent class encapsulates all possible events that can be delivered to components in glam.
GmEvent () Standard constructor | |
BasicEventType* | getBasicData () Gets the data associated with any event. |
FocusEventType* | getFocusData () Gets the data associated with a focus event. |
KeyEventType* | getKeyData () Gets the data associated with a keyboard event. |
MouseEventType* | getMouseData () Gets the data associated with a mouse event. |
GmTypes::EventType | getType () Gets the type of this event. |
UserEventType* | getUserData () Gets the data associated with a user-defined event. |
WidgetEventType* | getWidgetData () Gets the data associated with a widget event. |
virtual void | setFocusEvent (GmTypes::EventType eventType, unsigned short targetId, GmTypes::FocusType focusType) Sets this event as a focus event and fills in all the necessary information about the event. |
virtual void | setKeyEvent (GmTypes::EventType eventType, unsigned short targetId, unsigned char key, float x, float y) Sets this event as a keyboard event and fills in all the necessary information about the event. |
virtual void | setMouseEvent (GmTypes::EventType eventType, unsigned short targetId, int button, int state, float x, float y) Sets this event as a mouse event and fills in all the necessary information about the event. |
virtual | ~GmEvent () Virtual destructor |
void* | mPayload The payload for the event. |
GmTypes::EventType | mType The type of event that this event encapsulates. |
virtual void | freePayload () This method frees the memory associated with the event payload. |
The GmEvent class encapsulates all possible events that can be delivered to components in glam. An event is usually created by the application and then given to the GmEventDistributor for distribution to the correct component, or set of components. The GmEvent class supports mouse, keyboard and ui events (such as focus, defocus, etc).
Alphabetic index HTML hierarchy of classes or Java