|
Blender V4.3
|
#include <GHOST_DropTargetX11.hh>
Public Member Functions | |
| GHOST_DropTargetX11 (GHOST_WindowX11 *window, GHOST_SystemX11 *system) | |
| ~GHOST_DropTargetX11 () | |
| bool | GHOST_HandleClientMessage (XEvent *event) |
| void * | getGhostData (Atom dropType, const unsigned char *dropBuffer, int dropBufferSize) |
Definition at line 17 of file GHOST_DropTargetX11.hh.
| 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 74 of file GHOST_DropTargetX11.cc.
References GHOST_WindowX11::getXWindow(), GHOST_kDragnDropTypeUnknown, and GHOST_PRINT.
| GHOST_DropTargetX11::~GHOST_DropTargetX11 | ( | ) |
| void * GHOST_DropTargetX11::getGhostData | ( | Atom | dropType, |
| const 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 162 of file GHOST_DropTargetX11.cc.
References data, dndTypeOctetStream, dndTypePlainText, dndTypeURIList, dndTypeURL, ELEM, 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 201 of file GHOST_DropTargetX11.cc.
References free(), getGhostData(), GHOST_SystemX11::getXDisplay(), GHOST_kDragnDropTypeUnknown, and GHOST_kEventDraggingDropDone.