|
Blender V5.0
|
#include <GHOST_EventDragnDrop.hh>
Inherits GHOST_Event.
Public Member Functions | |
| GHOST_EventDragnDrop (uint64_t time, GHOST_TEventType type, GHOST_TDragnDropTypes dataType, GHOST_IWindow *window, int x, int y, GHOST_TDragnDropDataPtr data) | |
| ~GHOST_EventDragnDrop () override | |
| 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_IWindow * | getWindow () const override |
| GHOST_TEventDataPtr | getData () const override |
| Public Member Functions inherited from GHOST_IEvent | |
| virtual | ~GHOST_IEvent ()=default |
Protected Attributes | |
| GHOST_TEventDragnDropData | dragn_drop_event_data_ |
| Protected Attributes inherited from GHOST_Event | |
| GHOST_TEventType | type_ |
| uint64_t | time_ |
| GHOST_IWindow * | window_ |
| GHOST_TEventDataPtr | data_ = nullptr |
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 46 of file GHOST_EventDragnDrop.hh.
|
inline |
Constructor.
| time | The time this event was generated. |
| type | The type of this event. |
| dataType | The type of the drop candidate object. |
| window | The window where the event occurred. |
| x | The x-coordinate of the location the cursor was at the time of the event. |
| y | The y-coordinate of the location the cursor was at the time of the event. |
| data | The "content" dropped in the window. |
Definition at line 58 of file GHOST_EventDragnDrop.hh.
References data, GHOST_Event::data_, dragn_drop_event_data_, GHOST_Event::GHOST_Event(), x, and y.
|
inlineoverride |
Definition at line 74 of file GHOST_EventDragnDrop.hh.
References GHOST_TStringArray::count, dragn_drop_event_data_, free(), GHOST_kDragnDropTypeBitmap, GHOST_kDragnDropTypeFilenames, GHOST_kDragnDropTypeString, i, IMB_freeImBuf(), and GHOST_TStringArray::strings.
|
protected |
The x,y-coordinates of the cursor position.
Definition at line 108 of file GHOST_EventDragnDrop.hh.
Referenced by GHOST_EventDragnDrop(), and ~GHOST_EventDragnDrop().