Blender V5.0
GHOST_EventCursor Class Reference

#include <GHOST_EventCursor.hh>

Inherits GHOST_Event.

Public Member Functions

 GHOST_EventCursor (uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window, int32_t x, int32_t y, const GHOST_TabletData &tablet)
Public Member Functions inherited from GHOST_Event
 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_TEventCursorData cursor_event_data_
Protected Attributes inherited from GHOST_Event
GHOST_TEventType type_
uint64_t time_
GHOST_IWindowwindow_
GHOST_TEventDataPtr data_ = nullptr

Detailed Description

Cursor event.

Definition at line 17 of file GHOST_EventCursor.hh.

Constructor & Destructor Documentation

◆ GHOST_EventCursor()

GHOST_EventCursor::GHOST_EventCursor ( uint64_t msec,
GHOST_TEventType type,
GHOST_IWindow * window,
int32_t x,
int32_t y,
const GHOST_TabletData & tablet )
inline

Constructor.

Parameters
msecThe time this event was generated.
typeThe type of this event.
xThe x-coordinate of the location the cursor was at the time of the event.
yThe y-coordinate of the location the cursor was at the time of the event.
tabletThe tablet data associated with this event.

Definition at line 27 of file GHOST_EventCursor.hh.

References cursor_event_data_, GHOST_Event::GHOST_Event(), x, and y.

Member Data Documentation

◆ cursor_event_data_

GHOST_TEventCursorData GHOST_EventCursor::cursor_event_data_
protected

The x,y-coordinates of the cursor position.

Definition at line 40 of file GHOST_EventCursor.hh.

Referenced by GHOST_EventCursor().


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