Gorgon Game Engine
DnD.h File Reference
Include dependency graph for DnD.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DragInfo
 Contains information about a drag operation. More...
 
class  DragSource
 
class  DropTarget
 This layer acts as a drop target. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Input
 This namespace contains general input related functionality.
 

Functions

template<class ... A_>
DragInfo & BeginDrag (A_ &&... data)
 Begins a drag operation using the given data, without a source. More...
 
template<class ... A_>
DragInfo & BeginDrag (DragSource &source, A_ &&... data)
 Begins a drag operation using the given source and data. More...
 
void CancelDrag ()
 Cancel the current drag operation. More...
 
void Drop (Geometry::Point location={0, 0})
 Drop the current drag object. More...
 
DragInfo & GetDragOperation ()
 Returns the current drag operation, throws if IsDragPrepared is false. More...
 
void initdrag ()
 
bool IsDragging ()
 Returns whether a drag operation is in progress. More...
 
bool IsDragPrepared ()
 Returns whether a drag operation is available. More...
 
DragInfo & PrepareDrag ()
 Prepares the drag operation. More...
 
DragInfo & PrepareDrag (DragSource &source)
 Prepares the drag operation. More...
 
DragInfo & StartDrag ()
 Starts the drag operation. More...
 

Variables

Event< void, DragInfo &, bool > DragEnded
 This event is fired whenever a drag operation ends. More...
 
DragInfo * DragOperation
 Current Drag operation, could be nullptr, denoting there is none. More...
 
Event< void, DragInfo & > DragStarted
 This event is fired whenever a drag operation begins. More...