Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: clock.h
Link against: clock.lib

Class TAnalogDisplayHand

TAnalogDisplayHand

Support

Supported from 5.0

Description

A hand for an analogue clock (RAnalogClock).

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.

Derivation

TAnalogDisplayHandA hand for an analogue clock (RAnalogClock)
TDisplayAdditionThis class is used in the derivation of TAnalogDisplayHand and TDigitalDisplayTextSection

Defined in TAnalogDisplayHand:
AddCircle(), AddLine(), AddPolyLine(), NumFeatures(), TAnalogDisplayHand()

See also:


TAnalogDisplayHand()

TAnalogDisplayHand(TAnalogDisplayHandType aType);

Description

Constructs a hand for an analogue clock.

Parameters

TAnalogDisplayHandType aType

Type of hand

[Top]


AddCircle()

void AddCircle(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize, CGraphicsContext::TBrushStyle aBrushStyle, TRgb aBrushColor, const TPoint& aCircleCenter, TInt aRadius);

Description

Adds a circle to the hand.

Parameters

CGraphicsContext::TPenStyle aPenStyle

The pen style

TRgb aPenColor

The pen colour

const TSize& aPenSize

The pen size

CGraphicsContext::TBrushStyle aBrushStyle

The brush style

TRgb aBrushColor

The brush colour

const TPoint& aCircleCenter

The centre of the circle

TInt aRadius

The radius of the circle

[Top]


AddLine()

void AddLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize, 144 const TPoint& aStartPoint, const TPoint& aEndPoint);

Description

Adds a line to the hand.

Parameters

CGraphicsContext::TPenStyle aPenStyle

The pen style

TRgb aPenColor

The pen colour

const TSize& aPenSize

The pen size

const TPoint& aStartPoint

The start point for the line

const TPoint& aEndPoint

The end point for the line

[Top]


AddPolyLine()

void AddPolyLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize, 146 CGraphicsContext::TBrushStyle aBrushStyle, TRgb aBrushColor, 147 TBool aClosed, const CArrayFix<TPoint>* aPointList);

Description

Adds a polyline to the hand.

Parameters

CGraphicsContext::TPenStyle aPenStyle

The pen style

TRgb aPenColor

The pen colour

const TSize& aPenSize

The pen size

CGraphicsContext::TBrushStyle aBrushStyle

The brush style

TRgb aBrushColor

The brush colour

TBool aClosed

True if the polyline forms a closed shape, else false

const CArrayFix<TPoint>* aPointList

An array of points for the polyline. The class does not delete aPointList.

[Top]


NumFeatures()

TInt NumFeatures() const;

Description

Gets the number of features added to the hand.