1 /*******************************************************************************/
2 /* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */
3 /* file by hand. Modifications to this file should only be made by running */
4 /* the Azure RTOS GUIX Studio application and re-generating the application */
5 /* specification file(s). For more information please refer to the Azure RTOS */
6 /* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
7 /* */
8 /* GUIX Studio Revision 6.2.0.1 */
9 /* Date (dd.mm.yyyy): 31.10.2022 Time (hh:mm): 14:10 */
10 /*******************************************************************************/
11
12
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "multi_themes_16bpp_resources.h"
16 #include "multi_themes_16bpp_specifications.h"
17
18 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
19 SIMPLE_WINDOW_CONTROL_BLOCK simple_window;
20 GX_DISPLAY main_display_control_block;
21 GX_WINDOW_ROOT main_display_root_window;
22 GX_CANVAS main_display_canvas_control_block;
23 ULONG main_display_canvas_memory[153600];
24
25 extern GX_CONST GX_THEME *main_display_theme_table[];
26 extern GX_CONST GX_STRING *main_display_language_table[];
27
28 GX_STUDIO_DISPLAY_INFO multi_themes_16bpp_display_table[1] =
29 {
30 {
31 "main_display",
32 "main_display_canvas",
33 main_display_theme_table,
34 main_display_language_table,
35 MAIN_DISPLAY_THEME_TABLE_SIZE,
36 MAIN_DISPLAY_LANGUAGE_TABLE_SIZE,
37 MAIN_DISPLAY_STRING_TABLE_SIZE,
38 640, /* x resolution */
39 480, /* y resolution */
40 &main_display_control_block,
41 &main_display_canvas_control_block,
42 &main_display_root_window,
43 main_display_canvas_memory, /* canvas memory area */
44 614400, /* canvas memory size in bytes */
45 0 /* rotation angle */
46 }
47 };
48
49
gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)50 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
51 {
52 UINT status;
53 GX_RADIO_BUTTON *button = (GX_RADIO_BUTTON *) control_block;
54 GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
55 GX_RADIO_BUTTON_PROPERTIES *props = (GX_RADIO_BUTTON_PROPERTIES *) info->properties;
56 status = gx_radio_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
57 if (status == GX_SUCCESS)
58 {
59 gx_text_button_font_set(text_button, props->font_id);
60 #if defined(GUIX_5_4_0_COMPATIBILITY)
61 gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
62 #else
63 gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
64 #endif
65
66 if (props->off_pixelmap_id ||
67 props->on_pixelmap_id ||
68 props->off_disabled_pixelmap_id ||
69 props->on_disabled_pixelmap_id)
70 {
71 gx_radio_button_pixelmap_set(button,
72 props->off_pixelmap_id,
73 props->on_pixelmap_id,
74 props->off_disabled_pixelmap_id,
75 props->on_disabled_pixelmap_id);
76 }
77 }
78 return status;
79 }
80
gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)81 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
82 {
83 UINT status;
84 GX_PIXELMAP_BUTTON *button = (GX_PIXELMAP_BUTTON *) control_block;
85 GX_PIXELMAP_BUTTON_PROPERTIES *props = (GX_PIXELMAP_BUTTON_PROPERTIES *) info->properties;
86 status = gx_pixelmap_button_create(button, info->widget_name, parent,
87 props->normal_pixelmap_id,
88 props->selected_pixelmap_id,
89 props->disabled_pixelmap_id,
90 info->style, info->widget_id, &info->size);
91 return status;
92 }
93
gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)94 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
95 {
96 UINT status;
97 GX_ICON *icon = (GX_ICON *) control_block;
98 GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
99 status = gx_icon_create(icon, info->widget_name, parent, props->normal_pixelmap_id, info->style, info->widget_id, info->size.gx_rectangle_left, info->size.gx_rectangle_top);
100 if (props->selected_pixelmap_id)
101 {
102 gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
103 }
104 else
105 {
106 gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
107 }
108 return status;
109 }
110
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)111 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
112 {
113 UINT status;
114 GX_PROMPT *prompt = (GX_PROMPT *) control_block;
115 GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
116 status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
117 if (status == GX_SUCCESS)
118 {
119 gx_prompt_font_set(prompt, props->font_id);
120 #if defined(GUIX_5_4_0_COMPATIBILITY)
121 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
122 #else
123 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
124 #endif
125 }
126 return status;
127 }
128
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)129 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
130 {
131 UINT status;
132 GX_WINDOW *window = (GX_WINDOW *) control_block;
133 GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
134 status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
135 if (status == GX_SUCCESS)
136 {
137 if (props->wallpaper_id)
138 {
139 gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
140 }
141 }
142 return status;
143 }
144
gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)145 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
146 {
147 UINT status;
148 GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block;
149 GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties;
150 status = gx_horizontal_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style);
151 return status;
152 }
153
gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)154 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
155 {
156 UINT status;
157 GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block;
158 GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties;
159 status = gx_vertical_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style);
160 return status;
161 }
162 GX_WINDOW_PROPERTIES simple_window_properties =
163 {
164 0 /* wallpaper pixelmap id */
165 };
166 GX_PIXELMAP_BUTTON_PROPERTIES simple_window_simple_button_properties =
167 {
168 GX_PIXELMAP_ID_BUTTON, /* normal pixelmap id */
169 GX_PIXELMAP_ID_BUTTON_ACTIVE, /* selected pixelmap id */
170 0 /* disabled pixelmap id */
171 };
172 GX_PROMPT_PROPERTIES simple_window_button_text_properties =
173 {
174 GX_STRING_ID_STRING_5, /* string id */
175 GX_FONT_ID_CJK, /* font id */
176 GX_COLOR_ID_TEXT, /* normal text color */
177 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
178 GX_COLOR_ID_TEXT /* disabled text color */
179 };
180 GX_WINDOW_PROPERTIES simple_window_scroll_frame_properties =
181 {
182 0 /* wallpaper pixelmap id */
183 };
184 GX_WINDOW_PROPERTIES simple_window_window_properties =
185 {
186 GX_PIXELMAP_ID_RED_APPLE /* wallpaper pixelmap id */
187 };
188 GX_SCROLLBAR_APPEARANCE simple_window_vertical_scroll_properties =
189 {
190 20, /* scroll width */
191 12, /* thumb width */
192 20, /* thumb travel min */
193 20, /* thumb travel max */
194 4, /* thumb border style */
195 0, /* scroll fill pixelmap */
196 0, /* scroll thumb pixelmap */
197 0, /* scroll up pixelmap */
198 0, /* scroll down pixelmap */
199 GX_COLOR_ID_ORANGE, /* scroll thumb color */
200 GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */
201 GX_COLOR_ID_BLUE, /* scroll button color */
202 };
203 GX_SCROLLBAR_APPEARANCE simple_window_hscroll_properties =
204 {
205 20, /* scroll width */
206 10, /* thumb width */
207 2, /* thumb travel min */
208 2, /* thumb travel max */
209 4, /* thumb border style */
210 0, /* scroll fill pixelmap */
211 0, /* scroll thumb pixelmap */
212 0, /* scroll up pixelmap */
213 0, /* scroll down pixelmap */
214 GX_COLOR_ID_ORANGE, /* scroll thumb color */
215 GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */
216 GX_COLOR_ID_BTN_UPPER, /* scroll button color */
217 };
218 GX_WINDOW_PROPERTIES simple_window_window_theme_setting_properties =
219 {
220 0 /* wallpaper pixelmap id */
221 };
222 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_theme_1_properties =
223 {
224 GX_STRING_ID_STRING_12, /* string id */
225 GX_FONT_ID_CJK, /* font id */
226 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
227 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
228 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
229 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
230 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
231 0, /* off disabled pixelmap id */
232 0 /* on disabled pixelmap id */
233 };
234 GX_PROMPT_PROPERTIES simple_window_prompt_Themes_properties =
235 {
236 GX_STRING_ID_STRING_11, /* string id */
237 GX_FONT_ID_PROMPT, /* font id */
238 GX_COLOR_ID_TEXT, /* normal text color */
239 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
240 GX_COLOR_ID_TEXT /* disabled text color */
241 };
242 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_theme_2_properties =
243 {
244 GX_STRING_ID_STRING_13, /* string id */
245 GX_FONT_ID_CJK, /* font id */
246 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
247 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
248 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
249 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
250 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
251 0, /* off disabled pixelmap id */
252 0 /* on disabled pixelmap id */
253 };
254 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_theme_3_properties =
255 {
256 GX_STRING_ID_STRING_14, /* string id */
257 GX_FONT_ID_CJK, /* font id */
258 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
259 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
260 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
261 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
262 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
263 0, /* off disabled pixelmap id */
264 0 /* on disabled pixelmap id */
265 };
266 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_theme_4_properties =
267 {
268 GX_STRING_ID_STRING_15, /* string id */
269 GX_FONT_ID_CJK, /* font id */
270 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
271 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
272 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
273 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
274 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
275 0, /* off disabled pixelmap id */
276 0 /* on disabled pixelmap id */
277 };
278 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_theme_5_properties =
279 {
280 GX_STRING_ID_STRING_16, /* string id */
281 GX_FONT_ID_CJK, /* font id */
282 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
283 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
284 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
285 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
286 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
287 0, /* off disabled pixelmap id */
288 0 /* on disabled pixelmap id */
289 };
290 GX_WINDOW_PROPERTIES simple_window_window_language_setting_properties =
291 {
292 0 /* wallpaper pixelmap id */
293 };
294 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_English_properties =
295 {
296 GX_STRING_ID_STRING_18, /* string id */
297 GX_FONT_ID_CJK, /* font id */
298 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
299 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
300 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
301 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
302 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
303 0, /* off disabled pixelmap id */
304 0 /* on disabled pixelmap id */
305 };
306 GX_PROMPT_PROPERTIES simple_window_prompt_Languages_properties =
307 {
308 GX_STRING_ID_STRING_17, /* string id */
309 GX_FONT_ID_PROMPT, /* font id */
310 GX_COLOR_ID_TEXT, /* normal text color */
311 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
312 GX_COLOR_ID_TEXT /* disabled text color */
313 };
314 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_Chinese_properties =
315 {
316 GX_STRING_ID_STRING_19, /* string id */
317 GX_FONT_ID_CJK, /* font id */
318 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
319 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
320 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
321 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
322 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
323 0, /* off disabled pixelmap id */
324 0 /* on disabled pixelmap id */
325 };
326 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_Japanese_properties =
327 {
328 GX_STRING_ID_STRING_20, /* string id */
329 GX_FONT_ID_CJK, /* font id */
330 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
331 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
332 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
333 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
334 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
335 0, /* off disabled pixelmap id */
336 0 /* on disabled pixelmap id */
337 };
338 GX_RADIO_BUTTON_PROPERTIES simple_window_radio_button_Spanish_properties =
339 {
340 GX_STRING_ID_STRING_21, /* string id */
341 GX_FONT_ID_CJK, /* font id */
342 GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
343 GX_COLOR_ID_TEXT_COLOR, /* selected text color */
344 GX_COLOR_ID_TEXT_INPUT_TEXT, /* disabled text color */
345 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* off pixelmap id */
346 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* on pixelmap id */
347 0, /* off disabled pixelmap id */
348 0 /* on disabled pixelmap id */
349 };
350 GX_ICON_PROPERTIES simple_window_icon_properties =
351 {
352 GX_PIXELMAP_ID_CHECKBOX_OFF, /* normal pixelmap id */
353 0 /* selected pixelmap id */
354 };
355 GX_PROMPT_PROPERTIES simple_window_prompt_properties =
356 {
357 GX_STRING_ID_STRING_2, /* string id */
358 GX_FONT_ID_PROMPT, /* font id */
359 GX_COLOR_ID_TEXT, /* normal text color */
360 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
361 GX_COLOR_ID_TEXT /* disabled text color */
362 };
363 GX_PROMPT_PROPERTIES simple_window_prompt_1_properties =
364 {
365 GX_STRING_ID_STRING_3, /* string id */
366 GX_FONT_ID_PROMPT, /* font id */
367 GX_COLOR_ID_TEXT, /* normal text color */
368 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
369 GX_COLOR_ID_TEXT /* disabled text color */
370 };
371 GX_ICON_PROPERTIES simple_window_icon_1_properties =
372 {
373 GX_PIXELMAP_ID_CHECKBOX_ON, /* normal pixelmap id */
374 0 /* selected pixelmap id */
375 };
376 GX_PROMPT_PROPERTIES simple_window_prompt_2_properties =
377 {
378 GX_STRING_ID_STRING_4, /* string id */
379 GX_FONT_ID_PROMPT, /* font id */
380 GX_COLOR_ID_TEXT, /* normal text color */
381 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
382 GX_COLOR_ID_TEXT /* disabled text color */
383 };
384 GX_ICON_PROPERTIES simple_window_icon_2_properties =
385 {
386 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_OFF, /* normal pixelmap id */
387 0 /* selected pixelmap id */
388 };
389 GX_PROMPT_PROPERTIES simple_window_prompt_3_properties =
390 {
391 GX_STRING_ID_STRING_6, /* string id */
392 GX_FONT_ID_PROMPT, /* font id */
393 GX_COLOR_ID_TEXT, /* normal text color */
394 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
395 GX_COLOR_ID_TEXT /* disabled text color */
396 };
397 GX_ICON_PROPERTIES simple_window_icon_3_properties =
398 {
399 GX_PIXELMAP_ID_CUSTOM_RADIOBUTTON_ON, /* normal pixelmap id */
400 0 /* selected pixelmap id */
401 };
402 GX_PROMPT_PROPERTIES simple_window_prompt_Themes_1_properties =
403 {
404 GX_STRING_ID_STRING_7, /* string id */
405 GX_FONT_ID_PROMPT, /* font id */
406 GX_COLOR_ID_TEXT, /* normal text color */
407 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
408 GX_COLOR_ID_TEXT /* disabled text color */
409 };
410
411 GX_CONST GX_STUDIO_WIDGET simple_window_button_text_define =
412 {
413 "button_text",
414 GX_TYPE_PROMPT, /* widget type */
415 GX_ID_NONE, /* widget id */
416 #if defined(GX_WIDGET_USER_DATA)
417 0, /* user data */
418 #endif
419 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */
420 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
421 sizeof(GX_PROMPT), /* control block size */
422 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
423 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
424 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
425 gx_studio_prompt_create, /* create function */
426 GX_NULL, /* drawing function override */
427 GX_NULL, /* event function override */
428 {337, 140, 436, 163}, /* widget size */
429 GX_NULL, /* no next widget */
430 GX_NULL, /* no child widgets */
431 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_button_text), /* control block */
432 (void *) &simple_window_button_text_properties /* extended properties */
433 };
434
435 GX_CONST GX_STUDIO_WIDGET simple_window_hscroll_define =
436 {
437 "hscroll",
438 GX_TYPE_HORIZONTAL_SCROLL, /* widget type */
439 ID_HORIZONTAL_SCROLLBAR, /* widget id */
440 #if defined(GX_WIDGET_USER_DATA)
441 0, /* user data */
442 #endif
443 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_HORIZONTAL, /* style flags */
444 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
445 sizeof(GX_SCROLLBAR), /* control block size */
446 GX_COLOR_ID_ORANGE, /* normal color id */
447 GX_COLOR_ID_SCROLL_FILL, /* selected color id */
448 GX_COLOR_ID_ORANGE, /* disabled color id */
449 gx_studio_horizontal_scrollbar_create, /* create function */
450 GX_NULL, /* drawing function override */
451 GX_NULL, /* event function override */
452 {51, 165, 240, 184}, /* widget size */
453 GX_NULL, /* no next widget */
454 GX_NULL, /* no child widgets */
455 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_hscroll), /* control block */
456 (void *) &simple_window_hscroll_properties /* extended properties */
457 };
458
459 GX_CONST GX_STUDIO_WIDGET simple_window_vertical_scroll_define =
460 {
461 "vertical_scroll",
462 GX_TYPE_VERTICAL_SCROLL, /* widget type */
463 ID_VERTICAL_SCROLLBAR, /* widget id */
464 #if defined(GX_WIDGET_USER_DATA)
465 0, /* user data */
466 #endif
467 GX_STYLE_BORDER_THIN|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_END_BUTTONS|GX_SCROLLBAR_VERTICAL, /* style flags */
468 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
469 sizeof(GX_SCROLLBAR), /* control block size */
470 GX_COLOR_ID_SCROLL_FILL, /* normal color id */
471 GX_COLOR_ID_SCROLL_FILL, /* selected color id */
472 GX_COLOR_ID_SCROLL_FILL, /* disabled color id */
473 gx_studio_vertical_scrollbar_create, /* create function */
474 GX_NULL, /* drawing function override */
475 GX_NULL, /* event function override */
476 {241, 51, 260, 184}, /* widget size */
477 &simple_window_hscroll_define, /* next widget definition */
478 GX_NULL, /* no child widgets */
479 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_vertical_scroll), /* control block */
480 (void *) &simple_window_vertical_scroll_properties /* extended properties */
481 };
482
483 GX_CONST GX_STUDIO_WIDGET simple_window_window_define =
484 {
485 "window",
486 GX_TYPE_WINDOW, /* widget type */
487 GX_ID_NONE, /* widget id */
488 #if defined(GX_WIDGET_USER_DATA)
489 0, /* user data */
490 #endif
491 GX_STYLE_BORDER_THIN, /* style flags */
492 0, /* status flags */
493 sizeof(GX_WINDOW), /* control block size */
494 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
495 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
496 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
497 gx_studio_window_create, /* create function */
498 GX_NULL, /* drawing function override */
499 GX_NULL, /* event function override */
500 {50, 50, 244, 316}, /* widget size */
501 &simple_window_vertical_scroll_define, /* next widget definition */
502 GX_NULL, /* no child widgets */
503 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_window), /* control block */
504 (void *) &simple_window_window_properties /* extended properties */
505 };
506
507 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_theme_5_define =
508 {
509 "radio_button_theme_5",
510 GX_TYPE_RADIO_BUTTON, /* widget type */
511 ID_THEME_5, /* widget id */
512 #if defined(GX_WIDGET_USER_DATA)
513 0, /* user data */
514 #endif
515 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
516 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
517 sizeof(GX_RADIO_BUTTON), /* control block size */
518 GX_COLOR_ID_BTN_LOWER, /* normal color id */
519 GX_COLOR_ID_BTN_UPPER, /* selected color id */
520 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
521 gx_studio_radio_button_create, /* create function */
522 GX_NULL, /* drawing function override */
523 GX_NULL, /* event function override */
524 {63, 425, 160, 450}, /* widget size */
525 GX_NULL, /* no next widget */
526 GX_NULL, /* no child widgets */
527 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_theme_5), /* control block */
528 (void *) &simple_window_radio_button_theme_5_properties /* extended properties */
529 };
530
531 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_theme_4_define =
532 {
533 "radio_button_theme_4",
534 GX_TYPE_RADIO_BUTTON, /* widget type */
535 ID_THEME_4, /* widget id */
536 #if defined(GX_WIDGET_USER_DATA)
537 0, /* user data */
538 #endif
539 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
540 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
541 sizeof(GX_RADIO_BUTTON), /* control block size */
542 GX_COLOR_ID_BTN_LOWER, /* normal color id */
543 GX_COLOR_ID_BTN_UPPER, /* selected color id */
544 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
545 gx_studio_radio_button_create, /* create function */
546 GX_NULL, /* drawing function override */
547 GX_NULL, /* event function override */
548 {63, 387, 160, 414}, /* widget size */
549 &simple_window_radio_button_theme_5_define, /* next widget definition */
550 GX_NULL, /* no child widgets */
551 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_theme_4), /* control block */
552 (void *) &simple_window_radio_button_theme_4_properties /* extended properties */
553 };
554
555 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_theme_3_define =
556 {
557 "radio_button_theme_3",
558 GX_TYPE_RADIO_BUTTON, /* widget type */
559 ID_THEME_3, /* widget id */
560 #if defined(GX_WIDGET_USER_DATA)
561 0, /* user data */
562 #endif
563 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
564 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
565 sizeof(GX_RADIO_BUTTON), /* control block size */
566 GX_COLOR_ID_BTN_LOWER, /* normal color id */
567 GX_COLOR_ID_BTN_UPPER, /* selected color id */
568 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
569 gx_studio_radio_button_create, /* create function */
570 GX_NULL, /* drawing function override */
571 GX_NULL, /* event function override */
572 {63, 349, 160, 373}, /* widget size */
573 &simple_window_radio_button_theme_4_define, /* next widget definition */
574 GX_NULL, /* no child widgets */
575 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_theme_3), /* control block */
576 (void *) &simple_window_radio_button_theme_3_properties /* extended properties */
577 };
578
579 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_theme_2_define =
580 {
581 "radio_button_theme_2",
582 GX_TYPE_RADIO_BUTTON, /* widget type */
583 ID_THEME_2, /* widget id */
584 #if defined(GX_WIDGET_USER_DATA)
585 0, /* user data */
586 #endif
587 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
588 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
589 sizeof(GX_RADIO_BUTTON), /* control block size */
590 GX_COLOR_ID_BTN_LOWER, /* normal color id */
591 GX_COLOR_ID_BTN_UPPER, /* selected color id */
592 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
593 gx_studio_radio_button_create, /* create function */
594 GX_NULL, /* drawing function override */
595 GX_NULL, /* event function override */
596 {63, 312, 160, 336}, /* widget size */
597 &simple_window_radio_button_theme_3_define, /* next widget definition */
598 GX_NULL, /* no child widgets */
599 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_theme_2), /* control block */
600 (void *) &simple_window_radio_button_theme_2_properties /* extended properties */
601 };
602
603 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_Themes_define =
604 {
605 "prompt_Themes",
606 GX_TYPE_PROMPT, /* widget type */
607 GX_ID_NONE, /* widget id */
608 #if defined(GX_WIDGET_USER_DATA)
609 0, /* user data */
610 #endif
611 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
612 0, /* status flags */
613 sizeof(GX_PROMPT), /* control block size */
614 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
615 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
616 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
617 gx_studio_prompt_create, /* create function */
618 GX_NULL, /* drawing function override */
619 GX_NULL, /* event function override */
620 {60, 238, 139, 261}, /* widget size */
621 &simple_window_radio_button_theme_2_define, /* next widget definition */
622 GX_NULL, /* no child widgets */
623 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_Themes), /* control block */
624 (void *) &simple_window_prompt_Themes_properties /* extended properties */
625 };
626
627 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_theme_1_define =
628 {
629 "radio_button_theme_1",
630 GX_TYPE_RADIO_BUTTON, /* widget type */
631 ID_THEME_1, /* widget id */
632 #if defined(GX_WIDGET_USER_DATA)
633 0, /* user data */
634 #endif
635 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
636 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
637 sizeof(GX_RADIO_BUTTON), /* control block size */
638 GX_COLOR_ID_BTN_LOWER, /* normal color id */
639 GX_COLOR_ID_BTN_UPPER, /* selected color id */
640 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
641 gx_studio_radio_button_create, /* create function */
642 GX_NULL, /* drawing function override */
643 GX_NULL, /* event function override */
644 {63, 273, 160, 301}, /* widget size */
645 &simple_window_prompt_Themes_define, /* next widget definition */
646 GX_NULL, /* no child widgets */
647 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_theme_1), /* control block */
648 (void *) &simple_window_radio_button_theme_1_properties /* extended properties */
649 };
650
651 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_Spanish_define =
652 {
653 "radio_button_Spanish",
654 GX_TYPE_RADIO_BUTTON, /* widget type */
655 ID_SPANISH, /* widget id */
656 #if defined(GX_WIDGET_USER_DATA)
657 0, /* user data */
658 #endif
659 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
660 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
661 sizeof(GX_RADIO_BUTTON), /* control block size */
662 GX_COLOR_ID_BTN_LOWER, /* normal color id */
663 GX_COLOR_ID_BTN_UPPER, /* selected color id */
664 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
665 gx_studio_radio_button_create, /* create function */
666 GX_NULL, /* drawing function override */
667 GX_NULL, /* event function override */
668 {489, 387, 586, 413}, /* widget size */
669 GX_NULL, /* no next widget */
670 GX_NULL, /* no child widgets */
671 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_Spanish), /* control block */
672 (void *) &simple_window_radio_button_Spanish_properties /* extended properties */
673 };
674
675 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_Japanese_define =
676 {
677 "radio_button_Japanese",
678 GX_TYPE_RADIO_BUTTON, /* widget type */
679 ID_JAPANESE, /* widget id */
680 #if defined(GX_WIDGET_USER_DATA)
681 0, /* user data */
682 #endif
683 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
684 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
685 sizeof(GX_RADIO_BUTTON), /* control block size */
686 GX_COLOR_ID_BTN_LOWER, /* normal color id */
687 GX_COLOR_ID_BTN_UPPER, /* selected color id */
688 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
689 gx_studio_radio_button_create, /* create function */
690 GX_NULL, /* drawing function override */
691 GX_NULL, /* event function override */
692 {489, 349, 596, 373}, /* widget size */
693 &simple_window_radio_button_Spanish_define, /* next widget definition */
694 GX_NULL, /* no child widgets */
695 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_Japanese), /* control block */
696 (void *) &simple_window_radio_button_Japanese_properties /* extended properties */
697 };
698
699 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_Chinese_define =
700 {
701 "radio_button_Chinese",
702 GX_TYPE_RADIO_BUTTON, /* widget type */
703 ID_CHINESE, /* widget id */
704 #if defined(GX_WIDGET_USER_DATA)
705 0, /* user data */
706 #endif
707 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
708 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
709 sizeof(GX_RADIO_BUTTON), /* control block size */
710 GX_COLOR_ID_BTN_LOWER, /* normal color id */
711 GX_COLOR_ID_BTN_UPPER, /* selected color id */
712 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
713 gx_studio_radio_button_create, /* create function */
714 GX_NULL, /* drawing function override */
715 GX_NULL, /* event function override */
716 {489, 311, 586, 337}, /* widget size */
717 &simple_window_radio_button_Japanese_define, /* next widget definition */
718 GX_NULL, /* no child widgets */
719 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_Chinese), /* control block */
720 (void *) &simple_window_radio_button_Chinese_properties /* extended properties */
721 };
722
723 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_Languages_define =
724 {
725 "prompt_Languages",
726 GX_TYPE_PROMPT, /* widget type */
727 GX_ID_NONE, /* widget id */
728 #if defined(GX_WIDGET_USER_DATA)
729 0, /* user data */
730 #endif
731 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
732 0, /* status flags */
733 sizeof(GX_PROMPT), /* control block size */
734 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
735 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
736 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
737 gx_studio_prompt_create, /* create function */
738 GX_NULL, /* drawing function override */
739 GX_NULL, /* event function override */
740 {485, 238, 597, 261}, /* widget size */
741 &simple_window_radio_button_Chinese_define, /* next widget definition */
742 GX_NULL, /* no child widgets */
743 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_Languages), /* control block */
744 (void *) &simple_window_prompt_Languages_properties /* extended properties */
745 };
746
747 GX_CONST GX_STUDIO_WIDGET simple_window_radio_button_English_define =
748 {
749 "radio_button_English",
750 GX_TYPE_RADIO_BUTTON, /* widget type */
751 ID_ENGLISH, /* widget id */
752 #if defined(GX_WIDGET_USER_DATA)
753 0, /* user data */
754 #endif
755 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT, /* style flags */
756 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
757 sizeof(GX_RADIO_BUTTON), /* control block size */
758 GX_COLOR_ID_BTN_LOWER, /* normal color id */
759 GX_COLOR_ID_BTN_UPPER, /* selected color id */
760 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
761 gx_studio_radio_button_create, /* create function */
762 GX_NULL, /* drawing function override */
763 GX_NULL, /* event function override */
764 {489, 273, 586, 300}, /* widget size */
765 &simple_window_prompt_Languages_define, /* next widget definition */
766 GX_NULL, /* no child widgets */
767 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_radio_button_English), /* control block */
768 (void *) &simple_window_radio_button_English_properties /* extended properties */
769 };
770
771 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_Themes_1_define =
772 {
773 "prompt_Themes_1",
774 GX_TYPE_PROMPT, /* widget type */
775 GX_ID_NONE, /* widget id */
776 #if defined(GX_WIDGET_USER_DATA)
777 0, /* user data */
778 #endif
779 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
780 0, /* status flags */
781 sizeof(GX_PROMPT), /* control block size */
782 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
783 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
784 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
785 gx_studio_prompt_create, /* create function */
786 GX_NULL, /* drawing function override */
787 GX_NULL, /* event function override */
788 {251, 237, 403, 260}, /* widget size */
789 GX_NULL, /* no next widget */
790 GX_NULL, /* no child widgets */
791 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_Themes_1), /* control block */
792 (void *) &simple_window_prompt_Themes_1_properties /* extended properties */
793 };
794
795 GX_CONST GX_STUDIO_WIDGET simple_window_icon_3_define =
796 {
797 "icon_3",
798 GX_TYPE_ICON, /* widget type */
799 GX_ID_NONE, /* widget id */
800 #if defined(GX_WIDGET_USER_DATA)
801 0, /* user data */
802 #endif
803 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
804 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
805 sizeof(GX_ICON), /* control block size */
806 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
807 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
808 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
809 gx_studio_icon_create, /* create function */
810 GX_NULL, /* drawing function override */
811 GX_NULL, /* event function override */
812 {364, 396, 385, 420}, /* widget size */
813 &simple_window_prompt_Themes_1_define, /* next widget definition */
814 GX_NULL, /* no child widgets */
815 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_icon_3), /* control block */
816 (void *) &simple_window_icon_3_properties /* extended properties */
817 };
818
819 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_3_define =
820 {
821 "prompt_3",
822 GX_TYPE_PROMPT, /* widget type */
823 GX_ID_NONE, /* widget id */
824 #if defined(GX_WIDGET_USER_DATA)
825 0, /* user data */
826 #endif
827 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT, /* style flags */
828 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
829 sizeof(GX_PROMPT), /* control block size */
830 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
831 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
832 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
833 gx_studio_prompt_create, /* create function */
834 GX_NULL, /* drawing function override */
835 GX_NULL, /* event function override */
836 {182, 394, 352, 417}, /* widget size */
837 &simple_window_icon_3_define, /* next widget definition */
838 GX_NULL, /* no child widgets */
839 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_3), /* control block */
840 (void *) &simple_window_prompt_3_properties /* extended properties */
841 };
842
843 GX_CONST GX_STUDIO_WIDGET simple_window_icon_2_define =
844 {
845 "icon_2",
846 GX_TYPE_ICON, /* widget type */
847 GX_ID_NONE, /* widget id */
848 #if defined(GX_WIDGET_USER_DATA)
849 0, /* user data */
850 #endif
851 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
852 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
853 sizeof(GX_ICON), /* control block size */
854 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
855 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
856 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
857 gx_studio_icon_create, /* create function */
858 GX_NULL, /* drawing function override */
859 GX_NULL, /* event function override */
860 {362, 355, 383, 379}, /* widget size */
861 &simple_window_prompt_3_define, /* next widget definition */
862 GX_NULL, /* no child widgets */
863 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_icon_2), /* control block */
864 (void *) &simple_window_icon_2_properties /* extended properties */
865 };
866
867 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_2_define =
868 {
869 "prompt_2",
870 GX_TYPE_PROMPT, /* widget type */
871 GX_ID_NONE, /* widget id */
872 #if defined(GX_WIDGET_USER_DATA)
873 0, /* user data */
874 #endif
875 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT, /* style flags */
876 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
877 sizeof(GX_PROMPT), /* control block size */
878 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
879 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
880 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
881 gx_studio_prompt_create, /* create function */
882 GX_NULL, /* drawing function override */
883 GX_NULL, /* event function override */
884 {233, 354, 352, 377}, /* widget size */
885 &simple_window_icon_2_define, /* next widget definition */
886 GX_NULL, /* no child widgets */
887 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_2), /* control block */
888 (void *) &simple_window_prompt_2_properties /* extended properties */
889 };
890
891 GX_CONST GX_STUDIO_WIDGET simple_window_icon_1_define =
892 {
893 "icon_1",
894 GX_TYPE_ICON, /* widget type */
895 GX_ID_NONE, /* widget id */
896 #if defined(GX_WIDGET_USER_DATA)
897 0, /* user data */
898 #endif
899 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
900 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
901 sizeof(GX_ICON), /* control block size */
902 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
903 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
904 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
905 gx_studio_icon_create, /* create function */
906 GX_NULL, /* drawing function override */
907 GX_NULL, /* event function override */
908 {362, 278, 377, 293}, /* widget size */
909 &simple_window_prompt_2_define, /* next widget definition */
910 GX_NULL, /* no child widgets */
911 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_icon_1), /* control block */
912 (void *) &simple_window_icon_1_properties /* extended properties */
913 };
914
915 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_1_define =
916 {
917 "prompt_1",
918 GX_TYPE_PROMPT, /* widget type */
919 GX_ID_NONE, /* widget id */
920 #if defined(GX_WIDGET_USER_DATA)
921 0, /* user data */
922 #endif
923 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT, /* style flags */
924 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
925 sizeof(GX_PROMPT), /* control block size */
926 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
927 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
928 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
929 gx_studio_prompt_create, /* create function */
930 GX_NULL, /* drawing function override */
931 GX_NULL, /* event function override */
932 {233, 274, 352, 297}, /* widget size */
933 &simple_window_icon_1_define, /* next widget definition */
934 GX_NULL, /* no child widgets */
935 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt_1), /* control block */
936 (void *) &simple_window_prompt_1_properties /* extended properties */
937 };
938
939 GX_CONST GX_STUDIO_WIDGET simple_window_prompt_define =
940 {
941 "prompt",
942 GX_TYPE_PROMPT, /* widget type */
943 GX_ID_NONE, /* widget id */
944 #if defined(GX_WIDGET_USER_DATA)
945 0, /* user data */
946 #endif
947 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT, /* style flags */
948 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
949 sizeof(GX_PROMPT), /* control block size */
950 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
951 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
952 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
953 gx_studio_prompt_create, /* create function */
954 GX_NULL, /* drawing function override */
955 GX_NULL, /* event function override */
956 {233, 314, 352, 337}, /* widget size */
957 &simple_window_prompt_1_define, /* next widget definition */
958 GX_NULL, /* no child widgets */
959 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_prompt), /* control block */
960 (void *) &simple_window_prompt_properties /* extended properties */
961 };
962
963 GX_CONST GX_STUDIO_WIDGET simple_window_icon_define =
964 {
965 "icon",
966 GX_TYPE_ICON, /* widget type */
967 GX_ID_NONE, /* widget id */
968 #if defined(GX_WIDGET_USER_DATA)
969 0, /* user data */
970 #endif
971 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
972 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
973 sizeof(GX_ICON), /* control block size */
974 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
975 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
976 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
977 gx_studio_icon_create, /* create function */
978 GX_NULL, /* drawing function override */
979 GX_NULL, /* event function override */
980 {362, 318, 377, 333}, /* widget size */
981 &simple_window_prompt_define, /* next widget definition */
982 GX_NULL, /* no child widgets */
983 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_icon), /* control block */
984 (void *) &simple_window_icon_properties /* extended properties */
985 };
986
987 GX_CONST GX_STUDIO_WIDGET simple_window_window_language_setting_define =
988 {
989 "window_language_setting",
990 GX_TYPE_WINDOW, /* widget type */
991 GX_ID_NONE, /* widget id */
992 #if defined(GX_WIDGET_USER_DATA)
993 0, /* user data */
994 #endif
995 GX_STYLE_BORDER_NONE, /* style flags */
996 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
997 sizeof(GX_WINDOW), /* control block size */
998 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
999 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1000 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1001 gx_studio_window_create, /* create function */
1002 GX_NULL, /* drawing function override */
1003 GX_NULL, /* event function override */
1004 {476, 224, 631, 421}, /* widget size */
1005 &simple_window_icon_define, /* next widget definition */
1006 &simple_window_radio_button_English_define, /* child widget definition */
1007 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_window_language_setting), /* control block */
1008 (void *) &simple_window_window_language_setting_properties /* extended properties */
1009 };
1010
1011 GX_CONST GX_STUDIO_WIDGET simple_window_window_theme_setting_define =
1012 {
1013 "window_theme_setting",
1014 GX_TYPE_WINDOW, /* widget type */
1015 GX_ID_NONE, /* widget id */
1016 #if defined(GX_WIDGET_USER_DATA)
1017 0, /* user data */
1018 #endif
1019 GX_STYLE_BORDER_NONE, /* style flags */
1020 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1021 sizeof(GX_WINDOW), /* control block size */
1022 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1023 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1024 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1025 gx_studio_window_create, /* create function */
1026 GX_NULL, /* drawing function override */
1027 GX_NULL, /* event function override */
1028 {51, 224, 219, 463}, /* widget size */
1029 &simple_window_window_language_setting_define, /* next widget definition */
1030 &simple_window_radio_button_theme_1_define, /* child widget definition */
1031 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_window_theme_setting), /* control block */
1032 (void *) &simple_window_window_theme_setting_properties /* extended properties */
1033 };
1034
1035 GX_CONST GX_STUDIO_WIDGET simple_window_scroll_frame_define =
1036 {
1037 "scroll_frame",
1038 GX_TYPE_WINDOW, /* widget type */
1039 GX_ID_NONE, /* widget id */
1040 #if defined(GX_WIDGET_USER_DATA)
1041 0, /* user data */
1042 #endif
1043 GX_STYLE_BORDER_THIN, /* style flags */
1044 0, /* status flags */
1045 sizeof(GX_WINDOW), /* control block size */
1046 GX_COLOR_ID_SCROLL_FILL, /* normal color id */
1047 GX_COLOR_ID_SCROLL_FILL, /* selected color id */
1048 GX_COLOR_ID_SCROLL_FILL, /* disabled color id */
1049 gx_studio_window_create, /* create function */
1050 GX_NULL, /* drawing function override */
1051 GX_NULL, /* event function override */
1052 {50, 50, 261, 185}, /* widget size */
1053 &simple_window_window_theme_setting_define, /* next widget definition */
1054 &simple_window_window_define, /* child widget definition */
1055 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_scroll_frame), /* control block */
1056 (void *) &simple_window_scroll_frame_properties /* extended properties */
1057 };
1058
1059 GX_CONST GX_STUDIO_WIDGET simple_window_simple_button_define =
1060 {
1061 "simple_button",
1062 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
1063 GX_ID_NONE, /* widget id */
1064 #if defined(GX_WIDGET_USER_DATA)
1065 0, /* user data */
1066 #endif
1067 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
1068 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1069 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
1070 GX_COLOR_ID_BTN_LOWER, /* normal color id */
1071 GX_COLOR_ID_BTN_UPPER, /* selected color id */
1072 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
1073 gx_studio_pixelmap_button_create, /* create function */
1074 GX_NULL, /* drawing function override */
1075 GX_NULL, /* event function override */
1076 {315, 117, 458, 182}, /* widget size */
1077 &simple_window_scroll_frame_define, /* next widget definition */
1078 &simple_window_button_text_define, /* child widget definition */
1079 offsetof(SIMPLE_WINDOW_CONTROL_BLOCK, simple_window_simple_button), /* control block */
1080 (void *) &simple_window_simple_button_properties /* extended properties */
1081 };
1082
1083 GX_CONST GX_STUDIO_WIDGET simple_window_define =
1084 {
1085 "simple_window",
1086 GX_TYPE_WINDOW, /* widget type */
1087 GX_ID_NONE, /* widget id */
1088 #if defined(GX_WIDGET_USER_DATA)
1089 0, /* user data */
1090 #endif
1091 GX_STYLE_BORDER_NONE, /* style flags */
1092 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1093 sizeof(SIMPLE_WINDOW_CONTROL_BLOCK), /* control block size */
1094 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1095 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1096 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1097 gx_studio_window_create, /* create function */
1098 GX_NULL, /* drawing function override */
1099 (UINT (*)(GX_WIDGET *, GX_EVENT *)) simple_window_event_handler, /* event function override */
1100 {0, 0, 639, 479}, /* widget size */
1101 GX_NULL, /* next widget */
1102 &simple_window_simple_button_define, /* child widget */
1103 0, /* control block */
1104 (void *) &simple_window_properties /* extended properties */
1105 };
1106 GX_CONST GX_STUDIO_WIDGET_ENTRY multi_themes_16bpp_widget_table[] =
1107 {
1108 { &simple_window_define, (GX_WIDGET *) &simple_window },
1109 {GX_NULL, GX_NULL}
1110 };
1111
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1112 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1113 {
1114 UINT status = GX_SUCCESS;
1115 GX_WIDGET *widget = GX_NULL;
1116 GX_VALUE list_count = 0;
1117 GX_VALUE list_total_count = 0;
1118
1119 if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
1120 {
1121 list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
1122 }
1123
1124 while(definition && status == GX_SUCCESS)
1125 {
1126 if (definition->create_function)
1127 {
1128 if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
1129 {
1130 status = gx_widget_allocate(&widget, definition->control_block_size);
1131 if (status != GX_SUCCESS)
1132 {
1133 return GX_NULL;
1134 }
1135 }
1136 else
1137 {
1138 if (control == GX_NULL)
1139 {
1140 return GX_NULL;
1141 }
1142 widget = (GX_WIDGET *) (control + definition->control_block_offset);
1143 }
1144
1145 status = definition->create_function(definition, widget, parent);
1146
1147 if(list_count < list_total_count)
1148 {
1149 gx_menu_insert((GX_MENU *)parent, widget);
1150 ((GX_MENU *)parent)->gx_menu_list_total_count--;
1151 list_count++;
1152 }
1153
1154 if (status == GX_SUCCESS)
1155 {
1156 if (definition->widget_type != GX_TYPE_TEMPLATE)
1157 {
1158 #if defined(GUIX_5_4_0_COMPATIBILITY)
1159 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
1160 #else
1161 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
1162 #endif
1163 }
1164
1165 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
1166 {
1167 gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
1168 }
1169
1170 if (definition->draw_function)
1171 {
1172 gx_widget_draw_set(widget, definition->draw_function);
1173 }
1174 if (definition->event_function)
1175 {
1176 gx_widget_event_process_set(widget, definition->event_function);
1177 }
1178
1179 #if defined(GX_WIDGET_USER_DATA)
1180 widget->gx_widget_user_data = definition->user_data;
1181 #endif
1182
1183 if (definition->child_widget)
1184 {
1185 gx_studio_nested_widget_create(control, definition->child_widget, widget);
1186 }
1187 }
1188 definition = definition->next_widget;
1189 }
1190 }
1191 return widget;
1192 }
1193
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1194 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1195 {
1196 GX_WIDGET *widget;
1197 widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
1198
1199 if (parent && widget)
1200 {
1201 gx_widget_attach(parent, widget);
1202 }
1203 return widget;
1204 }
1205
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)1206 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
1207 {
1208 UINT status = GX_FAILURE;
1209 GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = multi_themes_16bpp_widget_table;
1210 GX_WIDGET *widget = GX_NULL;
1211
1212 while(entry->widget_information)
1213 {
1214 if (!strcmp(name, entry->widget_information->widget_name))
1215 {
1216 widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
1217 if (widget)
1218 {
1219 status = GX_SUCCESS;
1220 }
1221 break;
1222 }
1223 entry++;
1224 }
1225
1226 if (new_widget)
1227 {
1228 *new_widget = widget;
1229 }
1230 return status;
1231 }
1232
1233
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)1234 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
1235 GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
1236 {
1237 GX_CONST GX_THEME *theme_ptr;
1238 GX_RECTANGLE size;
1239
1240 GX_STUDIO_DISPLAY_INFO *display_info = &multi_themes_16bpp_display_table[display];
1241
1242
1243 /* create the requested display */
1244
1245 gx_display_create(display_info->display,
1246 display_info->name,
1247 driver,
1248 (GX_VALUE) display_info->x_resolution,
1249 (GX_VALUE) display_info->y_resolution);
1250
1251
1252 /* install the request theme */
1253
1254 if(display_info->theme_table)
1255 {
1256 theme_ptr = display_info->theme_table[theme];
1257 if(theme_ptr)
1258 {
1259 gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
1260
1261 /* install the color palette if required */
1262 if (display_info->display->gx_display_driver_palette_set &&
1263 theme_ptr->theme_palette != NULL)
1264 {
1265 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
1266 }
1267
1268 gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
1269 gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
1270 gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
1271 gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
1272 }
1273 }
1274
1275 /* Install the language table. */
1276
1277 if(display_info->language_table)
1278 {
1279 gx_display_language_table_set_ext(display_info->display, display_info->language_table, (GX_UBYTE) display_info->language_table_size, display_info->string_table_size);
1280 gx_display_active_language_set(display_info->display, language);
1281 }
1282
1283 /* Set screen rotation angle. */
1284
1285 display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
1286
1287 /* create the canvas for this display */
1288
1289 gx_canvas_create(display_info->canvas,
1290 display_info->canvas_name,
1291 display_info->display,
1292 GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
1293 display_info->x_resolution,
1294 display_info->y_resolution,
1295 display_info->canvas_memory,
1296 display_info->canvas_memory_size);
1297
1298 /* Create the root window for this canvas */
1299
1300 gx_utility_rectangle_define(&size,
1301 0, 0,
1302 (GX_VALUE) (display_info->x_resolution - 1),
1303 (GX_VALUE) (display_info->y_resolution - 1));
1304
1305 gx_window_root_create(display_info->root_window,
1306 display_info->name,
1307 display_info->canvas, GX_STYLE_NONE, 0, &size);
1308 if (return_root)
1309 {
1310 *return_root = display_info->root_window;
1311 }
1312 return GX_SUCCESS;
1313 }
1314 #undef GUIX_STUDIO_GENERATED_FILE
1315