|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Rectangle class used for screen rectangles. It's very similar to the MS CRect, but with FLOATS because it's meant to be used with OpenGL which takes float values. Changed to floats 2004-08-31 /GL
Field Summary | |
float |
bottom
Dimensions |
float |
left
Dimensions |
float |
right
Dimensions |
float |
top
Dimensions |
Constructor Summary | |
CRect( const CPos& pos )
|
|
CRect( const CSize& size )
|
|
CRect( const CPos& upperleft, const CPos& bottomright )
|
|
CRect( const CPos& pos, const CSize& size )
|
|
CRect( const float& _l, const float& _t, const float& _r, const float& _b )
|
|
CRect()
|
Method Summary | |
CPos |
BottomRight() const
Get Position equivalent to bottom/right corner |
CPos |
CenterPoint() const
Get Position equivalent to the center of the rectangle |
float |
GetHeight() const
|
CSize |
GetSize() const
Get Size |
float |
GetWidth() const
|
bool |
operator!=( const CRect& a ) const
|
CRect |
operator+( const CSize& a ) const
|
CRect |
operator+( const CPos& a ) const
|
CRect |
operator+( void ) const
|
CRect |
operator+( const CRect& a ) const
|
void |
operator+=( const CPos& a )
|
void |
operator+=( const CRect& a )
|
void |
operator+=( const CSize& a )
|
CRect |
operator-( const CPos& a ) const
|
CRect |
operator-( const CRect& a ) const
|
CRect |
operator-( const CSize& a ) const
|
CRect |
operator-( void ) const
|
void |
operator-=( const CSize& a )
|
void |
operator-=( const CRect& a )
|
void |
operator-=( const CPos& a )
|
void |
operator=( const CRect& a )
|
bool |
operator==( const CRect& a ) const
|
bool |
PointInside( const CPos& point ) const
Evalutates if point is within the rectangle |
CRect |
Scale( float x, float y ) const
|
CPos |
TopLeft() const
Get Position equivalent to top/left corner |
Field Detail |
public float bottom;
public float left;
public float right;
public float top;
Constructor Detail |
public CRect( const CPos& pos );
public CRect( const CSize& size );
public CRect( const CPos& upperleft, const CPos& bottomright );
public CRect( const CPos& pos, const CSize& size );
public CRect( const float& _l, const float& _t, const float& _r, const float& _b );
public CRect();
Method Detail |
public CPos BottomRight() const;
public CPos CenterPoint() const;
public float GetHeight() const;
public CSize GetSize() const;
public float GetWidth() const;
public bool operator!=( const CRect& a ) const;
public CRect operator+( const CSize& a ) const;
public CRect operator+( const CPos& a ) const;
public CRect operator+( void ) const;
public CRect operator+( const CRect& a ) const;
public void operator+=( const CPos& a );
public void operator+=( const CRect& a );
public void operator+=( const CSize& a );
public CRect operator-( const CPos& a ) const;
public CRect operator-( const CRect& a ) const;
public CRect operator-( const CSize& a ) const;
public CRect operator-( void ) const;
public void operator-=( const CSize& a );
public void operator-=( const CRect& a );
public void operator-=( const CPos& a );
public void operator=( const CRect& a );
public bool operator==( const CRect& a ) const;
public bool PointInside( const CPos& point ) const;
point
- CPos representing pointpublic CRect Scale( float x, float y ) const;
public CPos TopLeft() const;
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |