|
Blender V4.3
|
#include <GHOST_Event.hh>
Inherits GHOST_IEvent.
Inherited by GHOST_EventButton, GHOST_EventCursor, GHOST_EventDragnDrop, GHOST_EventKey, GHOST_EventNDOFButton, GHOST_EventNDOFMotion, GHOST_EventString, GHOST_EventTrackpad, and GHOST_EventWheel.
Public Member Functions | |
| GHOST_Event (uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window) | |
| GHOST_TEventType | getType () const |
| uint64_t | getTime () const |
| GHOST_IWindow * | getWindow () const |
| GHOST_TEventDataPtr | getData () const |
Public Member Functions inherited from GHOST_IEvent | |
| virtual | ~GHOST_IEvent () |
Protected Attributes | |
| GHOST_TEventType | m_type |
| uint64_t | m_time |
| GHOST_IWindow * | m_window |
| GHOST_TEventDataPtr | m_data |
Base class for events received the operating system.
Definition at line 17 of file GHOST_Event.hh.
|
inline |
Constructor.
| msec | The time this event was generated. |
| type | The type of this event. |
| window | The generating window (or nullptr if system event). |
Definition at line 25 of file GHOST_Event.hh.
|
inlinevirtual |
Returns the event data.
Implements GHOST_IEvent.
Definition at line 62 of file GHOST_Event.hh.
References m_data.
|
inlinevirtual |
Returns the time this event was generated.
Implements GHOST_IEvent.
Definition at line 43 of file GHOST_Event.hh.
References m_time.
|
inlinevirtual |
Returns the event type.
Implements GHOST_IEvent.
Definition at line 34 of file GHOST_Event.hh.
References m_type.
|
inlinevirtual |
Returns the window this event was generated on, or nullptr if it is a 'system' event.
Implements GHOST_IEvent.
Definition at line 53 of file GHOST_Event.hh.
References m_window.
|
protected |
Pointer to the event data.
Definition at line 75 of file GHOST_Event.hh.
Referenced by getData(), GHOST_EventDragnDrop::GHOST_EventDragnDrop(), GHOST_EventKey::GHOST_EventKey(), GHOST_EventKey::GHOST_EventKey(), GHOST_EventNDOFButton::GHOST_EventNDOFButton(), GHOST_EventNDOFMotion::GHOST_EventNDOFMotion(), GHOST_EventString::GHOST_EventString(), GHOST_EventTrackpad::GHOST_EventTrackpad(), GHOST_EventWheel::GHOST_EventWheel(), and GHOST_EventString::~GHOST_EventString().
|
protected |
The time this event was generated.
Definition at line 71 of file GHOST_Event.hh.
Referenced by getTime().
|
protected |
|
protected |
Pointer to the generating window.
Definition at line 73 of file GHOST_Event.hh.
Referenced by getWindow().