Rectangle
Public Methods
-
FXRectangle()
- Constructors
-
FXbool contains(const FXPoint& p) const
- Point in rectangle
-
FXbool contains(const FXRectangle& r) const
- Rectangle properly contained in rectangle
-
FXRectangle& move(FXshort dx, FXshort dy)
- Return moved rectangle
-
FXRectangle& grow(FXshort margin)
- Grow by amount
-
FXRectangle& shrink(FXshort margin)
- Shrink by amount
-
FXPoint tl() const
- Corners
-
FXRectangle& operator+=(const FXRectangle &r)
- Union and intersection with rectangle
Documentation
Rectangle
FXRectangle()
- Constructors
FXbool contains(const FXPoint& p) const
- Point in rectangle
FXbool contains(const FXRectangle& r) const
- Rectangle properly contained in rectangle
FXRectangle& move(FXshort dx, FXshort dy)
- Return moved rectangle
FXRectangle& grow(FXshort margin)
- Grow by amount
FXRectangle& shrink(FXshort margin)
- Shrink by amount
FXPoint tl() const
- Corners
FXRectangle& operator+=(const FXRectangle &r)
- Union and intersection with rectangle
- This class has no child classes.
- Friends:
- FXbool operator==(const FXRectangle& p,const FXRectangle& q){ return p.x==q.x && p.y==q.y && p.w==q.w && p.h==q.h
FXbool operator!=(const FXRectangle& p,const FXRectangle& q){ return p.x!=q.x || p.y!=q.y || p.w!=q.w || p.h!=q.h
FXbool overlap(const FXRectangle& a,const FXRectangle& b){ return b.x<a.x+a.w && b.y<a.y+a.h && a.x<b.x+b.w && a.y<b.y+b.h
FXRectangle operator+(const FXRectangle& p,const FXRectangle& q)
FXRectangle operator*(const FXRectangle& p,const FXRectangle& q)
FXStream& operator<<(FXStream& store,const FXRectangle& r)
FXStream& operator>>(FXStream& store,FXRectangle& r)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.