#include <pgwidgetlist.h>
Inheritance diagram for PG_WidgetList:

Public Member Functions | |
| PG_WidgetList (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="WidgetList") | |
| Constructor of the PG_Widget class. | |
| ~PG_WidgetList () | |
| Destructor of the PG_Widget class. | |
| PG_Widget * | FindWidget (int index) |
| Find a widget by a given index. | |
| int | FindIndex (PG_Widget *widget) |
| Find the index of a given widget. | |
| void | ScrollTo (Uint16 ypos) |
| Scroll to the specified Y-Position. | |
| void | PageUp () |
| Scroll one page up. | |
| void | PageDown () |
| Scroll one page down. | |
| void | AddChild (PG_Widget *child) |
| Add a clientwidget (which will be embedded into this widget). | |
Protected Member Functions | |
| PG_Widget * | GetWidgetFromPos (Sint32 y) |
| Search for a widget at a given y-position. | |
Definition at line 46 of file pgwidgetlist.h.
|
||||||||||||||||
|
Constructor of the PG_Widget class.
Definition at line 35 of file pgwidgetlist.cpp. References PG_ScrollWidget::LoadThemeStyle(), PG_ScrollWidget::my_scrollarea, and PG_ScrollArea::SetShiftOnRemove(). |
|
|
Destructor of the PG_Widget class.
Definition at line 44 of file pgwidgetlist.cpp. |
|
|
Add a clientwidget (which will be embedded into this widget).
Reimplemented from PG_ScrollWidget. Reimplemented in PG_ListBox. Definition at line 46 of file pgwidgetlist.cpp. References PG_ScrollArea::AddChild(), PG_Widget::AddChild(), PG_ScrollArea::GetAreaHeight(), PG_Widget::MoveRect(), PG_ScrollWidget::my_objHorizontalScrollbar, PG_ScrollWidget::my_objVerticalScrollbar, PG_ScrollWidget::my_scrollarea, and PG_Rect::my_ypos. Referenced by PG_ListBox::AddChild(). |
|
|
Find the index of a given widget.
Definition at line 97 of file pgwidgetlist.cpp. References PG_Widget::GetChildList(), PG_Rect::index, and PG_Rect::next(). |
|
|
Find a widget by a given index.
Definition at line 79 of file pgwidgetlist.cpp. References PG_Widget::GetChildList(), PG_ScrollWidget::GetWidgetCount(), PG_ScrollWidget::my_scrollarea, and PG_Rect::next(). Referenced by MultiListBox::all(), MultiListBox::none(), PG_ListBox::SelectFirstItem(), PG_ListBox::SelectNextItem(), and PG_ListBox::SelectPrevItem(). |
|
|
Search for a widget at a given y-position.
Definition at line 60 of file pgwidgetlist.cpp. References PG_Widget::GetChildList(), PG_Rect::my_ypos, and PG_Rect::next(). |
|
|
Scroll one page down.
Definition at line 121 of file pgwidgetlist.cpp. References PG_ScrollWidget::CheckScrollBars(), PG_ScrollArea::GetScrollPosX(), PG_ScrollArea::GetScrollPosY(), PG_Rect::my_height, PG_ScrollWidget::my_scrollarea, and PG_ScrollArea::ScrollTo(). |
|
|
Scroll one page up.
Definition at line 116 of file pgwidgetlist.cpp. References PG_ScrollWidget::CheckScrollBars(), PG_ScrollArea::GetScrollPosX(), PG_ScrollArea::GetScrollPosY(), PG_Rect::my_height, PG_ScrollWidget::my_scrollarea, and PG_ScrollArea::ScrollTo(). |
|
|
Scroll to the specified Y-Position.
Definition at line 111 of file pgwidgetlist.cpp. References PG_ScrollWidget::CheckScrollBars(), PG_ScrollArea::GetScrollPosX(), PG_ScrollWidget::my_scrollarea, and PG_ScrollArea::ScrollTo(). |
1.4.2