|
Blender
V2.93
|
#include <GHOST_Event.h>
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 (GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window) | |
| GHOST_TEventType | getType () |
| GHOST_TUns64 | getTime () |
| GHOST_IWindow * | getWindow () |
| GHOST_TEventDataPtr | getData () |
Public Member Functions inherited from GHOST_IEvent | |
| virtual | ~GHOST_IEvent () |
Protected Attributes | |
| GHOST_TEventType | m_type |
| GHOST_TUns64 | m_time |
| GHOST_IWindow * | m_window |
| GHOST_TEventDataPtr | m_data |
Base class for events received the operating system.
Definition at line 32 of file GHOST_Event.h.
|
inline |
Constructor.
| msec | The time this event was generated. |
| type | The type of this event. |
| window | The generating window (or NULL if system event). |
Definition at line 40 of file GHOST_Event.h.
|
inlinevirtual |
Returns the event data.
Implements GHOST_IEvent.
Definition at line 77 of file GHOST_Event.h.
References m_data.
|
inlinevirtual |
Returns the time this event was generated.
Implements GHOST_IEvent.
Definition at line 58 of file GHOST_Event.h.
References m_time.
|
inlinevirtual |
Returns the event type.
Implements GHOST_IEvent.
Definition at line 49 of file GHOST_Event.h.
References m_type.
|
inlinevirtual |
Returns the window this event was generated on, or NULL if it is a 'system' event.
Implements GHOST_IEvent.
Definition at line 68 of file GHOST_Event.h.
References m_window.
|
protected |
Pointer to the event data.
Definition at line 90 of file GHOST_Event.h.
Referenced by getData(), GHOST_EventDragnDrop::GHOST_EventDragnDrop(), 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 86 of file GHOST_Event.h.
Referenced by getTime().
|
protected |
|
protected |
Pointer to the generating window.
Definition at line 88 of file GHOST_Event.h.
Referenced by getWindow().