RDigitalClock Class Reference

#include <mw/clock.h>

Link against: clock.lib

class RDigitalClock : public RClock

Inherits from

Public Member Functions
RDigitalClock(RAnimDll &, const RWindowBase &)
IMPORT_C voidAddTextSectionL(const TDigitalDisplayTextSection &)
IMPORT_C voidConstructL(TTimeIntervalSeconds, const TPoint &, const TSize &, const TMargins &, const STimeDeviceShadow &, TRgb, TInt)
IMPORT_C voidSetBackgroundColor(TRgb, 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

A digital clock.

A digital clock is composed of one or more text sections, which define how the time information is displayed.

Constructor & Destructor Documentation

RDigitalClock ( RAnimDll &, const RWindowBase & )

IMPORT_CRDigitalClock(RAnimDll &aAnimDll,
const RWindowBase &aWindow
)

Creates a digital 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

AddTextSectionL ( const TDigitalDisplayTextSection & )

IMPORT_C voidAddTextSectionL(const TDigitalDisplayTextSection &aTextSection)

Adds a text section to the clock.

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

Parameters
aTextSectionDescribes text section to add

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

IMPORT_C voidConstructL(TTimeIntervalSecondsaUniversalTimeOffset,
const TPoint &aPosition,
const TSize &aSize,
const TMargins &aMargins,
const STimeDeviceShadow &aShadow,
TRgbaBackgroundColor,
TIntaNumTextSections
)

Completes construction of a digital clock.

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
aBackgroundColorBackground color
aNumTextSectionsNumber of text sections

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

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