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

FX::FXRectangle Class Reference

Rectangle. More...

#include <FXRectangle.h>

List of all members.

Public Member Functions

 FXRectangle ()
 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
FXbool contains (FXshort xx, FXshort yy) const
FXbool contains (const FXRectangle &r) const
FXRectangle & move (FXshort dx, FXshort dy)
FXRectangle & grow (FXshort margin)
FXRectangle & grow (FXshort hormargin, FXshort vermargin)
FXRectangle & grow (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXRectangle & shrink (FXshort margin)
FXRectangle & shrink (FXshort hormargin, FXshort vermargin)
FXRectangle & shrink (FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)
FXPoint tl () const
FXPoint tr () const
FXPoint bl () const
FXPoint br () const
FXRectangle & operator+= (const FXRectangle &r)
FXRectangle & operator *= (const FXRectangle &r)

Public Attributes

FXshort x
FXshort y
FXshort w
FXshort h

Friends

FXbool operator== (const FXRectangle &p, const FXRectangle &q)
FXbool operator!= (const FXRectangle &p, const FXRectangle &q)
FXbool overlap (const FXRectangle &a, const FXRectangle &b)
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)


Detailed Description

Rectangle.


Constructor & Destructor Documentation

FX::FXRectangle::FXRectangle (   )  [inline]
 

Constructors.


Member Function Documentation

FXbool FX::FXRectangle::contains (  const FXPoint &  p  )  const [inline]
 

Point in rectangle.

FXbool FX::FXRectangle::contains (  const FXRectangle &  r  )  const [inline]
 

Rectangle properly contained in rectangle.

FXRectangle& FX::FXRectangle::move (  FXshort  dx,
FXshort  dy
)  [inline]
 

Return moved rectangle.

FXRectangle& FX::FXRectangle::grow (  FXshort  margin  ) 
 

Grow by amount.

FXRectangle& FX::FXRectangle::shrink (  FXshort  margin  ) 
 

Shrink by amount.

FXPoint FX::FXRectangle::tl (   )  const [inline]
 

Corners.

FXRectangle& FX::FXRectangle::operator+= (  const FXRectangle &  r  ) 
 

Union and intersection with rectangle.


Friends And Related Function Documentation

FXbool operator== (  const FXRectangle &  p,
const FXRectangle &  q
)  [friend]
 

Equality.

FXbool overlap (  const FXRectangle &  a,
const FXRectangle &  b
)  [friend]
 

Rectangles overlap.

FXRectangle operator+ (  const FXRectangle &  p,
const FXRectangle &  q
)  [friend]
 

Union and intersection between rectangles.

FXStream& operator<< (  FXStream &  store,
const FXRectangle &  r
)  [friend]
 

Save object to a stream.

FXStream& operator>> (  FXStream &  store,
FXRectangle &  r
)  [friend]
 

Load object from a stream.

Copyright © 1997-2004 Jeroen van der Zijp