#include <mw/clock.h>
Link against: clock.lib
class TAnalogDisplayHand : public TDisplayAddition |
Public Member Functions | |
---|---|
TAnalogDisplayHand(TAnalogDisplayHandType) | |
IMPORT_C void | AddCircle(CGraphicsContext::TPenStyle, TRgb, const TSize &, CGraphicsContext::TBrushStyle, TRgb, const TPoint &, TInt) |
IMPORT_C void | AddLine(CGraphicsContext::TPenStyle, TRgb, const TSize &, const TPoint &, const TPoint &) |
IMPORT_C void | AddPolyLine(CGraphicsContext::TPenStyle, TRgb, const TSize &, CGraphicsContext::TBrushStyle, TRgb, TBool, const CArrayFix< TPoint > *) |
TInt | NumFeatures() |
Inherited Attributes | |
---|---|
TDisplayAddition::iBuf |
Inherited Functions | |
---|---|
TDisplayAddition::Buf()const |
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
IMPORT_C | TAnalogDisplayHand | ( | TAnalogDisplayHandType | aType | ) |
Constructs a hand for an analogue clock.
Parameters | |
---|---|
aType | Type of hand |
IMPORT_C void | AddCircle | ( | CGraphicsContext::TPenStyle | aPenStyle, |
TRgb | aPenColor, | |||
const TSize & | aPenSize, | |||
CGraphicsContext::TBrushStyle | aBrushStyle, | |||
TRgb | aBrushColor, | |||
const TPoint & | aCircleCenter, | |||
TInt | aRadius | |||
) |
Adds a circle to the hand.
Parameters | |
---|---|
aPenStyle | The pen style |
aPenColor | The pen colour |
aPenSize | The pen size |
aBrushStyle | The brush style |
aBrushColor | The brush colour |
aCircleCenter | The centre of the circle |
aRadius | The radius of the circle |
IMPORT_C void | AddLine | ( | CGraphicsContext::TPenStyle | aPenStyle, |
TRgb | aPenColor, | |||
const TSize & | aPenSize, | |||
const TPoint & | aStartPoint, | |||
const TPoint & | aEndPoint | |||
) |
Adds a line to the hand.
Parameters | |
---|---|
aPenStyle | The pen style |
aPenColor | The pen colour |
aPenSize | The pen size |
aStartPoint | The start point for the line |
aEndPoint | The end point for the line |
IMPORT_C void | AddPolyLine | ( | CGraphicsContext::TPenStyle | aPenStyle, |
TRgb | aPenColor, | |||
const TSize & | aPenSize, | |||
CGraphicsContext::TBrushStyle | aBrushStyle, | |||
TRgb | aBrushColor, | |||
TBool | aClosed, | |||
const CArrayFix< TPoint > * | aPointList | |||
) |
Adds a polyline to the hand.
Parameters | |
---|---|
aPenStyle | The pen style |
aPenColor | The pen colour |
aPenSize | The pen size |
aBrushStyle | The brush style |
aBrushColor | The brush colour |
aClosed | True if the polyline forms a closed shape, else false |
aPointList | An array of points for the polyline. The class does not delete aPointList. |