Blender V4.5
GHOST_Event Class Reference

#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 override
uint64_t getTime () const override
GHOST_IWindowgetWindow () const override
GHOST_TEventDataPtr getData () const override
Public Member Functions inherited from GHOST_IEvent
virtual ~GHOST_IEvent ()=default

Protected Attributes

GHOST_TEventType m_type
uint64_t m_time
GHOST_IWindowm_window
GHOST_TEventDataPtr m_data = nullptr

Detailed Description

Base class for events received the operating system.

Definition at line 17 of file GHOST_Event.hh.

Constructor & Destructor Documentation

◆ GHOST_Event()

Member Function Documentation

◆ getData()

GHOST_TEventDataPtr GHOST_Event::getData ( ) const
inlineoverridevirtual

Returns the event data.

Returns
The event data.

Implements GHOST_IEvent.

Definition at line 62 of file GHOST_Event.hh.

References m_data.

◆ getTime()

uint64_t GHOST_Event::getTime ( ) const
inlineoverridevirtual

Returns the time this event was generated.

Returns
The event generation time.

Implements GHOST_IEvent.

Definition at line 43 of file GHOST_Event.hh.

References m_time.

◆ getType()

GHOST_TEventType GHOST_Event::getType ( ) const
inlineoverridevirtual

Returns the event type.

Returns
The event type.

Implements GHOST_IEvent.

Definition at line 34 of file GHOST_Event.hh.

References m_type.

◆ getWindow()

GHOST_IWindow * GHOST_Event::getWindow ( ) const
inlineoverridevirtual

Returns the window this event was generated on, or nullptr if it is a 'system' event.

Returns
The generating window.

Implements GHOST_IEvent.

Definition at line 53 of file GHOST_Event.hh.

References m_window.

Member Data Documentation

◆ m_data

◆ m_time

uint64_t GHOST_Event::m_time
protected

The time this event was generated.

Definition at line 71 of file GHOST_Event.hh.

Referenced by getTime(), and GHOST_Event().

◆ m_type

GHOST_TEventType GHOST_Event::m_type
protected

Type of this event.

Definition at line 69 of file GHOST_Event.hh.

Referenced by getType(), and GHOST_Event().

◆ m_window

GHOST_IWindow* GHOST_Event::m_window
protected

Pointer to the generating window.

Definition at line 73 of file GHOST_Event.hh.

Referenced by getWindow(), and GHOST_Event().


The documentation for this class was generated from the following file: