PGFRect(3) | Library Functions Manual | PGFRect(3) |
NAME¶
PGFRect - Rectangle.
SYNOPSIS¶
#include <PGFtypes.h>
Public Member Functions¶
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
Public Attributes¶
UINT32 left
UINT32 top
UINT32 right
UINT32 bottom
Detailed Description¶
Rectangle.
Rectangle
Author
Definition at line 225 of file PGFtypes.h.
Constructor & Destructor Documentation¶
PGFRect::PGFRect () [inline]¶
Standard constructor.
Definition at line 229 of file PGFtypes.h..PP
229 : left(0), top(0), right(0), bottom(0) {}
PGFRect::PGFRect (UINT32 x, UINT32 y, UINT32 width, UINT32 height) [inline]¶
Constructor
Parameters
y Top offset
width Rectangle width
height Rectangle height
Definition at line 236 of file PGFtypes.h..PP
236 : left(x), top(y), right(x + width), bottom(y + height) {}
Member Function Documentation¶
UINT32 PGFRect::Height () const [inline]¶
Returns
Definition at line 259 of file PGFtypes.h..PP
259 { return bottom - top; }
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
y Point coordinate y
Returns
Definition at line 265 of file PGFtypes.h..PP
265 { return (x >= left && x < right && y >= top && y < bottom); }
UINT32 PGFRect::Width () const [inline]¶
Returns
Definition at line 256 of file PGFtypes.h..PP
256 { return right - left; }
Member Data Documentation¶
UINT32 PGFRect::bottom¶
Definition at line 226 of file PGFtypes.h.
UINT32 PGFRect::left¶
Definition at line 226 of file PGFtypes.h.
UINT32 PGFRect::right¶
Definition at line 226 of file PGFtypes.h.
UINT32 PGFRect::top¶
Definition at line 226 of file PGFtypes.h.
Author¶
Generated automatically by Doxygen for libpgf from the source code.
Version 7.21.2 | libpgf |