#include <mw/clock.h>
Link against: clock.lib
class RAnalogClock : public RClock |
Public Member Functions | |
---|---|
RAnalogClock(RAnimDll &, const RWindowBase &) | |
IMPORT_C void | AddHandL(const TAnalogDisplayHand &) |
IMPORT_C void | ConstructL(TTimeIntervalSeconds, const TPoint &, const TSize &, const TMargins &, const STimeDeviceShadow &, TInt, TInt, TInt, const SAnalogDisplayAmPm *) |
IMPORT_C void | SetBackgroundColor(TRgb, TRgb) |
IMPORT_C void | SetBrushColor(const TRgb) |
IMPORT_C void | SetPenColor(const TRgb) |
IMPORT_C void | SetTextColor(TRgb) |
IMPORT_C | RAnalogClock | ( | 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 | AddHandL | ( | const TAnalogDisplayHand & | aHand | ) |
Adds a hand to the clock.
This function can only be called after full construction of the clock.
Parameters | |
---|---|
aHand | Settings for the hand. |
IMPORT_C void | ConstructL | ( | TTimeIntervalSeconds | aUniversalTimeOffset, |
const TPoint & | aPosition, | |||
const TSize & | aSize, | |||
const TMargins & | aMargins, | |||
const STimeDeviceShadow & | aShadow, | |||
TInt | aFaceHandle, | |||
TInt | aFaceMaskHandle, | |||
TInt | aNumHands, | |||
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 | |
---|---|
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 |
aFaceHandle | Handle to a bitmap of the clock face. You can obtain a bitmap handle through CFbsBitmap::Handle(). |
aFaceMaskHandle | Handle to a bitmap mask for the clock face. This can be 0, if no mask is required. |
aNumHands | Number of hands on the clock. For each hand, you must call AddHandL(). |
aAmPm | Options for displaying AM/PM |
IMPORT_C void | SetBrushColor | ( | const TRgb | aBrushColor | ) |
Sets the brush colour for the hands.
This function can only be called after full construction of the clock.
Parameters | |
---|---|
aBrushColor | Brush colour. |
IMPORT_C void | SetPenColor | ( | const TRgb | aPenColor | ) |
Sets the pen colour for the hands.
This function can only be called after full construction of the clock.
Parameters | |
---|---|
aPenColor | Pen colour. |
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. |