#include <mw/clock.h>
Link against: clock.lib
| class RDigitalClock : public RClock |
| Public Member Functions | |
|---|---|
| RDigitalClock(RAnimDll &, const RWindowBase &) | |
| IMPORT_C void | AddTextSectionL(const TDigitalDisplayTextSection &) |
| IMPORT_C void | ConstructL(TTimeIntervalSeconds, const TPoint &, const TSize &, const TMargins &, const STimeDeviceShadow &, TRgb, TInt) |
| IMPORT_C void | SetBackgroundColor(TRgb, TRgb) |
| IMPORT_C void | SetTextColor(TRgb) |
A digital clock.
A digital clock is composed of one or more text sections, which define how the time information is displayed.
| IMPORT_C | RDigitalClock | ( | RAnimDll & | aAnimDll, |
| const RWindowBase & | aWindow | |||
| ) | ||||
| Parameters | |
|---|---|
| aAnimDll | This RAnimDll must have been loaded with the server-side clock animation DLL, clocka.dll |
| aWindow | Window to which to add the clock |
| IMPORT_C void | AddTextSectionL | ( | const TDigitalDisplayTextSection & | aTextSection | ) |
Adds a text section to the clock.
This function can only be called after full construction of the clock.
| Parameters | |
|---|---|
| aTextSection | Describes text section to add |
| IMPORT_C void | ConstructL | ( | TTimeIntervalSeconds | aUniversalTimeOffset, |
| const TPoint & | aPosition, | |||
| const TSize & | aSize, | |||
| const TMargins & | aMargins, | |||
| const STimeDeviceShadow & | aShadow, | |||
| TRgb | aBackgroundColor, | |||
| TInt | aNumTextSections | |||
| ) | ||||
Completes construction of a digital clock.
| Parameters | |
|---|---|
| aUniversalTimeOffset | Initial time for the clock, expressed as an offset from universal time |
| aPosition | Clock's on-screen position |
| aSize | Clock's on-screen size |
| aMargins | Margin settings |
| aShadow | Shadow settings |
| aBackgroundColor | Background color |
| aNumTextSections | Number of text sections |
| IMPORT_C void | SetTextColor | ( | TRgb | aTextColor | ) |
Sets the text colour.
This function can only be called after full construction of the clock.
| Parameters | |
|---|---|
| aTextColor | Text colour |