Generally used to make a large 'pane' of widgets that can be scrolled through in a smaller 'portal' with scrollbars.
|
Public Types |
enum | { IDWIDGETLIST_SCROLL = PG_WIDGETID_INTERNAL + 10
} |
Public Member Functions |
| PG_ScrollWidget (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *style="ScrollWidget") |
| Constructor of the PG_Widget class.
|
| ~PG_ScrollWidget () |
| Destructor of the PG_Widget class.
|
void | LoadThemeStyle (const char *widgettype) |
| Load a specific themestyle.
|
void | EnableScrollBar (bool enable, PG_ScrollBar::ScrollDirection direction=PG_ScrollBar::VERTICAL) |
| Enable / disable the Scrollbar (override automatic display).
|
void | ScrollTo (Uint16 x, Uint16 y) |
| scroll to a give X/Y-Coordinate within the client area.
|
void | ScrollToWidget (PG_Widget *widget, bool bVertical=true) |
| Scroll to a widget.
|
Uint16 | GetListHeight () |
Uint16 | GetListWidth () |
Uint16 | GetWidgetCount () |
PG_Widget * | GetFirstInList () |
virtual void | DeleteAll () |
virtual void | RemoveAll () |
void | AddChild (PG_Widget *child) |
| Add a clientwidget (which will be embedded into this widget).
|
Protected Member Functions |
void | eventSizeWidget (Uint16 w, Uint16 h) |
| Callback for the SizeWidget event.
|
bool | handleScrollPos (PG_ScrollBar *widget, long data) |
bool | handleScrollTrack (PG_ScrollBar *widget, long data) |
bool | handleAreaChangedHeight (PG_ScrollArea *area, Uint16 h) |
bool | handleAreaChangedWidth (PG_ScrollArea *area, Uint16 w) |
void | CheckScrollBars () |
Protected Attributes |
PG_ScrollBar * | my_objVerticalScrollbar |
PG_ScrollBar * | my_objHorizontalScrollbar |
PG_ScrollArea * | my_scrollarea |
PG_Rect | my_rectVerticalScrollbar |
PG_Rect | my_rectHorizontalScrollbar |
PG_Rect | my_rectList |
int | my_widthScrollbar |
int | my_heightHorizontalScrollbar |
bool | my_enableVerticalScrollbar |
bool | my_enableHorizontalScrollbar |