On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTPEG-32 Programming Manual
RTPEG-32 Reference Manual
Function PegInitialize
Function PegExecute
Status Flags
Style Flags
Signals
Structures
struct PegPoint
struct PegRect
struct PegColor
struct PegMessage
Base Classes
Control Classes
Window Classes
Charting Classes
Image Conversion Classes
HMI (Human-Machine Interface) Classes
ZLIB Compression
Unicode Character Set Conversion
RTUSB-32
|
struct PegRect
The PegRect structure contains a rectangular screen dimension, along with a a few operators making it convenient to manipulate rectangular areas of the display screen.
struct PegRect
{
PEGINT wLeft;
PEGINT wTop;
PEGINT wRight;
PEGINT wBottom;
PEGINT Height(void) const;
PEGINT Width(void) const;
BOOL Contains(PegPoint Test);
BOOL Contains(PEGINT x, PEGINT y);
BOOL Contains(const PegRect &Rect);
void MoveTo(PEGINT x, PEGINT y);
BOOL Overlap(const PegRect &Rect);
void Set(PEGINT x1, PEGINT y1, PEGINT x2, PEGINT y2)
void Set(PegPoint ul, PegPoint br)
void Shift(PEGINT xShift, PEGINT yShift);
PegRect operator &=(const PegRect &Other);
PegRect operator |= (const PegRect &Other);
PegRect operator &(const PegRect &Rect);
PegRect operator ^= (const PegRect &Rect);
PegRect operator +(const PegPoint &Point);
PegRect operator +(const PegPoint &Point) const;
PegRect operator ++(int);
PegRect operator += (int x);
PegRect operator --(int);
PegRect operator -= (int x);
BOOL operator != (const PegRect &Rect);
BOOL operator == (const PegRect &Rect);
};
struct PegPoint
struct PegColor
|