|
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 std::string &style="Scrollbar") |
| virtual | ~PG_ScrollBar () |
| void | LoadThemeStyle (const std::string &widgettype) |
| | Load a specific themestyle.
|
| void | SetPosition (int pos) |
| int | GetPosition () |
| void | SetRange (Uint32 min, Uint32 max) |
| | The range in which the scrollbar operates.
|
| int | GetMinRange () |
| int | GetMaxRange () |
| void | SetLineSize (int ls) |
| | Linesize is the scroll distance that is scrolled if one of the arrow buttons is pressed.
|
| 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.
|
| virtual 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] |
| | the positions of the elements the scrollbar exists of:
|
| ScrollDirection | sb_direction |
Classes |
| class | SignalScrollPos |
| | Signal type declaration. More...
|
| class | SignalScrollTrack |