#include <pgscrollarea.h>
Inheritance diagram for PG_ScrollArea:

Public Member Functions | |
| PG_ScrollArea (PG_Widget *parent, const PG_Rect &r=PG_Rect::null) | |
| Create a scrollarea widget. | |
| ~PG_ScrollArea () | |
| void | SetShiftOnRemove (bool shiftx, bool shifty) |
| Shift widgets on removal. | |
| void | ScrollTo (int x, int y) |
| scroll to a give X/Y-Coordinate within the client area. | |
| void | ScrollToWidget (PG_Widget *widget, bool bVertical=true) |
| Scroll to a widget. | |
| void | SetAreaWidth (Uint16 w) |
| Set the width of the scrollable area manually. | |
| void | SetAreaHeight (Uint16 h) |
| Set the height of the scrollable area manually. | |
| Uint16 | GetAreaWidth () |
| Get the width of the scrollable area. | |
| Uint16 | GetAreaHeight () |
| Get the height of the scrollable area. | |
| void | RemoveAll () |
| Remove all widgets from the list (without deletion). | |
| void | DeleteAll () |
| Delete (destroy) all widgets in the list. | |
| Uint16 | GetWidgetCount () |
| Get the number of widgets in the list. | |
| Uint16 | GetScrollPosX () |
| Uint16 | GetScrollPosY () |
| void | AddChild (PG_Widget *child) |
| Add a clientwidget (which will be embedded into this widget). | |
| bool | RemoveChild (PG_Widget *child) |
| PG_Widget * | GetFirstInList () |
| void | SetResizeParent (bool bRemove, bool bAdd) |
| Automatically adjusts the parent's size to the actual scroll area size;. | |
Public Attributes | |
| SignalAreaChangedHeight | sigAreaChangedHeight |
| SignalAreaChangedWidth | sigAreaChangedWidth |
Protected Member Functions | |
| void | eventSizeWidget (Uint16 w, Uint16 h) |
| Callback for the SizeWidget event. | |
Protected Attributes | |
| PG_Rect | my_area |
| bool | my_shiftx |
| bool | my_shifty |
| bool | my_AddResizeParent |
| bool | my_RemoveResizeParent |
Classes | |
| class | SignalAreaChangedHeight |
| class | SignalAreaChangedWidth |
Definition at line 48 of file pgscrollarea.h.
|
||||||||||||
|
Create a scrollarea widget.
Definition at line 35 of file pgscrollarea.cpp. |
|
|
Definition at line 38 of file pgscrollarea.cpp. |
|
|
Add a clientwidget (which will be embedded into this widget).
Reimplemented from PG_Widget. Definition at line 87 of file pgscrollarea.cpp. References PG_Widget::AddChild(), PG_Widget::GetBorderSize(), PG_Widget::GetParent(), PG_Widget::IsVisible(), PG_Widget::MoveRect(), my_AddResizeParent, my_area, PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, PG_Widget::Show(), sigAreaChangedHeight, and sigAreaChangedWidth. Referenced by PG_WidgetList::AddChild(), and PG_ScrollWidget::AddChild(). |
|
|
Delete (destroy) all widgets in the list.
Definition at line 228 of file pgscrollarea.cpp. References PG_Widget::GetChildList(), my_area, PG_Rect::next(), PG_Widget::SetVisible(), sigAreaChangedHeight, sigAreaChangedWidth, and PG_Widget::Update(). Referenced by PG_ScrollWidget::DeleteAll(), PG_ListBox::DeleteAll(), and PG_ScrollWidget::~PG_ScrollWidget(). |
|
||||||||||||
|
Callback for the SizeWidget event.
Reimplemented from PG_Widget. Definition at line 304 of file pgscrollarea.cpp. References PG_Rect::my_height, and PG_Rect::my_width. |
|
|
Get the height of the scrollable area.
Definition at line 115 of file pgscrollarea.h. Referenced by PG_WidgetList::AddChild(), PG_ScrollWidget::GetListHeight(), and PG_ScrollWidget::handleAreaChangedHeight(). |
|
|
Get the width of the scrollable area.
Definition at line 107 of file pgscrollarea.h. Referenced by PG_ScrollWidget::GetListWidth(), and PG_ScrollWidget::handleAreaChangedWidth(). |
|
|
Definition at line 287 of file pgscrollarea.cpp. References PG_RectList::first(), and PG_Widget::GetChildList(). Referenced by PG_ScrollWidget::GetFirstInList(). |
|
|
|
|
Get the number of widgets in the list.
Definition at line 250 of file pgscrollarea.cpp. References PG_Widget::GetChildList(). Referenced by PG_ScrollWidget::GetWidgetCount(), and ScrollToWidget(). |
|
|
Remove all widgets from the list (without deletion).
Definition at line 209 of file pgscrollarea.cpp. References PG_Widget::GetChildList(), my_area, my_shiftx, my_shifty, sigAreaChangedHeight, sigAreaChangedWidth, and PG_Widget::Update(). Referenced by PG_ScrollWidget::RemoveAll(), and PG_ListBox::RemoveAll(). |
|
|
Reimplemented from PG_Widget. Definition at line 146 of file pgscrollarea.cpp. References PG_Widget::GetChildList(), PG_Widget::GetParent(), PG_Widget::MoveRect(), my_area, PG_Rect::my_height, my_RemoveResizeParent, my_shiftx, my_shifty, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, PG_Rect::next(), PG_Widget::RemoveChild(), sigAreaChangedHeight, sigAreaChangedWidth, and PG_Widget::Update(). |
|
||||||||||||
|
scroll to a give X/Y-Coordinate within the client area.
Definition at line 40 of file pgscrollarea.cpp. References PG_Widget::GetChildList(), PG_Widget::MoveRect(), my_area, PG_Rect::my_height, PG_Rect::my_width, PG_Rect::next(), and PG_Widget::Update(). Referenced by PG_ListBox::DeleteAll(), PG_ScrollWidget::handleAreaChangedHeight(), PG_ScrollWidget::handleAreaChangedWidth(), PG_ScrollWidget::handleScrollPos(), PG_ScrollWidget::handleScrollTrack(), PG_WidgetList::PageDown(), PG_WidgetList::PageUp(), PG_WidgetList::ScrollTo(), PG_ScrollWidget::ScrollTo(), and ScrollToWidget(). |
|
||||||||||||
|
Scroll to a widget.
Definition at line 113 of file pgscrollarea.cpp. References GetWidgetCount(), my_area, PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, and ScrollTo(). Referenced by PG_ScrollWidget::ScrollToWidget(). |
|
|
Set the height of the scrollable area manually.
Definition at line 279 of file pgscrollarea.cpp. References my_area, and sigAreaChangedHeight. Referenced by PG_RichEdit::SetText(). |
|
|
Set the width of the scrollable area manually.
Definition at line 271 of file pgscrollarea.cpp. References my_area, and sigAreaChangedWidth. Referenced by PG_RichEdit::PG_RichEdit(), and PG_RichEdit::SetText(). |
|
||||||||||||
|
Automatically adjusts the parent's size to the actual scroll area size;.
Definition at line 295 of file pgscrollarea.cpp. References PG_Widget::GetParent(), my_AddResizeParent, and my_RemoveResizeParent. Referenced by PG_ScrollWidget::SetAutoResize(). |
|
||||||||||||
|
Shift widgets on removal.
Definition at line 266 of file pgscrollarea.cpp. References my_shiftx, and my_shifty. Referenced by PG_ScrollWidget::PG_ScrollWidget(), PG_WidgetList::PG_WidgetList(), and PG_ScrollWidget::SetShiftOnRemove(). |
|
|
Definition at line 165 of file pgscrollarea.h. Referenced by AddChild(), and SetResizeParent(). |
|
|
Definition at line 159 of file pgscrollarea.h. Referenced by AddChild(), DeleteAll(), GetScrollPosX(), GetScrollPosY(), RemoveAll(), RemoveChild(), ScrollTo(), ScrollToWidget(), SetAreaHeight(), and SetAreaWidth(). |
|
|
Definition at line 167 of file pgscrollarea.h. Referenced by RemoveChild(), and SetResizeParent(). |
|
|
Definition at line 161 of file pgscrollarea.h. Referenced by RemoveAll(), RemoveChild(), and SetShiftOnRemove(). |
|
|
Definition at line 163 of file pgscrollarea.h. Referenced by RemoveAll(), RemoveChild(), and SetShiftOnRemove(). |
|
|
Definition at line 138 of file pgscrollarea.h. Referenced by AddChild(), DeleteAll(), PG_ScrollWidget::PG_ScrollWidget(), RemoveAll(), RemoveChild(), and SetAreaHeight(). |
|
|
Definition at line 140 of file pgscrollarea.h. Referenced by AddChild(), DeleteAll(), PG_ScrollWidget::PG_ScrollWidget(), RemoveAll(), RemoveChild(), and SetAreaWidth(). |
1.4.2