Doesn't actually tie itself to any object to be scrolled, just get's told it's current state through function calls.
|
Public Types |
enum | ScrollDirection { VERTICAL,
HORIZONTAL
} |
| ScrollbarType. More...
|
enum | {
IDSCROLLBAR_UP = PG_WIDGETID_INTERNAL + 1,
IDSCROLLBAR_DOWN = PG_WIDGETID_INTERNAL + 2,
IDSCROLLBAR_LEFT = PG_WIDGETID_INTERNAL + 3,
IDSCROLLBAR_RIGHT = PG_WIDGETID_INTERNAL + 4,
IDSCROLLBAR_DRAG = PG_WIDGETID_INTERNAL + 5
} |
| Widget ID's. More...
|
Public Member Functions |
| PG_ScrollBar (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, ScrollDirection direction=VERTICAL, int id=-1, const char *style="Scrollbar") |
virtual | ~PG_ScrollBar () |
void | LoadThemeStyle (const char *widgettype) |
| Load a specific themestyle.
|
void | SetPosition (int pos) |
int | GetPosition () |
void | SetRange (Uint32 min, Uint32 max) |
int | GetMinRange () |
int | GetMaxRange () |
void | SetLineSize (int ls) |
void | SetPageSize (int ps) |
Public Attributes |
SignalScrollPos< long > | sigScrollPos |
SignalScrollTrack< long > | sigScrollTrack |
Protected Member Functions |
void | eventSizeWidget (Uint16 w, Uint16 h) |
| Callback for the SizeWidget event.
|
bool | eventMouseMotion (const SDL_MouseMotionEvent *motion) |
| Overridable Eventhandler for a SDL_MouseMotionEvent message.
|
bool | eventMouseButtonDown (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message.
|
bool | handleButtonClick (PG_Button *button) |
bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message.
|
virtual void | RecalcPositions () |
Protected Attributes |
int | scroll_min |
int | scroll_max |
int | scroll_current |
int | my_linesize |
int | my_pagesize |
PG_Button * | scrollbutton [2] |
ScrollButton * | dragbutton |
PG_Rect | position [4] |
ScrollDirection | sb_direction |
Friends |
class | ScrollButton |