#include <sdlwidgetdnd.h>
Inheritance diagram for SDLWidgetDnD
Public Methods | |
SDLWidgetDnD (SDLWidget* parent, int dndID, SDL_Rect& r) | |
~SDLWidgetDnD () | |
bool | GetDrop () |
bool | GetDrag () |
void | RemoveObjectDnD (SDLWidgetDnD* obj) |
void | SetDrop (bool drop) |
void | SetDrag (bool drag) |
void | updateDragArea (SDL_Point pt, SDL_Surface* image) |
void | drawDragArea (SDL_Point pt, SDL_Surface* image) |
Protected Methods | |
SDLWidgetDnD* | FindDropTarget (SDL_Point pt) |
bool | eventMouseButtonDown (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
bool | eventMouseMotion (const SDL_MouseMotionEvent* motion) |
Overridable Eventhandler for a SDL_MouseMotionEvent message. More... | |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
virtual bool | AcceptDrop (SDLWidgetDnD* source, int dndID) |
virtual bool | eventDragStart () |
virtual bool | eventDragDrop (SDLWidgetDnD* source, int dndID) |
virtual bool | eventDragCancel () |
virtual SDL_Surface* | eventQueryDragImage () |
virtual SDL_Surface* | eventQueryDropImage (SDL_Surface* dragimage = NULL) |
Protected Attributes | |
SDLWidgetDnD* | dnd_next |
Static Protected Attributes | |
SDLWidgetDnD* | dnd_objectlist |
All classes that would ever require drag and drop functionality (esentially all widgets) derive from this (eventually). Handles both the sending and receiving of all DnD events.
Definition at line 52 of file sdlwidgetdnd.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. Reimplemented in SDLLineEdit, SDLListBox, SDLScrollBar, and SDLWindow. |
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. Reimplemented in SDLCheckButton, SDLListBox, SDLRadioButton, SDLScrollBar, SDLSlider, and SDLWindow. |
|
Overridable Eventhandler for a SDL_MouseMotionEvent message. This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from SDLMessageObject. Reimplemented in SDLListBox, SDLScrollBar, and SDLWindow. |
|
|
|
|
|
|
|
Definition at line 111 of file sdlwidgetdnd.h. |
|
Definition at line 112 of file sdlwidgetdnd.h. |