Rectangle.
More...
#include <PGFtypes.h>
|
| PGFRect () |
| Standard constructor.
|
|
| PGFRect (UINT32 x, UINT32 y, UINT32 width, UINT32 height) |
|
UINT32 | Width () const |
|
UINT32 | Height () const |
|
bool | IsInside (UINT32 x, UINT32 y) const |
|
Rectangle.
Rectangle
- Author
- C. Stamm
Definition at line 225 of file PGFtypes.h.
◆ PGFRect() [1/2]
◆ PGFRect() [2/2]
PGFRect::PGFRect |
( |
UINT32 |
x, |
|
|
UINT32 |
y, |
|
|
UINT32 |
width, |
|
|
UINT32 |
height |
|
) |
| |
|
inline |
Constructor
- Parameters
-
x | Left offset |
y | Top offset |
width | Rectangle width |
height | Rectangle height |
Definition at line 236 of file PGFtypes.h.
◆ Height()
UINT32 PGFRect::Height |
( |
| ) |
const |
|
inline |
- Returns
- Rectangle height
Definition at line 259 of file PGFtypes.h.
◆ IsInside()
bool PGFRect::IsInside |
( |
UINT32 |
x, |
|
|
UINT32 |
y |
|
) |
| const |
|
inline |
Test if point (x,y) is inside this rectangle (inclusive top-left edges, exclusive bottom-right edges)
- Parameters
-
x | Point coordinate x |
y | Point coordinate y |
- Returns
- True if point (x,y) is inside this rectangle (inclusive top-left edges, exclusive bottom-right edges)
Definition at line 265 of file PGFtypes.h.
265{
return (x >=
left && x < right && y >=
top && y <
bottom); }
◆ Width()
UINT32 PGFRect::Width |
( |
| ) |
const |
|
inline |
- Returns
- Rectangle width
Definition at line 256 of file PGFtypes.h.
◆ bottom
◆ left
◆ right
◆ top
The documentation for this struct was generated from the following file: