|
Blender V4.3
|
#include <GHOST_IEvent.hh>
Inherited by GHOST_Event.
Public Member Functions | |
| virtual | ~GHOST_IEvent () |
| virtual GHOST_TEventType | getType () const =0 |
| virtual uint64_t | getTime () const =0 |
| virtual GHOST_IWindow * | getWindow () const =0 |
| virtual GHOST_TEventDataPtr | getData () const =0 |
Interface class for events received from GHOST. You should not need to inherit this class. The system will pass these events to the GHOST_IEventConsumer::processEvent() method of event consumers.
Use the getType() method to retrieve the type of event and the getData() method to get the event data out. Using the event type you can cast the event data to the correct event data structure.
Definition at line 27 of file GHOST_IEvent.hh.
|
inlinevirtual |
Destructor.
Definition at line 32 of file GHOST_IEvent.hh.
|
pure virtual |
Returns the event data.
Implemented in GHOST_Event.
Referenced by GHOST_GetEventData(), and Application::processEvent().
|
pure virtual |
Returns the time this event was generated.
Implemented in GHOST_Event.
Referenced by GHOST_GetEventTime(), and GHOST_EventPrinter::processEvent().
|
pure virtual |
Returns the event type.
Implemented in GHOST_Event.
Referenced by GHOST_GetEventType(), Application::processEvent(), and GHOST_EventPrinter::processEvent().
|
pure virtual |
Returns the window this event was generated on, or nullptr if it is a 'system' event.
Implemented in GHOST_Event.
Referenced by GHOST_GetEventWindow().