class csRect : public csBase Rectangle class: simple class for manipulating 2D rectangles
Rectangle class: simple class for manipulating 2D rectangles. This class is somewhat similar to Box, but uses integer coordinates and is mostly used for CrystalSpace Windowing System.Example of a rectangle (xmin = 0, ymin = 0, xmax = 3, ymax = 2):
0 1 2 3 4 ... | | | | | | 0 --@@@@@@@@@@--+--+-- @//|//|//@ | | 1 --@--+--+--@--+--+-- @//|//|//@ | | 2 --@@@@@@@@@@--+--+-- | | | | | | 3 --+--+--+--+--+--+-- | | | | | | ...--+--+--+--+--+--+--Vertical line 'X=3' and horizontal line 'Y=2' does NOT belong to the rectangle.
csRect()
csRect(int ixmin, int iymin, int ixmax, int iymax)
csRect(csRect ©)
void Intersect(int ixmin, int iymin, int ixmax, int iymax)
void Intersect(csRect &target)
bool Intersects(csRect &target)
void Union(int ixmin, int iymin, int ixmax, int iymax)
void Union(csRect &target)
void Exclude(int ixmin, int iymin, int ixmax, int iymax)
void Subtract(csRect &rect)
inline bool IsEmpty()
inline void MakeEmpty()
inline void Set(int ixmin, int iymin, int ixmax, int iymax)
inline void Set(csRect &target)
inline void SetPos(int x, int y)
inline void SetSize(int w, int h)
inline void Move(int dX, int dY)
inline int Width()
inline int Height()
inline bool Contains(int x, int y)
inline bool ContainsRel(int x, int y)
inline bool Equal(int ixmin, int iymin, int ixmax, int iymax)
inline void Normalize()
inline int Area()
void AddAdjanced(csRect &rect)
inline bool operator != (csRect &rect)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de