12 #ifndef ROOT_TDNDManager
13 #define ROOT_TDNDManager
207 #endif // ROOT_TDNDManager
static Atom_t GetDNDFinished()
virtual void RaiseWindow()
Raise TGDragWindow.
Bool_t SetRootProxy()
Set root window proxy.
static Atom_t fgDNDActionDescrip
static Atom_t fgDNDActionMove
static Atom_t fgXCDNDData
static Atom_t GetDNDActionDescrip()
Bool_t HandleDNDDrop(Window_t src, Time_t timestamp)
Handle DND drop event.
Bool_t HandleSelection(Event_t *event)
Handle selection event.
static Atom_t fgDNDVersion
static Atom_t fgDNDActionCopy
Bool_t HandleTimer(TTimer *t)
Handle Drop timeout.
TGDNDManager(const TGDNDManager &)
static Pixel_t GetWhitePixel()
Get white pixel value.
static Atom_t GetDNDProxy()
TDNDData(const TDNDData &)
static Atom_t GetDNDVersion()
Window_t GetTarget() const
virtual void MapRaised()
Map and Raise TGDragWindow.
static Atom_t GetDNDSelection()
void SetMainFrame(TGFrame *main)
static Atom_t fgDNDActionPrivate
static Atom_t GetDNDActionList()
static Atom_t fgDNDStatus
static Atom_t GetDNDTypeList()
static Cursor_t fgDefaultCursor
static Atom_t GetXCDNDData()
void SendDNDLeave(Window_t target)
Send DND leave message to target window.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void InitAtoms()
Initialize drag and drop atoms.
virtual void MapWindow()
Map TGDragWindow.
static Atom_t GetDNDActionCopy()
R__EXTERN TGDNDManager * gDNDManager
static Atom_t GetDNDAware()
static Atom_t fgDNDPosition
#define ClassDef(name, id)
Bool_t EndDrag()
End dragging.
void SendDNDPosition(Window_t target, int x, int y, Atom_t action, Time_t timestamp)
Send DND position message to target window.
virtual void UnmapWindow()
Unmap TGDragWindow.
void SendDNDFinished(Window_t src)
Send DND finished message to source window.
static Atom_t GetDNDPosition()
Bool_t HandleClientMessage(Event_t *event)
Handle DND related client messages.
Bool_t HandleDNDPosition(Window_t src, int x_root, int y_root, Atom_t action, Time_t timestamp)
Handle DND position event.
TDNDData(Atom_t dt=kNone, void *d=0, Int_t len=0, Atom_t act=kNone)
virtual void DoRedraw()
Redraw TGDragWindow.
virtual ~TGDragWindow()
TGDragWindow destructor.
void SendDNDStatus(Window_t target, Atom_t action)
Send DND status message to source window.
static Atom_t fgDNDSelection
static Atom_t GetDNDDrop()
Bool_t HandleDNDStatus(Window_t from, int accepted, Rectangle_t skip, Atom_t action)
Handle DND status event.
Bool_t HandleDNDFinished(Window_t target)
Handle DND finished event.
static Atom_t fgDNDTypeList
Bool_t RemoveRootProxy()
Remove root window proxy.
static Atom_t fgXAWMState
TGFrame * GetMainFrame() const
Handles synchronous and a-synchronous timer events.
void SetDragPixmap(Pixmap_t pic, Pixmap_t mask, Int_t hot_x, Int_t hot_y)
Set drag window pixmaps and hotpoint.
TDNDData & operator=(const TDNDData &)
static Atom_t GetDNDLeave()
TGDNDManager & operator=(const TGDNDManager &)
Window_t GetInputId() const
Atom_t * GetTypeList() const
int main(int argc, char *argv[])
virtual ~TGDNDManager()
TGDNDManager destructor.
static Atom_t fgDNDFinished
static Atom_t fgDNDActionLink
void SendDNDDrop(Window_t target)
Send DND drop message to target window.
static Atom_t GetDNDStatus()
Bool_t HandleDNDEnter(Window_t src, long vers, Atom_t dataTypes[3])
Handle DND enter event.
Window_t GetSource() const
void SendDNDEnter(Window_t target)
Send DND enter message to target window.
static Atom_t GetDNDActionPrivate()
Bool_t IsTopLevel(Window_t win)
Bool_t HasWindow(Window_t w) const
Bool_t Drag(Int_t x_root, Int_t y_root, Atom_t action, Time_t timestamp)
Process drag event.
virtual void LowerWindow()
Lower TGDragWindow.
Mother of all ROOT objects.
Window_t FindWindow(Window_t root, Int_t x, Int_t y, Int_t maxd)
Search for DND aware window at position x,y.
static Atom_t GetDNDActionLink()
static Atom_t fgDNDActionAsk
static Atom_t GetDNDActionMove()
static Atom_t GetDNDActionAsk()
Bool_t IsDragging() const
Cursor_t fDNDNoDropCursor
Bool_t IsDNDAware(Window_t win, Atom_t *typelist=0)
Check if window win is DND aware.
Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
virtual void Layout()
Layout TGDragWindow.
Window_t GetRootProxy()
Get root window proxy.
Bool_t StartDrag(TGFrame *src, Int_t x_root, Int_t y_root, Window_t grabWin=kNone)
Start dragging.
Bool_t HandleDNDLeave(Window_t src)
Handle DND leave event.
static Atom_t GetDNDEnter()
static char * skip(char **buf, const char *delimiters)
TGDragWindow(const TGWindow *p, Pixmap_t pic, Pixmap_t mask, UInt_t options=kChildFrame, Pixel_t back=GetWhitePixel())
static Atom_t fgDNDActionList