TGfxRectangularShape Class Reference

class TGfxRectangularShape : public MGfxShape

This class implements the properties of a rectangle.

Gfx2D.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

TGfxRectangularShape()

TGfxRectangularShape()

Constructor.

Since
1.0

TGfxRectangularShape(const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &, const TFloatFixPt &)

TGfxRectangularShape(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

AreaSize()

TFloatFixPt AreaSize()[virtual]

Get the area.

Since
1.0

CenterX()

TFloatFixPt CenterX()

Get the center x coordinate.

Since
1.0

CenterY()

TFloatFixPt CenterY()

Get the center y coordinate.

Since
1.0

GetBounds(const TGfxAffineTransform &, TGfxRectangle2D &)

voidGetBounds(const TGfxAffineTransform &aAt,
TGfxRectangle2D &aRect
)[virtual]

Get the bounding box for this rectangle.

Since
1.0

Parameters

const TGfxAffineTransform & aAt: transform to apply.
TGfxRectangle2D & aRect: rectangle to store bounding box info.

MaxX()

TFloatFixPt MaxX()

Get the maximum x coordinate value.

Since
1.0

MaxY()

TFloatFixPt MaxY()

Get the maximum y coordinate value.

Since
1.0

MinX()

TFloatFixPt MinX()

Get the minimum x coordinate value.

Since
1.0

MinY()

TFloatFixPt MinY()

Get the minimum y coordinate value.

Since
1.0

Member Data Documentation

TFloatFixPt iHeight

TFloatFixPt iHeight

TFloatFixPt iWidth

TFloatFixPt iWidth

TFloatFixPt iX

TFloatFixPt iX

TFloatFixPt iY

TFloatFixPt iY