Rect Class Reference
[Miscellaneous Tools]

A rectangle class.Warning: w and h should _never_ be negative. More...

#include <Rect.hh>

List of all members.

Public Member Functions

 Rect (int x, int y, int w, int h)
 Rect (const Point &pos, const Point &size)
bool inside (const Point &pos) const
Point getPos () const
Point getSize () const
Rectoperator+= (const Rect &rhs)
Rectoperator+= (const Point &rhs)
Rectoperator-= (const Point &rhs)
Rectoperator|= (const Rect &rhs)
Rectoperator&= (const Rect &rhs)

Public Attributes

int x
int y
int w
int h

Friends

bool operator== (const Rect &lhs, const Rect &rhs)
bool operator!= (const Rect &lhs, const Rect &rhs)
Rect operator+ (const Rect &lhs, const Rect &rhs)
Rect operator+ (const Rect &lhs, const Point &rhs)
Rect operator- (const Rect &lhs, const Point &rhs)
Rect operator* (const Rect &lhs, double factor)
Rect operator| (const Rect &lhs, const Rect &rhs)
Rect operator& (const Rect &lhs, const Rect &rhs)
std::ostream & operator<< (std::ostream &os, const Rect &p)

Detailed Description

A rectangle class.

Warning: w and h should _never_ be negative.


The documentation for this class was generated from the following file:
Generated on Mon Apr 5 21:17:44 2010 for Stechec/TBT by  doxygen 1.6.3