RAnalogClock Class Reference

#include <mw/clock.h>

Link against: clock.lib

class RAnalogClock : public RClock

Inherits from

Public Member Functions
RAnalogClock(RAnimDll &, const RWindowBase &)
IMPORT_C voidAddHandL(const TAnalogDisplayHand &)
IMPORT_C voidConstructL(TTimeIntervalSeconds, const TPoint &, const TSize &, const TMargins &, const STimeDeviceShadow &, TInt, TInt, TInt, const SAnalogDisplayAmPm *)
IMPORT_C voidSetBackgroundColor(TRgb, TRgb)
IMPORT_C voidSetBrushColor(const TRgb)
IMPORT_C voidSetPenColor(const TRgb)
IMPORT_C voidSetTextColor(TRgb)
Inherited Functions
RAnim::AsyncCommandReply(TRequestStatus &,TInt,const TIpcArgs &)
RAnim::Command(TInt)
RAnim::Command(TInt,const TPtrC8 &)
RAnim::CommandReply(TInt)
RAnim::CommandReply(TInt,const TDesC8 &,const TIpcArgs &)
RAnim::CommandReply(TInt,const TPtrC8 &)
RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &)
RAnim::Construct(const RWindowBase &,TInt,const TDesC8 &,const TIpcArgs &)
RAnim::Construct(const RWsSprite &,TInt,const TDesC8 &)
RAnim::Construct(const RWsSprite &,TInt,const TDesC8 &,const TIpcArgs &)
RAnim::Destroy()
RAnim::RAnim()
RAnim::RAnim(RAnimDll &)
RAnim::~RAnim()
RAnimWithUtils::AppendToConstructorBufL(const TDesC8 &)
RAnimWithUtils::Close()
RAnimWithUtils::ConstructorBuf()const
RAnimWithUtils::ConstructorBufAlreadySent()const
RAnimWithUtils::ConstructorBufExists()const
RAnimWithUtils::RAnimWithUtils(RAnimDll &,const RWindowBase &)
RAnimWithUtils::SendConstructorBufIfCompleteL(TInt)
RAnimWithUtils::SendConstructorBufL(TInt)
RAnimWithUtils::SetNumAdditionsStillExpected(TInt)
RClock::AppendClockConstructorArgsL(TTimeIntervalSeconds)
RClock::RClock(RAnimDll &,const RWindowBase &)
RClock::SetUniversalTimeOffset(TTimeIntervalSeconds)
RTimeDevice::AppendAnalogDisplayConstructorArgsL(const TPoint &,const TSize &,const TMargins &,const STimeDeviceShadow &,TInt,TInt,TInt,const SAnalogDisplayAmPm *)
RTimeDevice::AppendDigitalDisplayConstructorArgsL(const TPoint &,const TSize &,const TMargins &,const STimeDeviceShadow &,TRgb,TInt)
RTimeDevice::AppendDisplayTypeL(TDisplayType)
RTimeDevice::Draw()
RTimeDevice::RTimeDevice(RAnimDll &,const RWindowBase &)
RTimeDevice::SetPosition(const TPoint &)
RTimeDevice::SetPositionAndSize(const TPoint &,const TSize &)
RTimeDevice::SetSize(const TSize &)
RTimeDevice::SetVisible(TBool)
RTimeDevice::UpdateDisplay()

Detailed Description

An analogue clock.

See also: CFbsBitmap::Handle()

Constructor & Destructor Documentation

RAnalogClock ( RAnimDll &, const RWindowBase & )

IMPORT_CRAnalogClock(RAnimDll &aAnimDll,
const RWindowBase &aWindow
)

Creates an analogue clock object.

To complete construction, you must call ConstructL().

Parameters
aAnimDllThis RAnimDll must have been loaded with the server-side clock animation DLL, clocka.dll
aWindowWindow to which to add the clock

Member Function Documentation

AddHandL ( const TAnalogDisplayHand & )

IMPORT_C voidAddHandL(const TAnalogDisplayHand &aHand)

Adds a hand to the clock.

This function can only be called after full construction of the clock.

Parameters
aHandSettings for the hand.

ConstructL ( TTimeIntervalSeconds, const TPoint &, const TSize &, const TMargins &, const STimeDeviceShadow &, TInt, TInt, TInt, const SAnalogDisplayAmPm * )

IMPORT_C voidConstructL(TTimeIntervalSecondsaUniversalTimeOffset,
const TPoint &aPosition,
const TSize &aSize,
const TMargins &aMargins,
const STimeDeviceShadow &aShadow,
TIntaFaceHandle,
TIntaFaceMaskHandle,
TIntaNumHands,
const SAnalogDisplayAmPm *aAmPm = NULL
)

Completes construction of an analogue clock.

The bitmaps specified in aFaceHandle and aFaceMaskHandle cannot be destroyed until the clock has been completely constructed, including all necessary calls to RAnalogClock::AddHandL().

See also: CFbsBitmap::Handle()

Parameters
aUniversalTimeOffsetInitial time for the clock, expressed as an offset from universal time
aPositionClock's on-screen position
aSizeClock's on-screen size
aMarginsMargin settings
aShadowShadow settings
aFaceHandleHandle to a bitmap of the clock face. You can obtain a bitmap handle through CFbsBitmap::Handle().
aFaceMaskHandleHandle to a bitmap mask for the clock face. This can be 0, if no mask is required.
aNumHandsNumber of hands on the clock. For each hand, you must call AddHandL().
aAmPmOptions for displaying AM/PM

SetBackgroundColor ( TRgb, TRgb )

IMPORT_C voidSetBackgroundColor(TRgbaBackgroundColor,
TRgbaShadowColor
)

Sets the background colour for the clock.

This function can only be called after full construction of the clock.

Parameters
aBackgroundColorBackground colour.
aShadowColorShadow colour.

SetBrushColor ( const TRgb )

IMPORT_C voidSetBrushColor(const TRgbaBrushColor)

Sets the brush colour for the hands.

This function can only be called after full construction of the clock.

Parameters
aBrushColorBrush colour.

SetPenColor ( const TRgb )

IMPORT_C voidSetPenColor(const TRgbaPenColor)

Sets the pen colour for the hands.

This function can only be called after full construction of the clock.

Parameters
aPenColorPen colour.

SetTextColor ( TRgb )

IMPORT_C voidSetTextColor(TRgbaTextColor)

Sets the text colour.

This function can only be called after full construction of the clock.

Parameters
aTextColorText colour.