Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

DragAndDropHandler Class Reference

Inheritance diagram for DragAndDropHandler:

Inheritance graph
[legend]

Detailed Description

A simple interface for getting and sending drag-n-drop items.


Public Member Functions

 DragAndDropHandler ()
virtual void receive (Widget *widget)=0
 The widget received a dragged item.
virtual bool startDrag (Widget *widget, int x=0, int y=0)=0
 The widget initiated a drag return true if there's something to drag at x,y.

Static Public Attributes

static const int DRAG_START_DISTANCE = 10


Constructor & Destructor Documentation

DragAndDropHandler::DragAndDropHandler  ) 
 

Author:
Gabor Torok


Member Function Documentation

virtual void DragAndDropHandler::receive Widget *  widget  )  [pure virtual]
 

The widget received a dragged item.

Implemented in Scourge.

virtual bool DragAndDropHandler::startDrag Widget *  widget,
int  x = 0,
int  y = 0
[pure virtual]
 

The widget initiated a drag return true if there's something to drag at x,y.

Implemented in Scourge.


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 21:50:45 2005 for scourge by  doxygen 1.4.0