#include <uevent.hpp>
Inheritance diagram for ufo::UEvent:
Public Types | |
enum | Type { NoEvent = 0, Timer = 1, Action = 2, RunnableEvent = 3, QuitEvent = 4, Repaint = 5, Refresh = 6, MousePressed = 10, MouseReleased = 11, MouseClicked = 12, MouseMoved = 13, MouseDragged = 14, MouseEntered = 15, MouseExited = 16, MouseWheel = 19, KeyPressed = 20, KeyReleased = 21, KeyTyped = 22, Shortcut = 23, FocusGained = 25, FocusLost = 26, WidgetMoved = 30, WidgetResized = 31, WidgetShown = 32, WidgetHidden = 33, WidgetAdded = 34, WidgetRemoved = 35, WidgetZOrderChanged = 36, PropertyChanged = 40 } |
Public Member Functions | |
UEvent (UObject *sourceA, Type idA) | |
UObject * | getSource () const |
void | setSource (UObject *newSourceA) |
Type | getType () const |
virtual void | consume () |
virtual bool | isConsumed () const |
Protected Member Functions | |
virtual std::ostream & | paramString (std::ostream &os) const |
Protected Attributes | |
UObject * | m_source |
Type | m_type |
bool | m_isConsumed |
|
|
consumes the event. If an event is consumed, no other event listener can process it. |
|
returns the emitting object |
|
returns the id desribing the event |
|
returns whether an event is consumed.
|
|
Prints some useful internal data to the ostream os. This method is meant only for debugging purposes. Reimplemented from ufo::UObject.
Reimplemented in ufo::UActionEvent, ufo::UFocusEvent, ufo::UInputEvent, ufo::UKeyEvent, ufo::UMouseEvent, ufo::UMouseWheelEvent, and ufo::UPropertyChangeEvent.
|
|
retargets this event |
|
The consume property
|
|
the object that emitted the event |
|
an int describing the event |