Rect

Public Methods

Rect ()

Rect (int l, int t, int r, int b)

Rect (const RECT &r)

Rect (const Point &p, int w, int h)

Rect (const Point &p1, const Point &p2)

int GetWidth () const

int GetHeight () const

bool IsEmpty () const

bool Contains (const Point &point) const

void Extend (const Point &point)

void Extend (const Rect &rect)

void Intersect (const Rect &rect)

void Move (int x, int y)

void Move (const Point &p)

void Set (int l, int t, int r, int b)

void Translate (int dx, int dy)

void Translate (const Point &p)

 

Constructor & Destructor

Rect::Rect ( ) [inline]
Parameters:

none

Returns:

None

 

Rect::Rect ( int l,

             int t,

             int r,

             int b

           )  [inline]

Parameters:

l

t

r

b

Returns:

None

 

Rect::Rect ( const RECT & r ) [inline]
Parameters:

r

Returns:

None

 

Rect::Rect ( const Point & p,

             int           w,

             int           h

           ) [inline]

Parameters:

p

w

h

Returns:

None

 

Rect::Rect ( const Point & p1,

             const Point & p2

           ) [inline]

Parameters:

p1

p2

Returns:

None

Member Functions

bool Rect::Contains ( const Point & point ) const [inline]
Parameters:

point

Returns:

void

 

void Rect::Extend ( const Rect & rect )
Parameters:

rect

Returns:

void

 

void Rect::Extend ( const Point & point )
Parameters:

point

Returns:

void

 

int Rect::GetHeight ( ) const [inline]
Parameters:

none

Returns:

int

 

int Rect::GetWidth ( ) const [inline]
Parameters:

none

Returns:

int

 

void Rect::Intersect ( const Rect & rect )
Parameters:

rect

Returns:

void

 

bool Rect::IsEmpty ( ) const [inline]
Parameters:

none

Returns:

bool

 

void Rect::Move ( const Point & p ) [inline]
Parameters:

p

Returns:

void

 

void Rect::Move ( int x,

                  int y

                ) [inline]

Parameters:

x

y

Returns:

void

 

void Rect::Set ( int l,

                 int t,

                 int r,

                 int b

               ) [inline]

Parameters:

l

t

r

b

Returns:

void

 

void Rect::Translate ( const Point & p ) [inline]
Parameters:

p

Returns:

void

 

void Rect::Translate ( int dx,

                       int dy

                     ) [inline]

Parameters:

dx

dy

Returns:

void