

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) |
| PG_Widget * | Find (const char *name) |
| 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 |
|
|
constructor of the list
|
|
|
destructor
|
|
||||||||||||
|
add a widget to the list
|
|
||||||||||||||||
|
|
|
|
blit all rectangles from the list intersecting a reference rectangle to the screen
|
|
|
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. |
|
|
reorder a widget (rectangle) - front
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check if a given point is inside any rectangle in the list
|
|
|
|
|
|
remove a widget from the list
|
|
|
reorder a widget (rectangle) - back
|
|
|
|
|
|
|
|
|
|
|
|
|