Add 4g grayscale support for the win32 sim
[Rockbox.git] / uisimulator / win32 / uisw32.h
blobce8a046bcd66e7069e03a4c543cfc604f301b7a6
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Felix Arends
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 __UISW32_H__
21 #define __UISW32_H__
23 #ifdef _MSC_VER
24 typedef unsigned short wchar_t;
25 #define _WCHAR_T_DEFINED
26 #endif
27 #include <windows.h>
28 #include "lcd-win32.h"
30 #if defined(ARCHOS_RECORDER)
31 #define UI_TITLE "Jukebox Recorder"
32 #define UI_WIDTH 270 // width of GUI window
33 #define UI_HEIGHT 406 // height of GUI window
34 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
35 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
36 #define UI_LCD_BLACK 0, 0, 0 // black
37 #define UI_LCD_POSX 80 // x position of lcd
38 #define UI_LCD_POSY 104 // y position of lcd (96 for real aspect)
39 #define UI_LCD_WIDTH 112
40 #define UI_LCD_HEIGHT 64 // (80 for real aspect)
42 #elif defined(ARCHOS_PLAYER)
43 #define UI_TITLE "Jukebox Player"
44 #define UI_WIDTH 284 // width of GUI window
45 #define UI_HEIGHT 420 // height of GUI window
46 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
47 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
48 #define UI_LCD_BLACK 0, 0, 0 // black
49 #define UI_LCD_POSX 75 // x position of lcd
50 #define UI_LCD_POSY 111 // y position of lcd
51 #define UI_LCD_WIDTH 132
52 #define UI_LCD_HEIGHT 75
54 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
55 #define UI_TITLE "Jukebox FM Recorder"
56 #define UI_WIDTH 285 // width of GUI window
57 #define UI_HEIGHT 414 // height of GUI window
58 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
59 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight)
60 #define UI_LCD_BLACK 0, 0, 0 // black
61 #define UI_LCD_POSX 87 // x position of lcd
62 #define UI_LCD_POSY 77 // y position of lcd (69 for real aspect)
63 #define UI_LCD_WIDTH 112
64 #define UI_LCD_HEIGHT 64 // (80 for real aspect)
66 #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
67 #define UI_TITLE "Ondio"
68 #define UI_WIDTH 155 // width of GUI window
69 #define UI_HEIGHT 334 // height of GUI window
70 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
71 #define UI_LCD_BGCOLORLIGHT 90, 145, 90 // bkgnd color of LCD (backlight)
72 #define UI_LCD_BLACK 0, 0, 0 // black
73 #define UI_LCD_POSX 21 // x position of lcd
74 #define UI_LCD_POSY 82 // y position of lcd (74 for real aspect)
75 #define UI_LCD_WIDTH 112
76 #define UI_LCD_HEIGHT 64 // (80 for real aspect)
78 #elif defined(IRIVER_H100_SERIES)
79 #define UI_TITLE "iriver H1x0"
80 #define UI_WIDTH 379 // width of GUI window
81 #define UI_HEIGHT 508 // height of GUI window
82 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
83 #define UI_LCD_BGCOLORLIGHT 230, 216, 173 // bkgnd color of LCD (backlight)
84 #define UI_LCD_BLACK 0, 0, 0 // black
85 #define UI_LCD_POSX 109 // x position of lcd
86 #define UI_LCD_POSY 23 // y position of lcd
87 #define UI_LCD_WIDTH 160
88 #define UI_LCD_HEIGHT 128
89 #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight)
90 #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight)
91 #define UI_REMOTE_POSX 50 // x position of remote lcd
92 #define UI_REMOTE_POSY 403 // y position of remote lcd
93 #define UI_REMOTE_WIDTH 128
94 #define UI_REMOTE_HEIGHT 64
96 #elif defined(IRIVER_H300_SERIES)
97 #define UI_TITLE "iriver H300"
98 #define UI_WIDTH 288 // width of GUI window
99 #define UI_HEIGHT 581 // height of GUI window
100 /* high-colour */
101 #define UI_LCD_POSX 26 // x position of lcd
102 #define UI_LCD_POSY 36 // y position of lcd
103 #define UI_LCD_WIDTH 220
104 #define UI_LCD_HEIGHT 176
105 #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight)
106 #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight)
107 #define UI_REMOTE_POSX 12 // x position of remote lcd
108 #define UI_REMOTE_POSY 478 // y position of remote lcd
109 #define UI_REMOTE_WIDTH 128
110 #define UI_REMOTE_HEIGHT 64
112 #elif defined(IPOD_4G)
113 #define UI_TITLE "iPod 4G"
114 #define UI_WIDTH 196 // width of GUI window
115 #define UI_HEIGHT 370 // height of GUI window
116 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
117 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 // bkgnd color of LCD (backlight)
118 #define UI_LCD_BLACK 0, 0, 0 // black
119 #define UI_LCD_POSX 19 // x position of lcd
120 #define UI_LCD_POSY 14 // y position of lcd
121 #define UI_LCD_WIDTH 160
122 #define UI_LCD_HEIGHT 128
124 #elif defined(IPOD_COLOR)
125 #define UI_TITLE "iPod Color"
126 #define UI_WIDTH 261 // width of GUI window
127 #define UI_HEIGHT 493 // height of GUI window
128 /* high-colour */
129 #define UI_LCD_POSX 21 // x position of lcd
130 #define UI_LCD_POSY 16 // y position of lcd
131 #define UI_LCD_WIDTH 220
132 #define UI_LCD_HEIGHT 176
134 #elif defined(IPOD_NANO)
135 #define UI_TITLE "iPod Nano"
136 #define UI_WIDTH 199 // width of GUI window
137 #define UI_HEIGHT 421 // height of GUI window
138 /* high-colour */
139 #define UI_LCD_POSX 13 // x position of lcd
140 #define UI_LCD_POSY 14 // y position of lcd
141 #define UI_LCD_WIDTH 176
142 #define UI_LCD_HEIGHT 132
144 #elif defined(ARCHOS_GMINI120)
145 #define UI_TITLE "Gmini 120"
146 #define UI_WIDTH 370 // width of GUI window
147 #define UI_HEIGHT 264 // height of GUI window
148 #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
149 #define UI_LCD_BGCOLORLIGHT 230, 160, 60 // bkgnd color of LCD (backlight)
150 #define UI_LCD_BLACK 0, 0, 0 // black
151 #define UI_LCD_POSX 85 // x position of lcd
152 #define UI_LCD_POSY 61 // y position of lcd (74 for real aspect)
153 #define UI_LCD_WIDTH 192 // * 1.5
154 #define UI_LCD_HEIGHT 96 // * 1.5
156 #endif
158 #define TIMER_EVENT 0x34928340
160 extern HWND hGUIWnd; // the GUI window handle
161 extern unsigned int uThreadID; // id of mod thread
162 extern bool bActive;
164 // typedefs
165 typedef unsigned char uchar;
166 typedef unsigned int uint32;
168 #endif // #ifndef __UISW32_H__