nux-1.14.0
nux::Rect Class Reference

List of all members.

Public Member Functions

 Rect (int x_, int y_, int width_, int height_)
 Rect (const Rect &r)
Rectoperator= (const Rect &r)
bool operator== (const Rect &p) const
bool operator!= (const Rect &p) const
bool IsNull () const
bool IsInside (const Point &p) const
Rect Intersect (const Rect &) const
void Expand (int factor_x, int factor_y)
int GetWidth () const
int GetHeight () const
Point GetCenter () const
 Returns a Point at the center of the Rectangle.
Point GetPosition ()
 Returns a Point at the center of the Rectangle.
void SetWidth (int w)
void SetHeight (int h)
void SetX (int px)
void SetY (int py)
void Set (int px, int py, int w, int h)
void SetPosition (int px, int py)
void SetSize (int px, int py)
void OffsetSize (int dw, int dh)
void OffsetPosition (int dx, int dy)
bool IsPointInside (int dx, int dy) const
Rect GetExpand (int dx, int dy) const

Public Attributes

int x
int y
int width
int height

Detailed Description

Definition at line 32 of file Rect.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends