#include <sdllistbox.h>
Inheritance diagram for SDLListBox
Public Methods | |
SDLListBox (SDLWidget* parent, SDL_Rect r) | |
~SDLListBox () | |
void | AddItem (SDLListBoxBaseItem* item) |
void | SetMultiSelect (bool multi = true) |
bool | GetMultiSelect () |
SDLListBoxBaseItem* | GetSelectedItem () |
void | SelectItem (SDLListBoxBaseItem* item, bool select = true) |
void | RemoveAll () |
Remove all widgets from the list (without deletion). More... | |
void | DeleteAll () |
Delete (destroy) all widgets in the list. More... | |
Protected Methods | |
bool | eventSelectItem (SDLListBoxBaseItem* item) |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
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... |
|
|
|
|
|
|
|
Delete (destroy) all widgets in the list.
Reimplemented from SDLWidgetList. |
|
|
|
|
|
Remove all widgets from the list (without deletion).
Reimplemented from SDLWidgetList. |
|
|
|
|
|
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 SDLWidgetDnD. |
|
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 SDLWidgetDnD. |
|
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 SDLWidgetDnD. |
|
|