paratest.cpp, and sigc.cpp.
Public Member Functions | |
PG_Rect (Sint16 x, Sint16 y, Uint16 w, Uint16 h) | |
Create a new PG_Rect object with give values. | |
PG_Rect () | |
Create an empty PG_Rect object Initializes the created PG_Rect object with x=y=w=h=0. | |
PG_Rect (const PG_Rect &src) | |
Create a new PG_Rect from a reference. | |
PG_Rect (const SDL_Rect &src) | |
Create a new PG_Rect from a SDL_Rect structure. | |
virtual | ~PG_Rect () |
void | SetRect (Sint16 nx, Sint16 ny, Uint16 nw, Uint16 nh) |
Set the position of the rectangle. | |
PG_Rect & | operator= (const SDL_Rect &src) |
PG_Rect & | operator= (const PG_Rect &src) |
PG_Rect | operator/ (PG_Rect &b) |
bool | operator== (const PG_Rect &r) const |
bool | operator!= (const PG_Rect &r) const |
bool | IsInside (const PG_Point &p) |
Check if a given point is inside a rectangle (boxtest). | |
PG_Rect | IntersectRect (const PG_Rect &p) const |
Intersect two rectangles. | |
Uint16 | Width () |
Return the width of the rectangle. | |
Uint16 | Width () const |
Uint16 | Height () |
Return the height of the rectangle. | |
Uint16 | Height () const |
bool | IsNull () |
bool | OverlapRect (const PG_Rect &p, const PG_Rect &c) const |
Check if two rectangles overlap. | |
bool | OverlapRect (const PG_Rect &p) const |
Check if this rectangle overlap another one. | |
bool | OverlapRect (PG_Rect *p) |
Check if this rectangle overlap another one. | |
PG_Widget * | next () |
Get the next Rectangle from the list Moves to the next rectangle in the list. | |
PG_Widget * | prev () |
Get the previous Rectangle from the list Moves to the previous rectangle in the list. | |
Static Public Member Functions | |
bool | IsInside (const PG_Point &p, PG_Rect &r) |
Check if a given point is inside a rectangle (boxtest). | |
PG_Rect | IntersectRect (const PG_Rect &p, const PG_Rect &c) |
Intersect two rectangles. | |
Public Attributes | |
Sint16 & | my_xpos |
Sint16 & | my_ypos |
Uint16 & | my_width |
Uint16 & | my_height |
Uint32 | index |
Static Public Attributes | |
PG_Rect | null |
Protected Attributes | |
PG_Widget * | my_next |
PG_Widget * | my_prev |
Friends | |
class | PG_RectList |
|
Create a new PG_Rect object with give values.
|
|
Create an empty PG_Rect object Initializes the created PG_Rect object with x=y=w=h=0.
|
|
Create a new PG_Rect from a reference.
|
|
Create a new PG_Rect from a SDL_Rect structure.
|
|
|
|
Reimplemented in PG_PopupMenu::MenuItem. |
|
Return the height of the rectangle.
|
|
Intersect two rectangles.
|
|
Intersect two rectangles.
|
|
Check if a given point is inside a rectangle (boxtest).
|
|
Check if a given point is inside a rectangle (boxtest).
|
|
|
|
Get the next Rectangle from the list Moves to the next rectangle in the list.
|
|
|
|
|
|
|
|
|
|
|
|
Check if this rectangle overlap another one.
|
|
Check if this rectangle overlap another one.
|
|
Check if two rectangles overlap.
|
|
Get the previous Rectangle from the list Moves to the previous rectangle in the list.
|
|
Set the position of the rectangle.
|
|
Reimplemented in PG_PopupMenu::MenuItem. |
|
Return the width of the rectangle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|