Rectangle.
More...
#include <PGFtypes.h>
Rectangle.
Rectangle
- Author
- C. Stamm
Definition at line 194 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 202 of file PGFtypes.h.
◆ Height()
UINT32 PGFRect::Height |
( |
| ) |
const |
|
inline |
- Returns
- Rectangle height
Definition at line 207 of file PGFtypes.h.
◆ IsInside()
bool PGFRect::IsInside |
( |
UINT32 |
x, |
|
|
UINT32 |
y |
|
) |
| const |
|
inline |
Test if point (x,y) is inside this rectangle
- Parameters
-
x | Point coordinate x |
y | Point coordinate y |
- Returns
- True if point (x,y) is inside this rectangle
Definition at line 213 of file PGFtypes.h.
213 {
return (x >=
left && x < right && y >=
top && y <
bottom); }
◆ Width()
UINT32 PGFRect::Width |
( |
| ) |
const |
|
inline |
- Returns
- Rectangle width
Definition at line 205 of file PGFtypes.h.
◆ bottom
◆ left
◆ right
◆ top
The documentation for this struct was generated from the following file: