Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXRectangle Class Reference

Rectangle.

#include <FXRectangle.h>

List of all members.

Public Methods

 FXRectangle ()
 Constructors.

 FXRectangle (FXshort xx, FXshort yy, FXshort ww, FXshort hh)
 FXRectangle (const FXPoint &p, const FXSize &s)
 FXRectangle (const FXPoint &topleft, const FXPoint &bottomright)
FXbool contains (const FXPoint &p) const
 Point in rectangle.

FXbool contains (FXshort xx, FXshort yy) const
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 & grow (FXshort hormargin, FXshort vermargin)
FXRectangle & grow (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXRectangle & shrink (FXshort margin)
 Shrink by amount.

FXRectangle & shrink (FXshort hormargin, FXshort vermargin)
FXRectangle & shrink (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXPoint tl () const
 Corners.

FXPoint tr () const
FXPoint bl () const
FXPoint br () const
FXRectangle & operator+= (const FXRectangle &r)
 Union and intersection with rectangle.

FXRectangle & operator *= (const FXRectangle &r)

Public Attributes

FXshort x
FXshort y
FXshort w
FXshort h

Friends

FXAPI FXbool operator== (const FXRectangle &p, const FXRectangle &q)
 Equality.

FXAPI FXbool operator!= (const FXRectangle &p, const FXRectangle &q)
FXAPI FXbool overlap (const FXRectangle &a, const FXRectangle &b)
 Rectangles overlap.

FXAPI FXRectangle operator+ (const FXRectangle &p, const FXRectangle &q)
 Union and intersection between rectangles.

FXAPI FXRectangle operator * (const FXRectangle &p, const FXRectangle &q)
FXAPI FXStreamoperator<< (FXStream &store, const FXRectangle &r)
 Save object to a stream.

FXAPI FXStreamoperator>> (FXStream &store, FXRectangle &r)
 Load object from a stream.