FXRectangle

class FXRectangle

Rectangle

Public Methods

[more] FXRectangle()
Constructors
[more]FXbool contains(const FXPoint& p) const
Point in rectangle
[more]FXbool contains(const FXRectangle& r) const
Rectangle properly contained in rectangle
[more]FXRectangle& move(FXshort dx, FXshort dy)
Return moved rectangle
[more]FXRectangle& grow(FXshort margin)
Grow by amount
[more]FXRectangle& shrink(FXshort margin)
Shrink by amount
[more]FXPoint tl() const
Corners
[more]FXRectangle& operator+=(const FXRectangle &r)
Union and intersection with rectangle


Documentation

Rectangle
o FXRectangle()
Constructors

oFXbool contains(const FXPoint& p) const
Point in rectangle

oFXbool contains(const FXRectangle& r) const
Rectangle properly contained in rectangle

oFXRectangle& move(FXshort dx, FXshort dy)
Return moved rectangle

oFXRectangle& grow(FXshort margin)
Grow by amount

oFXRectangle& shrink(FXshort margin)
Shrink by amount

oFXPoint tl() const
Corners

oFXRectangle& 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++.