#include <pgrectlist.h>
Public Member Functions | |
| PG_RectList () | |
| constructor of the list | |
| virtual | ~PG_RectList () |
| destructor | |
| void | Add (PG_Widget *rect, bool front=false) |
| add a widget to the list | |
| bool | Remove (PG_Rect *rect) |
| remove a widget from the list | |
| PG_Widget * | IsInside (const PG_Point &p) |
| check if a given point is inside any rectangle in the list | |
| PG_Widget * | Find (int id, bool recursive=false) |
| PG_Widget * | Find (const std::string &name, bool recursive=false) |
| void | Blit () |
| blit all rectangles in the list to the screen | |
| void | Blit (const PG_Rect &rect) |
| blit all rectangles from the list intersecting a reference rectangle to the screen | |
| void | Blit (const PG_Rect &rect, PG_Widget *first, PG_Widget *last=NULL) |
| bool | BringToFront (PG_Widget *rect) |
| reorder a widget (rectangle) - front | |
| bool | SendToBack (PG_Widget *rect) |
| reorder a widget (rectangle) - back | |
| PG_Widget * | first () |
| PG_Widget * | last () |
| void | clear () |
| Uint32 | size () |
Protected Attributes | |
| PG_Widget * | my_first |
| PG_Widget * | my_last |
| Uint32 | my_count |
Definition at line 46 of file pgrectlist.h.
|
|
constructor of the list
Definition at line 36 of file pgrectlist.cpp. |
|
|
destructor
Definition at line 41 of file pgrectlist.cpp. |
|
||||||||||||
|
add a widget to the list
Definition at line 91 of file pgrectlist.cpp. References PG_Rect::index, my_count, my_first, my_last, PG_Rect::my_next, PG_Rect::my_prev, and PG_LogWRN(). Referenced by PG_Widget::AddChild(), PG_Widget::AddToWidgetList(), BringToFront(), and SendToBack(). |
|
||||||||||||||||
|
Definition at line 180 of file pgrectlist.cpp. References Blit(), PG_Widget::Blit(), PG_Widget::GetChildList(), PG_Widget::GetClipRect(), PG_Application::GetScreen(), PG_Rect::IntersectRect(), PG_Widget::IsHidden(), PG_Widget::IsVisible(), PG_Rect::next(), PG_Rect::OverlapRect(), and screen. |
|
|
blit all rectangles from the list intersecting a reference rectangle to the screen
Definition at line 176 of file pgrectlist.cpp. |
|
|
blit all rectangles in the list to the screen This function blits all visible rectangles from the first to the last position to the screen. Definition at line 223 of file pgrectlist.cpp. References PG_Widget::Blit(), first(), PG_Widget::IsHidden(), PG_Widget::IsVisible(), and PG_Rect::next(). Referenced by PG_Widget::Blit(), Blit(), PG_Widget::BulkBlit(), PG_Widget::RestoreBackground(), PG_Widget::Update(), and PG_Widget::UpdateRect(). |
|
|
reorder a widget (rectangle) - front
Definition at line 234 of file pgrectlist.cpp. References Add(), and Remove(). Referenced by PG_Widget::BringToFront(), and PG_Widget::Show(). |
|
|
Definition at line 284 of file pgrectlist.cpp. References my_count, my_first, and my_last. Referenced by PG_Widget::RemoveAllChilds(). |
|
||||||||||||
|
Definition at line 268 of file pgrectlist.cpp. References PG_Widget::FindChild(), first(), PG_Widget::GetName(), and PG_Rect::next(). |
|
||||||||||||
|
Definition at line 252 of file pgrectlist.cpp. References PG_Widget::FindChild(), first(), PG_Widget::GetID(), and PG_Rect::next(). Referenced by PG_Widget::FindChild(). |
|
|
|
check if a given point is inside any rectangle in the list
Definition at line 73 of file pgrectlist.cpp. References PG_Widget::GetClipRect(), PG_Widget::IsHidden(), PG_Widget::IsVisible(), last(), and PG_Rect::prev(). Referenced by PG_Widget::FindWidgetFromPos(). |
|
|
Definition at line 130 of file pgrectlist.h. Referenced by IsInside(). |
|
|
remove a widget from the list
Definition at line 132 of file pgrectlist.cpp. References my_count, my_first, my_last, PG_Rect::my_next, PG_Rect::my_prev, PG_Rect::next(), and PG_Rect::prev(). Referenced by BringToFront(), PG_Widget::RemoveChild(), PG_Widget::RemoveFromWidgetList(), and SendToBack(). |
|
|
reorder a widget (rectangle) - back
Definition at line 243 of file pgrectlist.cpp. References Add(), and Remove(). Referenced by PG_Widget::SendToBack(). |
|
|
Definition at line 136 of file pgrectlist.h. Referenced by PG_Widget::GetChildCount(). |
|
|
Definition at line 146 of file pgrectlist.h. |
|
|
Definition at line 142 of file pgrectlist.h. |
|
|
Definition at line 144 of file pgrectlist.h. |
1.4.2