Blender V4.3
GHOST_DropTargetX11 Class Reference

#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)
 

Detailed Description

Definition at line 17 of file GHOST_DropTargetX11.hh.

Constructor & Destructor Documentation

◆ GHOST_DropTargetX11()

GHOST_DropTargetX11::GHOST_DropTargetX11 ( GHOST_WindowX11 * window,
GHOST_SystemX11 * system )

Constructor

Parameters
windowThe window to register as drop target.
systemThe associated system.

Definition at line 74 of file GHOST_DropTargetX11.cc.

References GHOST_WindowX11::getXWindow(), GHOST_kDragnDropTypeUnknown, and GHOST_PRINT.

◆ ~GHOST_DropTargetX11()

GHOST_DropTargetX11::~GHOST_DropTargetX11 ( )

Destructor

Definition at line 92 of file GHOST_DropTargetX11.cc.

References GHOST_PRINT.

Member Function Documentation

◆ getGhostData()

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.

Parameters
dropTypeType of dropped entity.
dropBufferBuffer returned from source application.
dropBufferSizeSize of returned buffer.
Returns
Pointer to data.

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().

◆ 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.


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