#include <sdlscrollbar.h>
Inheritance diagram for SDLScrollBar
Public Methods | |
SDLScrollBar (SDLWidget* parent, int id, SDL_Rect& r, int direction = SDL_SB_VERTICAL) | |
virtual | ~SDLScrollBar () |
void | LoadThemeStyle (const char* widgettype) |
Load a style from the theme definition. More... | |
void | SetPosition (Uint32 pos) |
int | GetPosition () |
void | SetWindowSize (Uint32 wsize) |
void | SetRange (Uint32 min, Uint32 max) |
void | SetLineSize (int ls) |
Protected Methods | |
void | eventSizeWindow (int w, int h) |
bool | eventMouseMotion (const SDL_MouseMotionEvent* motion) |
Overridable Eventhandler for a SDL_MouseMotionEvent message. More... | |
bool | eventMouseButtonDown (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
bool | eventButtonClick (int id, SDLWidget* widget) |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent* button) |
Overridable Eventhandler for a SDL_MouseButtonEvent message. More... | |
Protected Attributes | |
Uint32 | scroll_min |
Uint32 | scroll_max |
Uint32 | scroll_current |
Uint32 | my_linesize |
Uint32 | my_pagesize |
SDLButton* | scrollbutton [2] |
ScrollButton* | dragbutton |
SDL_Rect | position [4] |
int | sb_direction |
int | id |
Friends | |
class | ScrollButton |
Doesn't actually tie itself to any object to be scrolled, just get's told it's current state through function calls.
Definition at line 53 of file sdlscrollbar.h.
|
|
|
|
|
|
|
Load a style from the theme definition.
Reimplemented from SDLGradientWidget. Reimplemented in SDLSlider. |
|
|
|
|
|
|
|
|
|
Reimplemented from SDLMessageObject. |
|
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. Reimplemented in SDLSlider. |
|
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. |
|
Reimplemented from SDLDrawObject. |
|
Definition at line 149 of file sdlscrollbar.h. |
|
Definition at line 143 of file sdlscrollbar.h. |
|
Definition at line 147 of file sdlscrollbar.h. |
|
Definition at line 137 of file sdlscrollbar.h. |
|
Definition at line 138 of file sdlscrollbar.h. |
|
Definition at line 144 of file sdlscrollbar.h. |
|
Definition at line 146 of file sdlscrollbar.h. |
|
Definition at line 136 of file sdlscrollbar.h. |
|
Definition at line 135 of file sdlscrollbar.h. |
|
Definition at line 134 of file sdlscrollbar.h. |
|
Definition at line 142 of file sdlscrollbar.h. |