|
libpgf 7.26.45
PGF - Progressive Graphics File
|
Rectangle. More...
#include <PGFtypes.h>
Public Member Functions | |
| PGFRect () | |
| Standard constructor. | |
| PGFRect (uint32_t x, uint32_t y, uint32_t width, uint32_t height) | |
| uint32_t | Width () const |
| uint32_t | Height () const |
| bool | IsInside (uint32_t x, uint32_t y) const |
| void | Offset (int32_t shiftH, int32_t shiftV) |
| bool | operator== (const PGFRect &rect2) const |
| bool | operator!= (const PGFRect &rect2) const |
Public Attributes | |
| uint32_t | left |
| uint32_t | top |
| uint32_t | right |
| uint32_t | bottom |
Friends | |
| bool | Intersect (const PGFRect &rect1, const PGFRect &rect2, PGFRect &resultRect) |
|
inline |
|
inline |
|
inline |
|
inline |
Test if point (x,y) is inside this rectangle (inclusive top-left edges, exclusive bottom-right edges)
| x | Point coordinate x |
| y | Point coordinate y |
Definition at line 313 of file PGFtypes.h.
|
inline |
|
inline |
Definition at line 360 of file PGFtypes.h.
|
inline |
Returns true if both rectangles are equal.
| rect1 | A source rectangle. |
| rect2 | Another source rectangle. |
Definition at line 356 of file PGFtypes.h.
|
inline |
Calculates the intersection of two rectangles.
| rect1 | A source rectangle. |
| rect2 | Another source rectangle. |
| resultRect | The intersection rectangle. |
Definition at line 335 of file PGFtypes.h.
| uint32_t pgf::PGFRect::bottom |
Definition at line 259 of file PGFtypes.h.
| uint32_t pgf::PGFRect::left |
Definition at line 259 of file PGFtypes.h.
| uint32_t pgf::PGFRect::right |
Definition at line 259 of file PGFtypes.h.
| uint32_t pgf::PGFRect::top |
Definition at line 259 of file PGFtypes.h.