Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <CLOCK.H>
Link against: clock.lib

Class TAnalogDisplayHand

class TAnalogDisplayHand : public TDisplayAddition;

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.

Derivation

Members

Defined in TAnalogDisplayHand:

See also:


Construction and destruction


TAnalogDisplayHand(TAnalogDisplayHandType)

IMPORT_C TAnalogDisplayHand(TAnalogDisplayHandType aType);

Description

Constructs a hand for an analogue clock.

Parameters

TAnalogDisplayHandType aType

Type of hand

[Top]


Member functions


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

IMPORT_C void AddLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize &aPenSize, 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


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

IMPORT_C void AddPolyLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize &aPenSize, CGraphicsContext::TBrushStyle aBrushStyle, TRgb aBrushColor, 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.


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

IMPORT_C 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


NumFeatures()const

inline TInt NumFeatures() const;

Description

Gets the number of features added to the hand.

Return value

TInt