|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * This file contains declarations for resources of EikClock. |
|
16 * The file can be included only in resource file. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef EIKCLOCK_RH |
|
23 #define EIKCLOCK_RH |
|
24 |
|
25 #include "EikClockCtrl.hrh" |
|
26 |
|
27 // STRUCTURE DEFINITIONS |
|
28 |
|
29 // ------------------------------------------------------------ |
|
30 // CLOCK |
|
31 // Clock for Series 60 |
|
32 // ------------------------------------------------------------ |
|
33 // |
|
34 STRUCT CLOCK |
|
35 { |
|
36 BYTE type = EEikLocaleConformantClockTypeChangesFormatAccordingToLocale; |
|
37 BYTE typeneverchanges = 0; |
|
38 LLINK digitalresourceid = 0; // DIGITAL_CLOCK |
|
39 LLINK analogresourceid = 0; // ANALOG_CLOCK_FACE |
|
40 LLINK ampmresourceid = 0; // AMPM_CLOCK |
|
41 } |
|
42 |
|
43 // ------------------------------------------------------------ |
|
44 // DIGITAL_CLOCK |
|
45 // Special digital clock for Series 60. |
|
46 // ------------------------------------------------------------ |
|
47 // |
|
48 STRUCT DIGITAL_CLOCK |
|
49 { |
|
50 WORD offsetfromuniversaltime = 0; |
|
51 BYTE backgroundcolor; |
|
52 BYTE withshadow = 0; // 1:in Phone idle, 0:in Clock |
|
53 BYTE withampm = 0; // 1:with AmPm, 0:not |
|
54 LEN BYTE STRUCT textsections[2]; // DIGITAL_CLOCK_TEXT_SECTION |
|
55 STRUCT shadowimages; // DIGITAL_SHADOW_IMAGES |
|
56 STRUCT ampm; // AMPM_CLOCK when withampm = 1. |
|
57 } |
|
58 |
|
59 // ------------------------------------------------------------ |
|
60 // DIGITAL_CLOCK_TEXT_SECTION |
|
61 // Digital clock text setting. |
|
62 // ------------------------------------------------------------ |
|
63 // |
|
64 STRUCT DIGITAL_CLOCK_TEXT_SECTION |
|
65 { |
|
66 STRUCT font; // FONT |
|
67 BYTE textcolor; |
|
68 BYTE leftmargin12 = 0; |
|
69 BYTE rightmargin12 = 0; |
|
70 BYTE leftmargin24 = 0; |
|
71 BYTE rightmargin24 = 0; |
|
72 BYTE baseline; |
|
73 BYTE justification = EEikResourceConstructedClockTextJustificationLeft; |
|
74 } |
|
75 |
|
76 // ------------------------------------------------------------ |
|
77 // DIGITAL_SHADOW_IMAGES |
|
78 // Array of digital shadow images. |
|
79 // ------------------------------------------------------------ |
|
80 // |
|
81 STRUCT DIGITAL_SHADOW_IMAGES |
|
82 { |
|
83 LTEXT filecontainingimage; // full path |
|
84 LEN BYTE LONG images[]; // image Id |
|
85 LEN BYTE STRUCT rects[]; // RECT |
|
86 } |
|
87 |
|
88 // ------------------------------------------------------------ |
|
89 // AMPM_CLOCK |
|
90 // Special am/pm clock for Series 60. |
|
91 // Show am/pm text. |
|
92 // ------------------------------------------------------------ |
|
93 // |
|
94 STRUCT AMPM_CLOCK |
|
95 { |
|
96 WORD offsetfromuniversaltime=0; |
|
97 STRUCT font; // FONT |
|
98 BYTE textcolor; |
|
99 BYTE leftmargin = 0; |
|
100 BYTE rightmargin = 0; |
|
101 BYTE baseline; |
|
102 BYTE justification = EEikResourceConstructedClockTextJustificationLeft; |
|
103 } |
|
104 |
|
105 // ------------------------------------------------------------ |
|
106 // ANALOG_CLOCK_FACE |
|
107 // Special analog clock for Series 60. |
|
108 // ------------------------------------------------------------ |
|
109 // |
|
110 STRUCT ANALOG_CLOCK_FACE |
|
111 { |
|
112 WORD offsetfromuniversaltime=0; |
|
113 BYTE withdate=0; // for Series 60 |
|
114 LTEXT filecontainingface; // multi-bitmap file |
|
115 LONG faceid; // a value defined in a *.MBG file |
|
116 LONG centerpointid; // By H.Domon,K3 19 Jun 2001 |
|
117 STRUCT centeroffset; // POINT offset from left-top point of face |
|
118 LEN BYTE STRUCT hands[]; // ANALOG_CLOCK_HANDs |
|
119 STRUCT date; // ANALOG_CLOCK_DATE |
|
120 } |
|
121 |
|
122 // ------------------------------------------------------------ |
|
123 // ANALOG_CLOCK_DATE |
|
124 // Data for date region |
|
125 // ------------------------------------------------------------ |
|
126 // |
|
127 STRUCT ANALOG_CLOCK_DATE |
|
128 { |
|
129 STRUCT font; // FONT |
|
130 BYTE textcolor; |
|
131 BYTE leftmargin = 0; |
|
132 BYTE rightmargin = 0; |
|
133 BYTE baseline; |
|
134 BYTE justification = EEikResourceConstructedClockTextJustificationLeft; |
|
135 } |
|
136 |
|
137 // ------------------------------------------------------------ |
|
138 // RECT |
|
139 // |
|
140 // ------------------------------------------------------------ |
|
141 // |
|
142 STRUCT RECT |
|
143 { |
|
144 STRUCT position; // POINT |
|
145 STRUCT size; // SIZE |
|
146 } |
|
147 |
|
148 // ------------------------------------------------------------ |
|
149 // SIZE |
|
150 // Data for size |
|
151 // ------------------------------------------------------------ |
|
152 // |
|
153 STRUCT SIZE |
|
154 { |
|
155 WORD w; |
|
156 WORD h; |
|
157 } |
|
158 |
|
159 // ------------------------------------------------------------ |
|
160 // ANALOG_CLOCK_HAND |
|
161 // |
|
162 // ------------------------------------------------------------ |
|
163 // |
|
164 STRUCT ANALOG_CLOCK_HAND |
|
165 { |
|
166 BYTE type; // one of the EEikResourceConstructedClockAnalogDisplayHandOneRevPerXxxxxs |
|
167 STRUCT featureline; // ANALOG_CLOCK_HAND_FEATURE_LINEs |
|
168 } |
|
169 |
|
170 #endif // EIKCLOCK_RH |
|
171 |
|
172 // End of file |