Blender  V3.3
Public Member Functions | List of all members
GHOST_DropTargetX11 Class Reference

#include <GHOST_DropTargetX11.h>

Public Member Functions

 GHOST_DropTargetX11 (GHOST_WindowX11 *window, GHOST_SystemX11 *system)
 
 ~GHOST_DropTargetX11 ()
 
bool GHOST_HandleClientMessage (XEvent *event)
 
voidgetGhostData (Atom dropType, unsigned char *dropBuffer, int dropBufferSize)
 

Detailed Description

Definition at line 16 of file GHOST_DropTargetX11.h.

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 72 of file GHOST_DropTargetX11.cpp.

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

◆ ~GHOST_DropTargetX11()

GHOST_DropTargetX11::~GHOST_DropTargetX11 ( )

Destructor

Definition at line 90 of file GHOST_DropTargetX11.cpp.

References GHOST_PRINT.

Member Function Documentation

◆ getGhostData()

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.

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

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

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


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