williamr@2
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#if !defined(__CLOCK_H__)
|
williamr@2
|
17 |
#define __CLOCK_H__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#if !defined(__E32STD_H__)
|
williamr@2
|
20 |
#include <e32std.h>
|
williamr@2
|
21 |
#endif
|
williamr@2
|
22 |
|
williamr@2
|
23 |
#if !defined(__E32BASE_H__)
|
williamr@2
|
24 |
#include <e32base.h>
|
williamr@2
|
25 |
#endif
|
williamr@2
|
26 |
|
williamr@2
|
27 |
#if !defined(__W32STD_H__)
|
williamr@2
|
28 |
#include <w32std.h>
|
williamr@2
|
29 |
#endif
|
williamr@2
|
30 |
|
williamr@2
|
31 |
//
|
williamr@2
|
32 |
// miscellaneous typedefs
|
williamr@2
|
33 |
//
|
williamr@2
|
34 |
/** @internalComponent */
|
williamr@2
|
35 |
typedef TBuf8<1024> TConstructorBuf8; // implementation class
|
williamr@2
|
36 |
|
williamr@2
|
37 |
//
|
williamr@2
|
38 |
// miscellaneous enums
|
williamr@2
|
39 |
//
|
williamr@2
|
40 |
|
williamr@2
|
41 |
/** @internalComponent */
|
williamr@2
|
42 |
enum TDisplayType // implementation class
|
williamr@2
|
43 |
{
|
williamr@2
|
44 |
EDisplayDigital,
|
williamr@2
|
45 |
EDisplayAnalog
|
williamr@2
|
46 |
};
|
williamr@2
|
47 |
|
williamr@2
|
48 |
/** @internalComponent */
|
williamr@2
|
49 |
enum TAnalogDisplayHandFeatureType // implementation class
|
williamr@2
|
50 |
{
|
williamr@2
|
51 |
EAnalogDisplayHandFeatureLine,
|
williamr@2
|
52 |
EAnalogDisplayHandFeaturePolyLine,
|
williamr@2
|
53 |
EAnalogDisplayHandFeatureCircle
|
williamr@2
|
54 |
};
|
williamr@2
|
55 |
|
williamr@2
|
56 |
/** Horizontal alignment options for text in a digital clock's display.
|
williamr@2
|
57 |
|
williamr@2
|
58 |
@see TDigitalDisplayTextSection
|
williamr@2
|
59 |
@publishedAll
|
williamr@2
|
60 |
@released */
|
williamr@2
|
61 |
enum TDigitalDisplayHorizontalTextAlignment
|
williamr@2
|
62 |
{
|
williamr@2
|
63 |
/** Left align text. */
|
williamr@2
|
64 |
EDigitalDisplayHorizontalTextAlignmentLeft,
|
williamr@2
|
65 |
/** Centre align text. */
|
williamr@2
|
66 |
EDigitalDisplayHorizontalTextAlignmentCenter,
|
williamr@2
|
67 |
/** Right align text. */
|
williamr@2
|
68 |
EDigitalDisplayHorizontalTextAlignmentRight
|
williamr@2
|
69 |
};
|
williamr@2
|
70 |
|
williamr@2
|
71 |
/** Vertical alignment options for text in a digital clock's display.
|
williamr@2
|
72 |
|
williamr@2
|
73 |
@see TDigitalDisplayTextSection
|
williamr@2
|
74 |
@publishedAll
|
williamr@2
|
75 |
@released */
|
williamr@2
|
76 |
enum TDigitalDisplayVerticalTextAlignment
|
williamr@2
|
77 |
{
|
williamr@2
|
78 |
/** Top align text. */
|
williamr@2
|
79 |
EDigitalDisplayVerticalTextAlignmentTop,
|
williamr@2
|
80 |
/** Centre align text, including the character descent. */
|
williamr@2
|
81 |
EDigitalDisplayVerticalTextAlignmentCenterInclDescent,
|
williamr@2
|
82 |
/** Centre align text, excluding the character descent. */
|
williamr@2
|
83 |
EDigitalDisplayVerticalTextAlignmentCenterExclDescent,
|
williamr@2
|
84 |
/** Bottom align text, including the character descent. */
|
williamr@2
|
85 |
EDigitalDisplayVerticalTextAlignmentBottomInclDescent,
|
williamr@2
|
86 |
/** Bottom align text, excluding the character descent. */
|
williamr@2
|
87 |
EDigitalDisplayVerticalTextAlignmentBottomExclDescent
|
williamr@2
|
88 |
};
|
williamr@2
|
89 |
|
williamr@2
|
90 |
/** Special characters that can be used in a digital clock display.
|
williamr@2
|
91 |
|
williamr@2
|
92 |
@see TDigitalDisplayTextSection
|
williamr@2
|
93 |
@publishedAll
|
williamr@2
|
94 |
@released */
|
williamr@2
|
95 |
enum TDigitalDisplayLayoutChar
|
williamr@2
|
96 |
{
|
williamr@2
|
97 |
/** A flashing block to delimit different sections of the display.
|
williamr@2
|
98 |
*/
|
williamr@2
|
99 |
/** A flashing block to delimit different sections of the display. */
|
williamr@2
|
100 |
EDigitalDisplayLayoutCharFlashingBlockDelimiter=1
|
williamr@2
|
101 |
};
|
williamr@2
|
102 |
|
williamr@2
|
103 |
//
|
williamr@2
|
104 |
/** Different types of hand for an analogue clock.
|
williamr@2
|
105 |
|
williamr@2
|
106 |
@publishedAll
|
williamr@2
|
107 |
@released */
|
williamr@2
|
108 |
enum TAnalogDisplayHandType
|
williamr@2
|
109 |
{
|
williamr@2
|
110 |
/** A hand that performs one revolution every 12 hours. */
|
williamr@2
|
111 |
EAnalogDisplayHandOneRevPer12Hours,
|
williamr@2
|
112 |
/** A hand that performs one revolution every hour. */
|
williamr@2
|
113 |
EAnalogDisplayHandOneRevPerHour,
|
williamr@2
|
114 |
/** A hand that performs one revolution every minute. */
|
williamr@2
|
115 |
EAnalogDisplayHandOneRevPerMinute
|
williamr@2
|
116 |
};
|
williamr@2
|
117 |
|
williamr@2
|
118 |
//
|
williamr@2
|
119 |
// miscellaneous structs
|
williamr@2
|
120 |
//
|
williamr@2
|
121 |
|
williamr@2
|
122 |
struct STimeDeviceShadow
|
williamr@2
|
123 |
/** Determines how shadows are added to the clock display.
|
williamr@2
|
124 |
|
williamr@2
|
125 |
@publishedAll
|
williamr@2
|
126 |
@released */
|
williamr@2
|
127 |
{
|
williamr@2
|
128 |
/** True if shadows should be displayed, else false. */
|
williamr@2
|
129 |
TBool iIsOn;
|
williamr@2
|
130 |
/** Colour of the shadows. */
|
williamr@2
|
131 |
TRgb iColor;
|
williamr@2
|
132 |
/** Offset of shadows from foreground. */
|
williamr@2
|
133 |
TPoint iOffset;
|
williamr@2
|
134 |
};
|
williamr@2
|
135 |
|
williamr@2
|
136 |
struct SAnalogDisplayAmPm
|
williamr@2
|
137 |
/** Defines the display parameters of the AM/PM display for an analogue clock.
|
williamr@2
|
138 |
|
williamr@2
|
139 |
@see RAnalogClock
|
williamr@2
|
140 |
@publishedAll
|
williamr@2
|
141 |
@released */
|
williamr@2
|
142 |
{
|
williamr@2
|
143 |
/** Position relative to the clock face. */
|
williamr@2
|
144 |
TPoint iPositionRelativeToFace;
|
williamr@2
|
145 |
/** Size. */
|
williamr@2
|
146 |
TSize iSize;
|
williamr@2
|
147 |
/** Shadow settings. */
|
williamr@2
|
148 |
STimeDeviceShadow iShadow;
|
williamr@2
|
149 |
/** Background colour. */
|
williamr@2
|
150 |
TRgb iBackgroundColor;
|
williamr@2
|
151 |
/** Handle to the font to use. This can be obtained using CFbsFont::Handle().
|
williamr@2
|
152 |
|
williamr@2
|
153 |
@see CFbsFont::Handle() */
|
williamr@2
|
154 |
TInt iFontHandle;
|
williamr@2
|
155 |
/** Colour for text. */
|
williamr@2
|
156 |
TRgb iTextColor;
|
williamr@2
|
157 |
};
|
williamr@2
|
158 |
|
williamr@2
|
159 |
//
|
williamr@2
|
160 |
// display-addition classes
|
williamr@2
|
161 |
//
|
williamr@2
|
162 |
|
williamr@2
|
163 |
|
williamr@2
|
164 |
class TDisplayAddition
|
williamr@2
|
165 |
/** This class is used in the derivation of TAnalogDisplayHand and TDigitalDisplayTextSection.
|
williamr@2
|
166 |
|
williamr@2
|
167 |
@internalComponent */
|
williamr@2
|
168 |
{
|
williamr@2
|
169 |
public:
|
williamr@2
|
170 |
const TDesC8& Buf() const;
|
williamr@2
|
171 |
protected:
|
williamr@2
|
172 |
TConstructorBuf8 iBuf;
|
williamr@2
|
173 |
};
|
williamr@2
|
174 |
|
williamr@2
|
175 |
//
|
williamr@2
|
176 |
|
williamr@2
|
177 |
class TDigitalDisplayTextSection : public TDisplayAddition
|
williamr@2
|
178 |
/** A text section for a digital clock.
|
williamr@2
|
179 |
|
williamr@2
|
180 |
@see RDigitalClock
|
williamr@2
|
181 |
@publishedAll
|
williamr@2
|
182 |
@released */
|
williamr@2
|
183 |
{
|
williamr@2
|
184 |
public:
|
williamr@2
|
185 |
IMPORT_C TDigitalDisplayTextSection(TInt aFontHandle, TRgb aTextColor, TDigitalDisplayHorizontalTextAlignment aHorizontalAlignment,
|
williamr@2
|
186 |
TDigitalDisplayVerticalTextAlignment aVerticalAlignment,
|
williamr@2
|
187 |
TInt aHorizontalMargin, TInt aVerticalMargin, const TDesC& aFormat);
|
williamr@2
|
188 |
// N.B. the font passed in to aFontHandle cannot be destroyed until the
|
williamr@2
|
189 |
// RDigitalClock has been completely constructed, including all necessary
|
williamr@2
|
190 |
// calls to RDigitalClock::AddTextSectionL()
|
williamr@2
|
191 |
};
|
williamr@2
|
192 |
|
williamr@2
|
193 |
//
|
williamr@2
|
194 |
|
williamr@2
|
195 |
class TAnalogDisplayHand : public TDisplayAddition
|
williamr@2
|
196 |
/** A hand for an analogue clock.
|
williamr@2
|
197 |
|
williamr@2
|
198 |
A hand is a vector drawing made from a number of features (lines, circles,
|
williamr@2
|
199 |
polylines). These are specified with the hand assumed to be in the 12 o'clock
|
williamr@2
|
200 |
position, with TPoint(0,0) being the center of the clock.
|
williamr@2
|
201 |
|
williamr@2
|
202 |
@see RAnalogClock
|
williamr@2
|
203 |
@publishedAll
|
williamr@2
|
204 |
@released */
|
williamr@2
|
205 |
{
|
williamr@2
|
206 |
public:
|
williamr@2
|
207 |
IMPORT_C TAnalogDisplayHand(TAnalogDisplayHandType aType);
|
williamr@2
|
208 |
IMPORT_C void AddLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize,
|
williamr@2
|
209 |
const TPoint& aStartPoint, const TPoint& aEndPoint);
|
williamr@2
|
210 |
IMPORT_C void AddPolyLine(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize,
|
williamr@2
|
211 |
CGraphicsContext::TBrushStyle aBrushStyle, TRgb aBrushColor,
|
williamr@2
|
212 |
TBool aClosed, const CArrayFix<TPoint>* aPointList); // aPointList is not destroyed
|
williamr@2
|
213 |
IMPORT_C void AddCircle(CGraphicsContext::TPenStyle aPenStyle, TRgb aPenColor, const TSize& aPenSize,
|
williamr@2
|
214 |
CGraphicsContext::TBrushStyle aBrushStyle, TRgb aBrushColor,
|
williamr@2
|
215 |
const TPoint& aCircleCenter, TInt aRadius);
|
williamr@2
|
216 |
inline TInt NumFeatures() const
|
williamr@2
|
217 |
/** Gets the number of features added to the hand. */
|
williamr@2
|
218 |
{return *iNumFeaturesPtr;}
|
williamr@2
|
219 |
private:
|
williamr@2
|
220 |
void AppendType(TAnalogDisplayHandFeatureType aType);
|
williamr@2
|
221 |
private:
|
williamr@2
|
222 |
TInt* iNumFeaturesPtr;
|
williamr@2
|
223 |
};
|
williamr@2
|
224 |
|
williamr@2
|
225 |
//
|
williamr@2
|
226 |
// utility class
|
williamr@2
|
227 |
//
|
williamr@2
|
228 |
|
williamr@2
|
229 |
class RAnimWithUtils : public RAnim
|
williamr@2
|
230 |
/** Utility class to support clock animation.
|
williamr@2
|
231 |
|
williamr@2
|
232 |
@publishedAll
|
williamr@2
|
233 |
@released
|
williamr@2
|
234 |
*/
|
williamr@2
|
235 |
{
|
williamr@2
|
236 |
protected:
|
williamr@2
|
237 |
RAnimWithUtils(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
238 |
void AppendToConstructorBufL(const TDesC8& aData);
|
williamr@2
|
239 |
void SendConstructorBufIfCompleteL(TInt aAnimatedObjectType);
|
williamr@2
|
240 |
void SendConstructorBufL(TInt aAnimatedObjectType);
|
williamr@2
|
241 |
TBool ConstructorBufExists() const;
|
williamr@2
|
242 |
TBool ConstructorBufAlreadySent() const;
|
williamr@2
|
243 |
TConstructorBuf8& ConstructorBuf() const;
|
williamr@2
|
244 |
void SetNumAdditionsStillExpected(TInt aNumAdditionsStillExpected);
|
williamr@2
|
245 |
public:
|
williamr@2
|
246 |
IMPORT_C virtual void Close();
|
williamr@2
|
247 |
private:
|
williamr@2
|
248 |
TConstructorBuf8* iConstructorBuf; // on the heap as it is only required for construction
|
williamr@2
|
249 |
TBool iConstructorBufAlreadySent;
|
williamr@2
|
250 |
const RWindowBase& iWindow;
|
williamr@2
|
251 |
TInt iNumAdditionsStillExpected;
|
williamr@2
|
252 |
};
|
williamr@2
|
253 |
|
williamr@2
|
254 |
//
|
williamr@2
|
255 |
// time-device abstract classes
|
williamr@2
|
256 |
//
|
williamr@2
|
257 |
|
williamr@2
|
258 |
|
williamr@2
|
259 |
class RTimeDevice : public RAnimWithUtils
|
williamr@2
|
260 |
/** Sets display parameters for clocks.
|
williamr@2
|
261 |
|
williamr@2
|
262 |
@publishedAll
|
williamr@2
|
263 |
@released
|
williamr@2
|
264 |
*/
|
williamr@2
|
265 |
{
|
williamr@2
|
266 |
protected:
|
williamr@2
|
267 |
RTimeDevice(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
268 |
void AppendDisplayTypeL(TDisplayType aType);
|
williamr@2
|
269 |
void AppendDigitalDisplayConstructorArgsL(const TPoint& aPosition, const TSize& aSize, const TMargins& aMargins, const STimeDeviceShadow& aShadow,
|
williamr@2
|
270 |
TRgb aBackgroundColor, TInt aNumTextSections);
|
williamr@2
|
271 |
void AppendAnalogDisplayConstructorArgsL(const TPoint& aPosition, const TSize& aSize, const TMargins& aMargins, const STimeDeviceShadow& aShadow,
|
williamr@2
|
272 |
TInt aFaceHandle, TInt aFaceMaskHandle, TInt aNumHands, const SAnalogDisplayAmPm* aAmPm);
|
williamr@2
|
273 |
public:
|
williamr@2
|
274 |
IMPORT_C void SetVisible(TBool aVisible); // can only be called after full construction - by default clocks are invisible
|
williamr@2
|
275 |
IMPORT_C void SetPositionAndSize(const TPoint& aPosition, const TSize& aSize); // can only be called after full construction
|
williamr@2
|
276 |
IMPORT_C void SetPosition(const TPoint& aPosition); // can only be called after full construction
|
williamr@2
|
277 |
IMPORT_C void SetSize(const TSize& aSize); // can only be called after full construction
|
williamr@2
|
278 |
IMPORT_C void UpdateDisplay(); // can only be called after full construction
|
williamr@2
|
279 |
IMPORT_C void Draw(); // can only be called after full construction
|
williamr@2
|
280 |
};
|
williamr@2
|
281 |
|
williamr@2
|
282 |
//
|
williamr@2
|
283 |
|
williamr@2
|
284 |
class RClock : public RTimeDevice
|
williamr@2
|
285 |
/** Sets the time for clocks.
|
williamr@2
|
286 |
|
williamr@2
|
287 |
@publishedAll
|
williamr@2
|
288 |
@released */
|
williamr@2
|
289 |
{
|
williamr@2
|
290 |
protected:
|
williamr@2
|
291 |
RClock(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
292 |
void AppendClockConstructorArgsL(TTimeIntervalSeconds aUniversalTimeOffset);
|
williamr@2
|
293 |
public:
|
williamr@2
|
294 |
IMPORT_C void SetUniversalTimeOffset(TTimeIntervalSeconds aUniversalTimeOffset); // can only be called after full construction
|
williamr@2
|
295 |
};
|
williamr@2
|
296 |
|
williamr@2
|
297 |
//
|
williamr@2
|
298 |
// time-device concrete classes
|
williamr@2
|
299 |
//
|
williamr@2
|
300 |
|
williamr@2
|
301 |
class RDigitalClock : public RClock
|
williamr@2
|
302 |
/** A digital clock.
|
williamr@2
|
303 |
|
williamr@2
|
304 |
A digital clock is composed of one or more text sections, which define
|
williamr@2
|
305 |
how the time information is displayed.
|
williamr@2
|
306 |
|
williamr@2
|
307 |
@publishedAll
|
williamr@2
|
308 |
@released */
|
williamr@2
|
309 |
{
|
williamr@2
|
310 |
public:
|
williamr@2
|
311 |
IMPORT_C RDigitalClock(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
312 |
IMPORT_C void ConstructL(TTimeIntervalSeconds aUniversalTimeOffset, const TPoint& aPosition, const TSize& aSize, const TMargins& aMargins,
|
williamr@2
|
313 |
const STimeDeviceShadow& aShadow, TRgb aBackgroundColor, TInt aNumTextSections);
|
williamr@2
|
314 |
IMPORT_C void AddTextSectionL(const TDigitalDisplayTextSection& aTextSection);
|
williamr@2
|
315 |
IMPORT_C void SetBackgroundColor(TRgb aBackgroundColor, TRgb aShadowColor); // can only be called after full construction
|
williamr@2
|
316 |
IMPORT_C void SetTextColor(TRgb aTextColor);
|
williamr@2
|
317 |
|
williamr@2
|
318 |
};
|
williamr@2
|
319 |
|
williamr@2
|
320 |
//
|
williamr@2
|
321 |
|
williamr@2
|
322 |
|
williamr@2
|
323 |
class RAnalogClock : public RClock
|
williamr@2
|
324 |
/** An analogue clock.
|
williamr@2
|
325 |
|
williamr@2
|
326 |
@see CFbsBitmap::Handle()
|
williamr@2
|
327 |
@publishedAll
|
williamr@2
|
328 |
@released */
|
williamr@2
|
329 |
|
williamr@2
|
330 |
{
|
williamr@2
|
331 |
public:
|
williamr@2
|
332 |
IMPORT_C RAnalogClock(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
333 |
IMPORT_C void ConstructL(TTimeIntervalSeconds aUniversalTimeOffset, const TPoint& aPosition, const TSize& aSize, const TMargins& aMargins,
|
williamr@2
|
334 |
const STimeDeviceShadow& aShadow, TInt aFaceHandle, TInt aFaceMaskHandle, TInt aNumHands, const SAnalogDisplayAmPm* aAmPm=NULL);
|
williamr@2
|
335 |
// N.B. the bitmap(s) passed in to aFaceHandle and aFaceMaskHandle in these
|
williamr@2
|
336 |
// ConstructL functions cannot be destroyed until the RAnalogClock has been
|
williamr@2
|
337 |
// completely constructed, including all necessary calls to
|
williamr@2
|
338 |
// RAnalogClock::AddHandL() - aFaceMaskHandle may be 0
|
williamr@2
|
339 |
IMPORT_C void AddHandL(const TAnalogDisplayHand& aHand);
|
williamr@2
|
340 |
IMPORT_C void SetBackgroundColor(TRgb aBackgroundColor, TRgb aShadowColor); // can only be called after full construction
|
williamr@2
|
341 |
IMPORT_C void SetTextColor(TRgb aTextColor);
|
williamr@2
|
342 |
IMPORT_C void SetPenColor(const TRgb aPenColor);
|
williamr@2
|
343 |
IMPORT_C void SetBrushColor(const TRgb aBrushColor);
|
williamr@2
|
344 |
};
|
williamr@2
|
345 |
|
williamr@2
|
346 |
//
|
williamr@2
|
347 |
// message-window class
|
williamr@2
|
348 |
//
|
williamr@2
|
349 |
|
williamr@2
|
350 |
|
williamr@2
|
351 |
class RMessageWindow : public RAnimWithUtils
|
williamr@2
|
352 |
/** A configurable window that appears for a brief time to display a message to
|
williamr@2
|
353 |
the user and then disappears.
|
williamr@2
|
354 |
|
williamr@2
|
355 |
This is the basic class that is used by classes such as CEikonEnv and CEikMsgWin
|
williamr@2
|
356 |
to provide information and message windows. Such higher-level classes would
|
williamr@2
|
357 |
normally be used by client applications rather than RMessageWindow. This class
|
williamr@2
|
358 |
can be used though to implement specialist new classes.
|
williamr@2
|
359 |
|
williamr@2
|
360 |
Note that this class is in the same library as the Clock API for implementation
|
williamr@2
|
361 |
reasons only.
|
williamr@2
|
362 |
|
williamr@2
|
363 |
@see CEikMsgWin
|
williamr@2
|
364 |
@see CEikonEnv
|
williamr@2
|
365 |
@publishedAll
|
williamr@2
|
366 |
@released */
|
williamr@2
|
367 |
{
|
williamr@2
|
368 |
public:
|
williamr@2
|
369 |
/** Defines the maximum length of text in the message. */
|
williamr@2
|
370 |
enum
|
williamr@2
|
371 |
{
|
williamr@2
|
372 |
/** Maximum length of text in the message. */
|
williamr@2
|
373 |
EMaxTextLength=80
|
williamr@2
|
374 |
};
|
williamr@2
|
375 |
public:
|
williamr@2
|
376 |
IMPORT_C RMessageWindow(RAnimDll& aAnimDll, const RWindowBase& aWindow);
|
williamr@2
|
377 |
IMPORT_C void ConstructL(TInt aBaselineOffset, TInt aFontHandle, TRgb aBackgroundColor, TRgb aTextColor);
|
williamr@2
|
378 |
IMPORT_C void ConstructL(TInt aBaselineOffset, TInt aFontHandle, TRgb aBackgroundColor, TRgb aTextColor, TRgb aBorderColor);
|
williamr@2
|
379 |
IMPORT_C void StartDisplay(TBool aFlash, TTimeIntervalMicroSeconds32 aInitialDelay, const TDesC& aText);
|
williamr@2
|
380 |
IMPORT_C void StartDisplay(TBool aFlash, TTimeIntervalMicroSeconds32 aInitialDelay, TTimeIntervalMicroSeconds32 aDuration, const TDesC& aText);
|
williamr@2
|
381 |
IMPORT_C void CancelDisplay();
|
williamr@2
|
382 |
IMPORT_C void GetBorders(TMargins& aBorders);
|
williamr@2
|
383 |
IMPORT_C void SetBackgroundColor(TRgb aBackgroundColor);
|
williamr@2
|
384 |
IMPORT_C void SetTextColor(TRgb aTextColor);
|
williamr@2
|
385 |
IMPORT_C void SetBorderColor(TRgb aBorderColor);
|
williamr@2
|
386 |
IMPORT_C void SetPlinthColors(TRgb aTl,TRgb aBr);
|
williamr@2
|
387 |
};
|
williamr@2
|
388 |
|
williamr@2
|
389 |
#endif
|