#include <iEvent.h>
Inherited by igor::iEventKeyASCII, igor::iEventKeyDown, igor::iEventKeyUp, igor::iEventMouseKeyDoubleClick, igor::iEventMouseKeyDown, igor::iEventMouseKeyUp, igor::iEventMouseMove, igor::iEventMouseWheel, igor::iEventNodeAddedToScene, igor::iEventNodeRemovedFromScene, igor::iEventSceneSelectionChanged, igor::iEventWindowClose, igor::iEventWindowOpen, and igor::iEventWindowResize.
◆ iEvent()
igor::iEvent::iEvent |
( |
iWindowPtr |
window = nullptr | ) |
|
init members
- Parameters
-
window | the window that event came from (only in case it was an event created by a window) |
◆ ~iEvent()
virtual igor::iEvent::~iEvent |
( |
| ) |
|
|
virtualdefault |
◆ consume()
void igor::iEvent::consume |
( |
| ) |
|
◆ dispatch()
template<typename T , typename F >
bool igor::iEvent::dispatch |
( |
const F & |
func | ) |
|
|
inline |
dispatch event
only executes if event is of type T
- Parameters
-
func | the given function to call with the event |
- Returns
- true if event was consumed by the given function
◆ getEventKindMask()
◆ getEventType()
virtual iEventType igor::iEvent::getEventType |
( |
| ) |
const |
|
pure virtual |
◆ getInfo()
const iaString igor::iEvent::getInfo |
( |
| ) |
const |
|
virtual |
- Returns
- information to event
Reimplemented in igor::iEventKeyDown, igor::iEventKeyUp, igor::iEventKeyASCII, igor::iEventMouseKeyDown, igor::iEventMouseKeyUp, igor::iEventMouseKeyDoubleClick, igor::iEventMouseWheel, igor::iEventMouseMove, igor::iEventNodeAddedToScene, igor::iEventNodeRemovedFromScene, igor::iEventSceneSelectionChanged, and igor::iEventWindowResize.
◆ getName()
virtual const iaString igor::iEvent::getName |
( |
| ) |
const |
|
pure virtual |
◆ getWindow()
◆ isConsumed()
bool igor::iEvent::isConsumed |
( |
| ) |
const |
- Returns
- true if already consumed
◆ isOfKind()
bool igor::iEvent::isOfKind |
( |
const iEventKind |
kind | ) |
|
- Returns
- true if event is of given kind
- Parameters
-
The documentation for this class was generated from the following files:
- /home/maddin/dev/Igor/src/igor/igor/events/iEvent.h
- /home/maddin/dev/Igor/src/igor/igor/events/iEvent.cpp