TAnalogDisplayHand Class Reference

#include <mw/clock.h>

Link against: clock.lib

class TAnalogDisplayHand : public TDisplayAddition

Inherits from

Detailed Description

A hand for an analogue clock.

A hand is a vector drawing made from a number of features (lines, circles, polylines). These are specified with the hand assumed to be in the 12 o'clock position, with TPoint(0,0) being the center of the clock.

See also: RAnalogClock

Constructor & Destructor Documentation

TAnalogDisplayHand ( TAnalogDisplayHandType )

IMPORT_CTAnalogDisplayHand(TAnalogDisplayHandTypeaType)

Constructs a hand for an analogue clock.

Parameters
aTypeType of hand

Member Function Documentation

AddCircle ( CGraphicsContext::TPenStyle, TRgb, const TSize &, CGraphicsContext::TBrushStyle, TRgb, const TPoint &, TInt )

IMPORT_C voidAddCircle(CGraphicsContext::TPenStyleaPenStyle,
TRgbaPenColor,
const TSize &aPenSize,
CGraphicsContext::TBrushStyleaBrushStyle,
TRgbaBrushColor,
const TPoint &aCircleCenter,
TIntaRadius
)

Adds a circle to the hand.

Parameters
aPenStyleThe pen style
aPenColorThe pen colour
aPenSizeThe pen size
aBrushStyleThe brush style
aBrushColorThe brush colour
aCircleCenterThe centre of the circle
aRadiusThe radius of the circle

AddLine ( CGraphicsContext::TPenStyle, TRgb, const TSize &, const TPoint &, const TPoint & )

IMPORT_C voidAddLine(CGraphicsContext::TPenStyleaPenStyle,
TRgbaPenColor,
const TSize &aPenSize,
const TPoint &aStartPoint,
const TPoint &aEndPoint
)

Adds a line to the hand.

Parameters
aPenStyleThe pen style
aPenColorThe pen colour
aPenSizeThe pen size
aStartPointThe start point for the line
aEndPointThe end point for the line

AddPolyLine ( CGraphicsContext::TPenStyle, TRgb, const TSize &, CGraphicsContext::TBrushStyle, TRgb, TBool, const CArrayFix< TPoint > * )

IMPORT_C voidAddPolyLine(CGraphicsContext::TPenStyleaPenStyle,
TRgbaPenColor,
const TSize &aPenSize,
CGraphicsContext::TBrushStyleaBrushStyle,
TRgbaBrushColor,
TBoolaClosed,
const CArrayFix< TPoint > *aPointList
)

Adds a polyline to the hand.

Parameters
aPenStyleThe pen style
aPenColorThe pen colour
aPenSizeThe pen size
aBrushStyleThe brush style
aBrushColorThe brush colour
aClosedTrue if the polyline forms a closed shape, else false
aPointListAn array of points for the polyline. The class does not delete aPointList.

NumFeatures ( )

TInt NumFeatures()const [inline]

Gets the number of features added to the hand.