Blender
V3.3
|
#include <GHOST_DropTargetX11.h>
Public Member Functions | |
GHOST_DropTargetX11 (GHOST_WindowX11 *window, GHOST_SystemX11 *system) | |
~GHOST_DropTargetX11 () | |
bool | GHOST_HandleClientMessage (XEvent *event) |
void * | getGhostData (Atom dropType, unsigned char *dropBuffer, int dropBufferSize) |
Definition at line 16 of file GHOST_DropTargetX11.h.
GHOST_DropTargetX11::GHOST_DropTargetX11 | ( | GHOST_WindowX11 * | window, |
GHOST_SystemX11 * | system | ||
) |
Constructor
window | The window to register as drop target. |
system | The associated system. |
Definition at line 72 of file GHOST_DropTargetX11.cpp.
References GHOST_WindowX11::getXWindow(), GHOST_kDragnDropTypeUnknown, and GHOST_PRINT.
GHOST_DropTargetX11::~GHOST_DropTargetX11 | ( | ) |
void * GHOST_DropTargetX11::getGhostData | ( | Atom | dropType, |
unsigned char * | dropBuffer, | ||
int | dropBufferSize | ||
) |
Get data to pass in event. It checks the type and calls specific functions for each type.
dropType | Type of dropped entity. |
dropBuffer | Buffer returned from source application. |
dropBufferSize | Size of returned buffer. |
Definition at line 238 of file GHOST_DropTargetX11.cpp.
References data, dndTypeOctetStream, dndTypePlainText, dndTypeURIList, dndTypeURL, free(), GHOST_kDragnDropTypeFilenames, GHOST_kDragnDropTypeString, and GHOST_kDragnDropTypeUnknown.
Referenced by GHOST_HandleClientMessage().
bool GHOST_DropTargetX11::GHOST_HandleClientMessage | ( | XEvent * | event | ) |
Handler of ClientMessage X11 event
Definition at line 279 of file GHOST_DropTargetX11.cpp.
References data, free(), getGhostData(), GHOST_SystemX11::getXDisplay(), GHOST_kDragnDropTypeUnknown, and GHOST_kEventDraggingDropDone.