-//-------------------------------------------------------------------------
-// wxDropTarget
-//-------------------------------------------------------------------------
-
-class wxDropTarget: public wxObject
-{
-public:
-
- wxDropTarget();
- ~wxDropTarget();
-
- /* may be overridden to react to events */
- virtual void OnEnter();
- virtual void OnLeave();
-
- /* may be overridden to reject certain formats or drops
- on certain areas. always returns TRUE by default
- indicating that you'd accept the data from the drag. */
- virtual bool OnMove( long x, long y );
-
- /* has to be overridden to accept a drop event. call
- IsSupported() to ask which formats are available
- and then call RequestData() to indicate the format
- you request. */
- virtual bool OnDrop( long x, long y );
-
- /* this gets called once the data has actually arrived. get
- it with GetData(). this has to be overridden. */
- virtual bool OnData( long x, long y );
-
- /* called from within OnDrop() to request a certain format
- from the drop event. */
- bool RequestData( wxDataFormat format );