add a custom rule for building librbspeex prior to building rbutil.
[Rockbox.git] / uisimulator / sdl / uisdl.h
blob9be517c99769ea3faa1629ea4ffc9cab5af7e5d7
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Dan Everton
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef __UISDL_H__
21 #define __UISDL_H__
23 #include <stdbool.h>
24 #include "SDL.h"
26 /* colour definitions are R, G, B */
28 #if defined(ARCHOS_RECORDER)
29 #define UI_TITLE "Jukebox Recorder"
30 #define UI_WIDTH 270 /* width of GUI window */
31 #define UI_HEIGHT 406 /* height of GUI window */
32 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
33 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
34 #define UI_LCD_BLACK 0, 0, 0 /* black */
35 #define UI_LCD_POSX 80 /* x position of lcd */
36 #define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
37 #define UI_LCD_WIDTH 112
38 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
40 #elif defined(ARCHOS_PLAYER)
41 #define UI_TITLE "Jukebox Player"
42 #define UI_WIDTH 284 /* width of GUI window */
43 #define UI_HEIGHT 420 /* height of GUI window */
44 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
45 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
46 #define UI_LCD_BLACK 0, 0, 0 /* black */
47 #define UI_LCD_POSX 75 /* x position of lcd */
48 #define UI_LCD_POSY 116 /* y position of lcd */
49 #define UI_LCD_WIDTH 132
50 #define UI_LCD_HEIGHT 64
52 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
53 #define UI_TITLE "Jukebox FM Recorder"
54 #define UI_WIDTH 285 /* width of GUI window */
55 #define UI_HEIGHT 414 /* height of GUI window */
56 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
57 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
58 #define UI_LCD_BLACK 0, 0, 0 /* black */
59 #define UI_LCD_POSX 87 /* x position of lcd */
60 #define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
61 #define UI_LCD_WIDTH 112
62 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
64 #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
65 #define UI_TITLE "Ondio"
66 #define UI_WIDTH 155 /* width of GUI window */
67 #define UI_HEIGHT 334 /* height of GUI window */
68 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
69 #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
70 #define UI_LCD_BLACK 0, 0, 0 /* black */
71 #define UI_LCD_POSX 21 /* x position of lcd */
72 #define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
73 #define UI_LCD_WIDTH 112
74 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
76 #elif defined(IRIVER_H120) || defined(IRIVER_H100)
77 #define UI_TITLE "iriver H1x0"
78 #define UI_WIDTH 379 /* width of GUI window */
79 #define UI_HEIGHT 508 /* height of GUI window */
80 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
81 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
82 #define UI_LCD_BLACK 0, 0, 0 /* black */
83 #define UI_LCD_POSX 109 /* x position of lcd */
84 #define UI_LCD_POSY 23 /* y position of lcd */
85 #define UI_LCD_WIDTH 160
86 #define UI_LCD_HEIGHT 128
87 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
88 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
89 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
90 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
91 #define UI_REMOTE_WIDTH 128
92 #define UI_REMOTE_HEIGHT 64
94 #elif defined(IRIVER_H300)
95 #define UI_TITLE "iriver H300"
96 #define UI_WIDTH 288 /* width of GUI window */
97 #define UI_HEIGHT 581 /* height of GUI window */
98 /* high-colour */
99 #define UI_LCD_POSX 26 /* x position of lcd */
100 #define UI_LCD_POSY 36 /* y position of lcd */
101 #define UI_LCD_WIDTH 220
102 #define UI_LCD_HEIGHT 176
103 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
104 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
105 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
106 #define UI_REMOTE_POSY 478 /* y position of remote lcd */
107 #define UI_REMOTE_WIDTH 128
108 #define UI_REMOTE_HEIGHT 64
110 #elif defined(IPOD_1G2G)
111 #define UI_TITLE "iPod 1G/2G"
112 #define UI_WIDTH 224 /* width of GUI window */
113 #define UI_HEIGHT 382 /* height of GUI window */
114 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
115 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
116 #define UI_LCD_BLACK 0, 0, 0 /* black */
117 #define UI_LCD_POSX 32 /* x position of lcd */
118 #define UI_LCD_POSY 12 /* y position of lcd */
119 #define UI_LCD_WIDTH 160
120 #define UI_LCD_HEIGHT 128
122 #elif defined(IPOD_3G)
123 #define UI_TITLE "iPod 3G"
124 #define UI_WIDTH 218 /* width of GUI window */
125 #define UI_HEIGHT 389 /* height of GUI window */
126 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
127 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
128 #define UI_LCD_BLACK 0, 0, 0 /* black */
129 #define UI_LCD_POSX 29 /* x position of lcd */
130 #define UI_LCD_POSY 16 /* y position of lcd */
131 #define UI_LCD_WIDTH 160
132 #define UI_LCD_HEIGHT 128
134 #elif defined(IPOD_4G)
135 #define UI_TITLE "iPod 4G"
136 #define UI_WIDTH 196 /* width of GUI window */
137 #define UI_HEIGHT 370 /* height of GUI window */
138 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
139 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
140 #define UI_LCD_BLACK 0, 0, 0 /* black */
141 #define UI_LCD_POSX 19 /* x position of lcd */
142 #define UI_LCD_POSY 14 /* y position of lcd */
143 #define UI_LCD_WIDTH 160
144 #define UI_LCD_HEIGHT 128
146 #elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
147 #define UI_TITLE "iPod mini"
148 #define UI_WIDTH 191 /* width of GUI window */
149 #define UI_HEIGHT 365 /* height of GUI window */
150 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
151 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
152 #define UI_LCD_BLACK 0, 0, 0 /* black */
153 #define UI_LCD_POSX 24 /* x position of lcd */
154 #define UI_LCD_POSY 17 /* y position of lcd */
155 #define UI_LCD_WIDTH 138
156 #define UI_LCD_HEIGHT 110
158 #elif defined(IPOD_COLOR)
159 #define UI_TITLE "iPod Color"
160 #define UI_WIDTH 261 /* width of GUI window */
161 #define UI_HEIGHT 493 /* height of GUI window */
162 /* high-colour */
163 #define UI_LCD_POSX 21 /* x position of lcd */
164 #define UI_LCD_POSY 16 /* y position of lcd */
165 #define UI_LCD_WIDTH 220
166 #define UI_LCD_HEIGHT 176
168 #elif defined(IPOD_NANO)
169 #define UI_TITLE "iPod Nano"
170 #define UI_WIDTH 199 /* width of GUI window */
171 #define UI_HEIGHT 421 /* height of GUI window */
172 /* high-colour */
173 #define UI_LCD_POSX 13 /* x position of lcd */
174 #define UI_LCD_POSY 14 /* y position of lcd */
175 #define UI_LCD_WIDTH 176
176 #define UI_LCD_HEIGHT 132
178 #elif defined(IPOD_VIDEO)
179 #define UI_TITLE "iPod Video"
180 #define UI_WIDTH 350 /* width of GUI window */
181 #define UI_HEIGHT 591 /* height of GUI window */
182 /* high-colour */
183 #define UI_LCD_POSX 14 /* x position of lcd */
184 #define UI_LCD_POSY 12 /* y position of lcd */
185 #define UI_LCD_WIDTH 320
186 #define UI_LCD_HEIGHT 240
188 #elif defined(IAUDIO_X5)
189 #define UI_TITLE "iAudio X5"
190 #define UI_WIDTH 300 /* width of GUI window */
191 #define UI_HEIGHT 558 /* height of GUI window */
192 /* high-colour */
193 #define UI_LCD_POSX 55 /* x position of lcd */
194 #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */
195 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
196 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
197 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
198 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
199 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
200 #define UI_REMOTE_POSY 462 /* y position of remote lcd */
201 #define UI_REMOTE_WIDTH 128
202 #define UI_REMOTE_HEIGHT 96
204 #elif defined(IAUDIO_M5)
205 #define UI_TITLE "iAudio M5"
206 #define UI_WIDTH 374 /* width of GUI window */
207 #define UI_HEIGHT 650 /* height of GUI window */
208 /* high-colour */
209 #define UI_LCD_POSX 82 /* x position of lcd */
210 #define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
211 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
212 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
213 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
214 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
215 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
216 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
217 #define UI_REMOTE_POSX 59 /* x position of remote lcd */
218 #define UI_REMOTE_POSY 509 /* y position of remote lcd */
219 #define UI_REMOTE_WIDTH 128
220 #define UI_REMOTE_HEIGHT 96
222 #elif defined(GIGABEAT_F)
223 #define UI_TITLE "Toshiba Gigabeat"
224 #define UI_WIDTH 401 /* width of GUI window */
225 #define UI_HEIGHT 655 /* height of GUI window */
226 /* high-colour */
227 #define UI_LCD_POSX 48 /* x position of lcd */
228 #define UI_LCD_POSY 60 /* y position of lcd */
229 #define UI_LCD_WIDTH 240
230 #define UI_LCD_HEIGHT 320
232 #elif defined(MROBE_500)
233 #define UI_TITLE "Olympus M:Robe 500"
234 #define UI_WIDTH 401 /* width of GUI window */
235 #define UI_HEIGHT 655 /* height of GUI window */
236 /* high-colour */
237 #define UI_LCD_POSX 48 /* x position of lcd */
238 #define UI_LCD_POSY 60 /* y position of lcd */
239 #define UI_LCD_WIDTH LCD_WIDTH
240 #define UI_LCD_HEIGHT LCD_HEIGHT
241 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
242 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
243 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
244 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
245 #define UI_REMOTE_WIDTH 79
246 #define UI_REMOTE_HEIGHT 16
248 #elif defined(IRIVER_H10)
249 #define UI_TITLE "iriver H10 20Gb"
250 #define UI_WIDTH 392 /* width of GUI window */
251 #define UI_HEIGHT 391 /* height of GUI window */
252 /* high-colour */
253 #define UI_LCD_POSX 111 /* x position of lcd */
254 #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */
255 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
256 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
258 #elif defined(IRIVER_H10_5GB)
259 #define UI_TITLE "iriver H10 5/6Gb"
260 #define UI_WIDTH 353 /* width of GUI window */
261 #define UI_HEIGHT 460 /* height of GUI window */
262 /* high-colour */
263 #define UI_LCD_POSX 112 /* x position of lcd */
264 #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */
265 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
266 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
268 #elif defined(SANSA_E200)
269 #define UI_TITLE "Sansa e200"
270 #define UI_WIDTH 260 /* width of GUI window */
271 #define UI_HEIGHT 502 /* height of GUI window */
272 /* high-colour */
273 #define UI_LCD_POSX 42 /* x position of lcd */
274 #define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
275 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
276 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
278 #elif defined(SANSA_C200)
279 #define UI_TITLE "Sansa c200"
280 #define UI_WIDTH 350 /* width of GUI window */
281 #define UI_HEIGHT 152 /* height of GUI window */
282 /* high-colour */
283 #define UI_LCD_POSX 42 /* x position of lcd */
284 #define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */
285 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
286 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
288 #elif defined(IRIVER_IFP7XX)
289 #define UI_TITLE "iriver iFP7xx"
290 #define UI_WIDTH 425 /* width of GUI window */
291 #define UI_HEIGHT 183 /* height of GUI window */
292 #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
293 #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
294 #define UI_LCD_BLACK 0, 0, 0 /* black */
295 #define UI_LCD_POSX 115 /* x position of lcd */
296 #define UI_LCD_POSY 54 /* y position of lcd */
297 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
298 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
300 #elif defined(ARCHOS_AV300)
301 #define UI_TITLE "Archos AV300"
302 /* We are temporarily using a 2bpp LCD driver and dummy bitmap */
303 #define UI_WIDTH 420 /* width of GUI window */
304 #define UI_HEIGHT 340 /* height of GUI window */
305 #define UI_LCD_POSX 50 /* x position of lcd */
306 #define UI_LCD_POSY 50 /* y position of lcd */
307 #define UI_LCD_WIDTH 320
308 #define UI_LCD_HEIGHT 240
309 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
310 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
311 #define UI_LCD_BLACK 0, 0, 0 /* black */
313 #endif
314 extern SDL_Surface *gui_surface;
315 extern bool background; /* True if the background image is enabled */
316 extern int display_zoom;
318 #endif /* #ifndef __UISDL_H__ */