Blender  V3.3
Public Member Functions | Protected Attributes | List of all members
GHOST_EventDragnDrop Class Reference

#include <GHOST_EventDragnDrop.h>

Inheritance diagram for GHOST_EventDragnDrop:
GHOST_Event GHOST_IEvent

Public Member Functions

 GHOST_EventDragnDrop (uint64_t time, GHOST_TEventType type, GHOST_TDragnDropTypes dataType, GHOST_IWindow *window, int x, int y, GHOST_TEventDataPtr data)
 
 ~GHOST_EventDragnDrop ()
 
- Public Member Functions inherited from GHOST_Event
 GHOST_Event (uint64_t msec, GHOST_TEventType type, GHOST_IWindow *window)
 
GHOST_TEventType getType ()
 
uint64_t getTime ()
 
GHOST_IWindowgetWindow ()
 
GHOST_TEventDataPtr getData ()
 
- Public Member Functions inherited from GHOST_IEvent
virtual ~GHOST_IEvent ()
 

Protected Attributes

GHOST_TEventDragnDropData m_dragnDropEventData
 
- Protected Attributes inherited from GHOST_Event
GHOST_TEventType m_type
 
uint64_t m_time
 
GHOST_IWindowm_window
 
GHOST_TEventDataPtr m_data
 

Detailed Description

Drag & drop event

The dragging sequence is performed in four phases:

Note that the mouse positions are given in Blender coordinates (y=0 at bottom)

Currently supported object types:

Definition at line 47 of file GHOST_EventDragnDrop.h.

Constructor & Destructor Documentation

◆ GHOST_EventDragnDrop()

GHOST_EventDragnDrop::GHOST_EventDragnDrop ( uint64_t  time,
GHOST_TEventType  type,
GHOST_TDragnDropTypes  dataType,
GHOST_IWindow window,
int  x,
int  y,
GHOST_TEventDataPtr  data 
)
inline

Constructor.

Parameters
timeThe time this event was generated.
typeThe type of this event.
dataTypeThe type of the drop candidate object.
windowThe window where the event occurred.
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.
dataThe "content" dropped in the window.

Definition at line 59 of file GHOST_EventDragnDrop.h.

References GHOST_TEventDragnDropData::data, data, GHOST_TEventDragnDropData::dataType, GHOST_Event::m_data, m_dragnDropEventData, GHOST_TEventDragnDropData::x, x, GHOST_TEventDragnDropData::y, and y.

◆ ~GHOST_EventDragnDrop()

GHOST_EventDragnDrop::~GHOST_EventDragnDrop ( )
inline

Member Data Documentation

◆ m_dragnDropEventData

GHOST_TEventDragnDropData GHOST_EventDragnDrop::m_dragnDropEventData
protected

The x,y-coordinates of the cursor position.

Definition at line 106 of file GHOST_EventDragnDrop.h.

Referenced by GHOST_EventDragnDrop(), and ~GHOST_EventDragnDrop().


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