TGfxRectangle2D Class Reference

class TGfxRectangle2D : public TGfxRectangularShape

Implementation of a rectangle.

Gfx2D.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

TGfxRectangle2D()

TGfxRectangle2D ( )

Construct a rectangle.

Since
1.0

TGfxRectangle2D(const TGfxRectangle2D &)

TGfxRectangle2D ( const TGfxRectangle2D & aRect )

Construct a rectangle from another TGfxRectangle2D .

Since
1.0

Parameters

const TGfxRectangle2D & aRect : rectangle to copy

TGfxRectangle2D(const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &)

TGfxRectangle2D ( const TFloatFixPt & aX,
const TFloatFixPt & aY,
const TFloatFixPt & aWidth,
const TFloatFixPt & aHeight
)

Construct a rectangle from top-left, width/height info.

Since
1.0

Parameters

const TFloatFixPt & aX : x coordinate of top-left corner
const TFloatFixPt & aY : y coordinate of top-left corner
const TFloatFixPt & aWidth
const TFloatFixPt & aHeight : height of rectangle

Member Functions Documentation

Contains(TGfxPoint2D)

TBool Contains ( TGfxPoint2D aPoint )

Determine if the given point is contained within this rectangle.

Since
1.0

Parameters

TGfxPoint2D aPoint

GetPathIteratorL(TGfxAffineTransform *, CGfxPathIterator *&)

void GetPathIteratorL ( TGfxAffineTransform * aAt,
CGfxPathIterator *& aPitr
) [virtual]

Get the path iterator for this rectangle.

Since
1.0

Parameters

TGfxAffineTransform * aAt : transform to apply.
CGfxPathIterator *& aPitr : path iterator holder.

GetPathIteratorL(TGfxAffineTransform *, TInt, CGfxPathIterator *&)

void GetPathIteratorL ( TGfxAffineTransform * aAt,
TInt aLimit,
CGfxPathIterator *& aPitr
) [virtual]

Get the path iterator for this rectangle.

Since
1.0

Parameters

TGfxAffineTransform * aAt : transform to apply.
TInt aLimit : maximum of points to define the iterator.
CGfxPathIterator *& aPitr : path iterator holder.

Intersects(const TGfxRectangle2D &)

TBool Intersects ( const TGfxRectangle2D & aRect )

Determine if the given rectangle intersects with this rectangle.

Since
1.0

Parameters

const TGfxRectangle2D & aRect : rectangle to check for intersection.

ShapeType()

TInt ShapeType ( ) [inline, virtual]

operator!=(const TGfxRectangle2D &)

TInt operator!= ( const TGfxRectangle2D & aRect ) const

Parameters

const TGfxRectangle2D & aRect

operator==(const TGfxRectangle2D &)

TInt operator== ( const TGfxRectangle2D & aRect ) const

Parameters

const TGfxRectangle2D & aRect