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:11 */
10 /*******************************************************************************/
11
12
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "screen_drag_animation_resources.h"
16 #include "screen_drag_animation_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 V_MENU_WINDOW_3_CONTROL_BLOCK v_menu_window_3;
20 V_MENU_WINDOW_2_CONTROL_BLOCK v_menu_window_2;
21 H_MENU_WINDOW_2_CONTROL_BLOCK h_menu_window_2;
22 H_MENU_WINDOW_3_CONTROL_BLOCK h_menu_window_3;
23 MAIN_SCREEN_CONTROL_BLOCK main_screen;
24 GX_DISPLAY display_1_control_block;
25 GX_WINDOW_ROOT display_1_root_window;
26 GX_CANVAS display_1_canvas_control_block;
27 ULONG display_1_canvas_memory[307200];
28
29 extern GX_CONST GX_THEME *display_1_theme_table[];
30 extern GX_CONST GX_STRING *display_1_language_table[];
31
32 GX_STUDIO_DISPLAY_INFO screen_drag_animation_display_table[1] =
33 {
34 {
35 "display_1",
36 "display_1_canvas",
37 display_1_theme_table,
38 display_1_language_table,
39 DISPLAY_1_THEME_TABLE_SIZE,
40 DISPLAY_1_LANGUAGE_TABLE_SIZE,
41 DISPLAY_1_STRING_TABLE_SIZE,
42 640, /* x resolution */
43 480, /* y resolution */
44 &display_1_control_block,
45 &display_1_canvas_control_block,
46 &display_1_root_window,
47 display_1_canvas_memory, /* canvas memory area */
48 1228800, /* canvas memory size in bytes */
49 0 /* rotation angle */
50 }
51 };
52
53
gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)54 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
55 {
56 UINT status;
57 GX_CHECKBOX *button = (GX_CHECKBOX *) control_block;
58 GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
59 GX_CHECKBOX_PROPERTIES *props = (GX_CHECKBOX_PROPERTIES *) info->properties;
60 status = gx_checkbox_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
61 if (status == GX_SUCCESS)
62 {
63 gx_text_button_font_set(text_button, props->font_id);
64 #if defined(GUIX_5_4_0_COMPATIBILITY)
65 gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
66 #else
67 gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
68 #endif
69
70 if (props->unchecked_pixelmap_id ||
71 props->checked_pixelmap_id ||
72 props->unchecked_disabled_pixelmap_id ||
73 props->checked_disabled_pixelmap_id)
74 {
75 gx_checkbox_pixelmap_set(button,
76 props->unchecked_pixelmap_id,
77 props->checked_pixelmap_id,
78 props->unchecked_disabled_pixelmap_id,
79 props->checked_disabled_pixelmap_id);
80 }
81 }
82 return status;
83 }
84
gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)85 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
86 {
87 UINT status;
88 GX_PIXELMAP_BUTTON *button = (GX_PIXELMAP_BUTTON *) control_block;
89 GX_PIXELMAP_BUTTON_PROPERTIES *props = (GX_PIXELMAP_BUTTON_PROPERTIES *) info->properties;
90 status = gx_pixelmap_button_create(button, info->widget_name, parent,
91 props->normal_pixelmap_id,
92 props->selected_pixelmap_id,
93 props->disabled_pixelmap_id,
94 info->style, info->widget_id, &info->size);
95 return status;
96 }
97
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)98 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
99 {
100 UINT status;
101 GX_PROMPT *prompt = (GX_PROMPT *) control_block;
102 GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
103 status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
104 if (status == GX_SUCCESS)
105 {
106 gx_prompt_font_set(prompt, props->font_id);
107 #if defined(GUIX_5_4_0_COMPATIBILITY)
108 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
109 #else
110 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
111 #endif
112 }
113 return status;
114 }
115
gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)116 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
117 {
118 UINT status;
119 GX_NUMERIC_PROMPT *prompt = (GX_NUMERIC_PROMPT *) control_block;
120 GX_NUMERIC_PROMPT_PROPERTIES *props = (GX_NUMERIC_PROMPT_PROPERTIES *) info->properties;
121 status = gx_numeric_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
122 if (status == GX_SUCCESS)
123 {
124 gx_prompt_font_set((GX_PROMPT *)prompt, props->font_id);
125 #if defined(GUIX_5_4_0_COMPATIBILITY)
126 gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id);
127 #else
128 gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
129 #endif
130 if(!props->string_id)
131 {
132 gx_numeric_prompt_value_set(prompt, props->numeric_prompt_value);
133 }
134 if(props->format_func)
135 {
136 gx_numeric_prompt_format_function_set(prompt, props->format_func);
137 }
138 }
139 return status;
140 }
141
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)142 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
143 {
144 UINT status;
145 GX_WINDOW *window = (GX_WINDOW *) control_block;
146 GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
147 status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
148 if (status == GX_SUCCESS)
149 {
150 if (props->wallpaper_id)
151 {
152 gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
153 }
154 }
155 return status;
156 }
157
gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)158 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
159 {
160 UINT status;
161 GX_DROP_LIST *list = (GX_DROP_LIST *) control_block;
162 GX_DROP_LIST_PROPERTIES *props = (GX_DROP_LIST_PROPERTIES *) info->properties;
163 status = gx_drop_list_create(list, info->widget_name, parent,
164 props->total_rows, props->open_height,
165 props->callback, info->style, info->widget_id, &info->size);
166 if (status == GX_SUCCESS)
167 {
168 if (props->pixelmap_id)
169 {
170 gx_drop_list_pixelmap_set(list, props->pixelmap_id);
171 }
172 if (props->wallpaper_id)
173 {
174 gx_window_wallpaper_set((GX_WINDOW *)&list->gx_drop_list_popup.gx_popup_list_list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
175 }
176 }
177 return status;
178 }
179 GX_WINDOW_PROPERTIES v_menu_window_3_properties =
180 {
181 0 /* wallpaper pixelmap id */
182 };
183 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_3_message_3_properties =
184 {
185 GX_PIXELMAP_ID_MAP_ON, /* normal pixelmap id */
186 GX_PIXELMAP_ID_MAP_PUSHED, /* selected pixelmap id */
187 0 /* disabled pixelmap id */
188 };
189 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_3_weather_3_properties =
190 {
191 GX_PIXELMAP_ID_SETTINGS_ON, /* normal pixelmap id */
192 GX_PIXELMAP_ID_MESSAGES_PUSHED, /* selected pixelmap id */
193 0 /* disabled pixelmap id */
194 };
195
196 GX_CONST GX_STUDIO_WIDGET v_menu_window_3_weather_3_define =
197 {
198 "weather_3",
199 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
200 ID_WEATHER, /* widget id */
201 #if defined(GX_WIDGET_USER_DATA)
202 0, /* user data */
203 #endif
204 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
205 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
206 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
207 GX_COLOR_ID_BTN_LOWER, /* normal color id */
208 GX_COLOR_ID_BTN_UPPER, /* selected color id */
209 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
210 gx_studio_pixelmap_button_create, /* create function */
211 GX_NULL, /* drawing function override */
212 GX_NULL, /* event function override */
213 {155, 248, 209, 300}, /* widget size */
214 GX_NULL, /* no next widget */
215 GX_NULL, /* no child widgets */
216 offsetof(V_MENU_WINDOW_3_CONTROL_BLOCK, v_menu_window_3_weather_3), /* control block */
217 (void *) &v_menu_window_3_weather_3_properties /* extended properties */
218 };
219
220 GX_CONST GX_STUDIO_WIDGET v_menu_window_3_message_3_define =
221 {
222 "message_3",
223 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
224 ID_MESSAGE, /* widget id */
225 #if defined(GX_WIDGET_USER_DATA)
226 0, /* user data */
227 #endif
228 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
229 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
230 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
231 GX_COLOR_ID_BTN_LOWER, /* normal color id */
232 GX_COLOR_ID_BTN_UPPER, /* selected color id */
233 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
234 gx_studio_pixelmap_button_create, /* create function */
235 GX_NULL, /* drawing function override */
236 GX_NULL, /* event function override */
237 {155, 188, 209, 240}, /* widget size */
238 &v_menu_window_3_weather_3_define, /* next widget definition */
239 GX_NULL, /* no child widgets */
240 offsetof(V_MENU_WINDOW_3_CONTROL_BLOCK, v_menu_window_3_message_3), /* control block */
241 (void *) &v_menu_window_3_message_3_properties /* extended properties */
242 };
243
244 GX_CONST GX_STUDIO_WIDGET v_menu_window_3_define =
245 {
246 "v_menu_window_3",
247 GX_TYPE_WINDOW, /* widget type */
248 GX_ID_NONE, /* widget id */
249 #if defined(GX_WIDGET_USER_DATA)
250 0, /* user data */
251 #endif
252 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
253 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
254 sizeof(V_MENU_WINDOW_3_CONTROL_BLOCK), /* control block size */
255 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
256 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
257 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
258 gx_studio_window_create, /* create function */
259 GX_NULL, /* drawing function override */
260 GX_NULL, /* event function override */
261 {145, 179, 222, 426}, /* widget size */
262 GX_NULL, /* next widget */
263 &v_menu_window_3_message_3_define, /* child widget */
264 0, /* control block */
265 (void *) &v_menu_window_3_properties /* extended properties */
266 };
267 GX_WINDOW_PROPERTIES v_menu_window_2_properties =
268 {
269 0 /* wallpaper pixelmap id */
270 };
271 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_2_message_2_properties =
272 {
273 GX_PIXELMAP_ID_GAMES_ON, /* normal pixelmap id */
274 GX_PIXELMAP_ID_GAMES_PUSHED, /* selected pixelmap id */
275 0 /* disabled pixelmap id */
276 };
277 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_2_weather_2_properties =
278 {
279 GX_PIXELMAP_ID_CLOCK_ON, /* normal pixelmap id */
280 GX_PIXELMAP_ID_CLOCK_PUSHED, /* selected pixelmap id */
281 0 /* disabled pixelmap id */
282 };
283 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_2_calculator_2_properties =
284 {
285 GX_PIXELMAP_ID_CONTACTS_ON, /* normal pixelmap id */
286 GX_PIXELMAP_ID_CONTACTS_PUSHED, /* selected pixelmap id */
287 0 /* disabled pixelmap id */
288 };
289 GX_PIXELMAP_BUTTON_PROPERTIES v_menu_window_2_healthy_2_properties =
290 {
291 GX_PIXELMAP_ID_ABOUT_ON, /* normal pixelmap id */
292 GX_PIXELMAP_ID_ABOUT_PUSHED, /* selected pixelmap id */
293 0 /* disabled pixelmap id */
294 };
295
296 GX_CONST GX_STUDIO_WIDGET v_menu_window_2_healthy_2_define =
297 {
298 "healthy_2",
299 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
300 ID_HEALTHY, /* widget id */
301 #if defined(GX_WIDGET_USER_DATA)
302 0, /* user data */
303 #endif
304 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
305 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
306 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
307 GX_COLOR_ID_BTN_LOWER, /* normal color id */
308 GX_COLOR_ID_BTN_UPPER, /* selected color id */
309 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
310 gx_studio_pixelmap_button_create, /* create function */
311 GX_NULL, /* drawing function override */
312 GX_NULL, /* event function override */
313 {155, 368, 209, 420}, /* widget size */
314 GX_NULL, /* no next widget */
315 GX_NULL, /* no child widgets */
316 offsetof(V_MENU_WINDOW_2_CONTROL_BLOCK, v_menu_window_2_healthy_2), /* control block */
317 (void *) &v_menu_window_2_healthy_2_properties /* extended properties */
318 };
319
320 GX_CONST GX_STUDIO_WIDGET v_menu_window_2_calculator_2_define =
321 {
322 "calculator_2",
323 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
324 ID_CALCULATOR, /* widget id */
325 #if defined(GX_WIDGET_USER_DATA)
326 0, /* user data */
327 #endif
328 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
329 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
330 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
331 GX_COLOR_ID_BTN_LOWER, /* normal color id */
332 GX_COLOR_ID_BTN_UPPER, /* selected color id */
333 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
334 gx_studio_pixelmap_button_create, /* create function */
335 GX_NULL, /* drawing function override */
336 GX_NULL, /* event function override */
337 {155, 308, 209, 360}, /* widget size */
338 &v_menu_window_2_healthy_2_define, /* next widget definition */
339 GX_NULL, /* no child widgets */
340 offsetof(V_MENU_WINDOW_2_CONTROL_BLOCK, v_menu_window_2_calculator_2), /* control block */
341 (void *) &v_menu_window_2_calculator_2_properties /* extended properties */
342 };
343
344 GX_CONST GX_STUDIO_WIDGET v_menu_window_2_weather_2_define =
345 {
346 "weather_2",
347 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
348 ID_WEATHER, /* widget id */
349 #if defined(GX_WIDGET_USER_DATA)
350 0, /* user data */
351 #endif
352 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
353 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
354 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
355 GX_COLOR_ID_BTN_LOWER, /* normal color id */
356 GX_COLOR_ID_BTN_UPPER, /* selected color id */
357 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
358 gx_studio_pixelmap_button_create, /* create function */
359 GX_NULL, /* drawing function override */
360 GX_NULL, /* event function override */
361 {155, 248, 209, 300}, /* widget size */
362 &v_menu_window_2_calculator_2_define, /* next widget definition */
363 GX_NULL, /* no child widgets */
364 offsetof(V_MENU_WINDOW_2_CONTROL_BLOCK, v_menu_window_2_weather_2), /* control block */
365 (void *) &v_menu_window_2_weather_2_properties /* extended properties */
366 };
367
368 GX_CONST GX_STUDIO_WIDGET v_menu_window_2_message_2_define =
369 {
370 "message_2",
371 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
372 ID_MESSAGE, /* widget id */
373 #if defined(GX_WIDGET_USER_DATA)
374 0, /* user data */
375 #endif
376 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
377 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
378 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
379 GX_COLOR_ID_BTN_LOWER, /* normal color id */
380 GX_COLOR_ID_BTN_UPPER, /* selected color id */
381 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
382 gx_studio_pixelmap_button_create, /* create function */
383 GX_NULL, /* drawing function override */
384 GX_NULL, /* event function override */
385 {155, 188, 209, 240}, /* widget size */
386 &v_menu_window_2_weather_2_define, /* next widget definition */
387 GX_NULL, /* no child widgets */
388 offsetof(V_MENU_WINDOW_2_CONTROL_BLOCK, v_menu_window_2_message_2), /* control block */
389 (void *) &v_menu_window_2_message_2_properties /* extended properties */
390 };
391
392 GX_CONST GX_STUDIO_WIDGET v_menu_window_2_define =
393 {
394 "v_menu_window_2",
395 GX_TYPE_WINDOW, /* widget type */
396 GX_ID_NONE, /* widget id */
397 #if defined(GX_WIDGET_USER_DATA)
398 0, /* user data */
399 #endif
400 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
401 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
402 sizeof(V_MENU_WINDOW_2_CONTROL_BLOCK), /* control block size */
403 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
404 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
405 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
406 gx_studio_window_create, /* create function */
407 GX_NULL, /* drawing function override */
408 GX_NULL, /* event function override */
409 {145, 179, 222, 426}, /* widget size */
410 GX_NULL, /* next widget */
411 &v_menu_window_2_message_2_define, /* child widget */
412 0, /* control block */
413 (void *) &v_menu_window_2_properties /* extended properties */
414 };
415 GX_WINDOW_PROPERTIES h_menu_window_2_properties =
416 {
417 0 /* wallpaper pixelmap id */
418 };
419 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_2_games_properties =
420 {
421 GX_PIXELMAP_ID_GAMES_ON, /* normal pixelmap id */
422 GX_PIXELMAP_ID_GAMES_PUSHED, /* selected pixelmap id */
423 0 /* disabled pixelmap id */
424 };
425 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_2_clock_properties =
426 {
427 GX_PIXELMAP_ID_CLOCK_ON, /* normal pixelmap id */
428 GX_PIXELMAP_ID_CLOCK_PUSHED, /* selected pixelmap id */
429 0 /* disabled pixelmap id */
430 };
431 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_2_contacts_properties =
432 {
433 GX_PIXELMAP_ID_CONTACTS_ON, /* normal pixelmap id */
434 GX_PIXELMAP_ID_CONTACTS_PUSHED, /* selected pixelmap id */
435 0 /* disabled pixelmap id */
436 };
437 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_2_about_properties =
438 {
439 GX_PIXELMAP_ID_ABOUT_ON, /* normal pixelmap id */
440 GX_PIXELMAP_ID_ABOUT_PUSHED, /* selected pixelmap id */
441 0 /* disabled pixelmap id */
442 };
443
444 GX_CONST GX_STUDIO_WIDGET h_menu_window_2_about_define =
445 {
446 "about",
447 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
448 ID_ABOUT, /* widget id */
449 #if defined(GX_WIDGET_USER_DATA)
450 0, /* user data */
451 #endif
452 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
453 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
454 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
455 GX_COLOR_ID_BTN_LOWER, /* normal color id */
456 GX_COLOR_ID_BTN_UPPER, /* selected color id */
457 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
458 gx_studio_pixelmap_button_create, /* create function */
459 GX_NULL, /* drawing function override */
460 GX_NULL, /* event function override */
461 {393, 337, 447, 389}, /* widget size */
462 GX_NULL, /* no next widget */
463 GX_NULL, /* no child widgets */
464 offsetof(H_MENU_WINDOW_2_CONTROL_BLOCK, h_menu_window_2_about), /* control block */
465 (void *) &h_menu_window_2_about_properties /* extended properties */
466 };
467
468 GX_CONST GX_STUDIO_WIDGET h_menu_window_2_contacts_define =
469 {
470 "contacts",
471 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
472 ID_CONTACTS, /* widget id */
473 #if defined(GX_WIDGET_USER_DATA)
474 0, /* user data */
475 #endif
476 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
477 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
478 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
479 GX_COLOR_ID_BTN_LOWER, /* normal color id */
480 GX_COLOR_ID_BTN_UPPER, /* selected color id */
481 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
482 gx_studio_pixelmap_button_create, /* create function */
483 GX_NULL, /* drawing function override */
484 GX_NULL, /* event function override */
485 {326, 337, 380, 389}, /* widget size */
486 &h_menu_window_2_about_define, /* next widget definition */
487 GX_NULL, /* no child widgets */
488 offsetof(H_MENU_WINDOW_2_CONTROL_BLOCK, h_menu_window_2_contacts), /* control block */
489 (void *) &h_menu_window_2_contacts_properties /* extended properties */
490 };
491
492 GX_CONST GX_STUDIO_WIDGET h_menu_window_2_clock_define =
493 {
494 "clock",
495 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
496 ID_CLOCK, /* widget id */
497 #if defined(GX_WIDGET_USER_DATA)
498 0, /* user data */
499 #endif
500 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
501 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
502 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
503 GX_COLOR_ID_BTN_LOWER, /* normal color id */
504 GX_COLOR_ID_BTN_UPPER, /* selected color id */
505 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
506 gx_studio_pixelmap_button_create, /* create function */
507 GX_NULL, /* drawing function override */
508 GX_NULL, /* event function override */
509 {259, 337, 313, 389}, /* widget size */
510 &h_menu_window_2_contacts_define, /* next widget definition */
511 GX_NULL, /* no child widgets */
512 offsetof(H_MENU_WINDOW_2_CONTROL_BLOCK, h_menu_window_2_clock), /* control block */
513 (void *) &h_menu_window_2_clock_properties /* extended properties */
514 };
515
516 GX_CONST GX_STUDIO_WIDGET h_menu_window_2_games_define =
517 {
518 "games",
519 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
520 ID_GAMES, /* widget id */
521 #if defined(GX_WIDGET_USER_DATA)
522 0, /* user data */
523 #endif
524 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
525 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
526 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
527 GX_COLOR_ID_BTN_LOWER, /* normal color id */
528 GX_COLOR_ID_BTN_UPPER, /* selected color id */
529 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
530 gx_studio_pixelmap_button_create, /* create function */
531 GX_NULL, /* drawing function override */
532 GX_NULL, /* event function override */
533 {192, 337, 246, 389}, /* widget size */
534 &h_menu_window_2_clock_define, /* next widget definition */
535 GX_NULL, /* no child widgets */
536 offsetof(H_MENU_WINDOW_2_CONTROL_BLOCK, h_menu_window_2_games), /* control block */
537 (void *) &h_menu_window_2_games_properties /* extended properties */
538 };
539
540 GX_CONST GX_STUDIO_WIDGET h_menu_window_2_define =
541 {
542 "h_menu_window_2",
543 GX_TYPE_WINDOW, /* widget type */
544 GX_ID_NONE, /* widget id */
545 #if defined(GX_WIDGET_USER_DATA)
546 0, /* user data */
547 #endif
548 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
549 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
550 sizeof(H_MENU_WINDOW_2_CONTROL_BLOCK), /* control block size */
551 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
552 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
553 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
554 gx_studio_window_create, /* create function */
555 GX_NULL, /* drawing function override */
556 GX_NULL, /* event function override */
557 {182, 337, 458, 389}, /* widget size */
558 GX_NULL, /* next widget */
559 &h_menu_window_2_games_define, /* child widget */
560 0, /* control block */
561 (void *) &h_menu_window_2_properties /* extended properties */
562 };
563 GX_WINDOW_PROPERTIES h_menu_window_3_properties =
564 {
565 0 /* wallpaper pixelmap id */
566 };
567 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_3_map_1_properties =
568 {
569 GX_PIXELMAP_ID_MAP_ON, /* normal pixelmap id */
570 GX_PIXELMAP_ID_MAP_PUSHED, /* selected pixelmap id */
571 0 /* disabled pixelmap id */
572 };
573 GX_PIXELMAP_BUTTON_PROPERTIES h_menu_window_3_settings_1_properties =
574 {
575 GX_PIXELMAP_ID_SETTINGS_ON, /* normal pixelmap id */
576 GX_PIXELMAP_ID_SETTINGS_PUSHED, /* selected pixelmap id */
577 0 /* disabled pixelmap id */
578 };
579
580 GX_CONST GX_STUDIO_WIDGET h_menu_window_3_settings_1_define =
581 {
582 "settings_1",
583 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
584 ID_SETTINGS, /* widget id */
585 #if defined(GX_WIDGET_USER_DATA)
586 0, /* user data */
587 #endif
588 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
589 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
590 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
591 GX_COLOR_ID_BTN_LOWER, /* normal color id */
592 GX_COLOR_ID_BTN_UPPER, /* selected color id */
593 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
594 gx_studio_pixelmap_button_create, /* create function */
595 GX_NULL, /* drawing function override */
596 GX_NULL, /* event function override */
597 {272, 284, 326, 336}, /* widget size */
598 GX_NULL, /* no next widget */
599 GX_NULL, /* no child widgets */
600 offsetof(H_MENU_WINDOW_3_CONTROL_BLOCK, h_menu_window_3_settings_1), /* control block */
601 (void *) &h_menu_window_3_settings_1_properties /* extended properties */
602 };
603
604 GX_CONST GX_STUDIO_WIDGET h_menu_window_3_map_1_define =
605 {
606 "map_1",
607 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
608 ID_MAP, /* widget id */
609 #if defined(GX_WIDGET_USER_DATA)
610 0, /* user data */
611 #endif
612 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
613 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
614 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
615 GX_COLOR_ID_BTN_LOWER, /* normal color id */
616 GX_COLOR_ID_BTN_UPPER, /* selected color id */
617 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
618 gx_studio_pixelmap_button_create, /* create function */
619 GX_NULL, /* drawing function override */
620 GX_NULL, /* event function override */
621 {205, 284, 259, 336}, /* widget size */
622 &h_menu_window_3_settings_1_define, /* next widget definition */
623 GX_NULL, /* no child widgets */
624 offsetof(H_MENU_WINDOW_3_CONTROL_BLOCK, h_menu_window_3_map_1), /* control block */
625 (void *) &h_menu_window_3_map_1_properties /* extended properties */
626 };
627
628 GX_CONST GX_STUDIO_WIDGET h_menu_window_3_define =
629 {
630 "h_menu_window_3",
631 GX_TYPE_WINDOW, /* widget type */
632 GX_ID_NONE, /* widget id */
633 #if defined(GX_WIDGET_USER_DATA)
634 0, /* user data */
635 #endif
636 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
637 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
638 sizeof(H_MENU_WINDOW_3_CONTROL_BLOCK), /* control block size */
639 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
640 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
641 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
642 gx_studio_window_create, /* create function */
643 GX_NULL, /* drawing function override */
644 GX_NULL, /* event function override */
645 {195, 284, 471, 336}, /* widget size */
646 GX_NULL, /* next widget */
647 &h_menu_window_3_map_1_define, /* child widget */
648 0, /* control block */
649 (void *) &h_menu_window_3_properties /* extended properties */
650 };
651 GX_WINDOW_PROPERTIES main_screen_properties =
652 {
653 0 /* wallpaper pixelmap id */
654 };
655 GX_WINDOW_PROPERTIES main_screen_h_menu_window_properties =
656 {
657 0 /* wallpaper pixelmap id */
658 };
659 GX_WINDOW_PROPERTIES main_screen_h_menu_window_1_properties =
660 {
661 0 /* wallpaper pixelmap id */
662 };
663 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_message_properties =
664 {
665 GX_PIXELMAP_ID_MESSAGES_ON, /* normal pixelmap id */
666 GX_PIXELMAP_ID_MESSAGES_PUSHED, /* selected pixelmap id */
667 0 /* disabled pixelmap id */
668 };
669 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_weather_properties =
670 {
671 GX_PIXELMAP_ID_WEATHER_ON, /* normal pixelmap id */
672 GX_PIXELMAP_ID_WEATHER_PUSHED, /* selected pixelmap id */
673 0 /* disabled pixelmap id */
674 };
675 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_calculator_properties =
676 {
677 GX_PIXELMAP_ID_CALCULATOR_ON, /* normal pixelmap id */
678 GX_PIXELMAP_ID_CALCULATOR_PUSHED, /* selected pixelmap id */
679 0 /* disabled pixelmap id */
680 };
681 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_healthy_properties =
682 {
683 GX_PIXELMAP_ID_HEALTH_ON, /* normal pixelmap id */
684 GX_PIXELMAP_ID_HEALTH_PUSHED, /* selected pixelmap id */
685 0 /* disabled pixelmap id */
686 };
687 GX_WINDOW_PROPERTIES main_screen_v_menu_window_properties =
688 {
689 0 /* wallpaper pixelmap id */
690 };
691 GX_WINDOW_PROPERTIES main_screen_v_menu_window_1_properties =
692 {
693 0 /* wallpaper pixelmap id */
694 };
695 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_message_1_properties =
696 {
697 GX_PIXELMAP_ID_MESSAGES_ON, /* normal pixelmap id */
698 GX_PIXELMAP_ID_MESSAGES_PUSHED, /* selected pixelmap id */
699 0 /* disabled pixelmap id */
700 };
701 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_weather_1_properties =
702 {
703 GX_PIXELMAP_ID_WEATHER_ON, /* normal pixelmap id */
704 GX_PIXELMAP_ID_WEATHER_PUSHED, /* selected pixelmap id */
705 0 /* disabled pixelmap id */
706 };
707 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_calculator_1_properties =
708 {
709 GX_PIXELMAP_ID_CALCULATOR_ON, /* normal pixelmap id */
710 GX_PIXELMAP_ID_CALCULATOR_PUSHED, /* selected pixelmap id */
711 0 /* disabled pixelmap id */
712 };
713 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_healthy_1_properties =
714 {
715 GX_PIXELMAP_ID_HEALTH_ON, /* normal pixelmap id */
716 GX_PIXELMAP_ID_HEALTH_PUSHED, /* selected pixelmap id */
717 0 /* disabled pixelmap id */
718 };
719 GX_PROMPT_PROPERTIES main_screen_prompt_properties =
720 {
721 GX_STRING_ID_STRING_2, /* string id */
722 GX_FONT_ID_PROMPT, /* font id */
723 GX_COLOR_ID_SELECTED_FILL, /* normal text color */
724 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
725 GX_COLOR_ID_SELECTED_FILL /* disabled text color */
726 };
727 GX_CHECKBOX_PROPERTIES main_screen_checkbox_properties =
728 {
729 GX_STRING_ID_STRING_6, /* string id */
730 GX_FONT_ID_BUTTON, /* font id */
731 GX_COLOR_ID_BTN_TEXT, /* normal text color */
732 GX_COLOR_ID_BTN_TEXT, /* selected text color */
733 GX_COLOR_ID_BTN_TEXT, /* disabled text color */
734 0, /* unchecked pixelmap id */
735 0, /* checked pixelmap id */
736 0, /* unchecked disabled pixelmap id */
737 0 /* checked disabled pixelmap id */
738 };
739 GX_NUMERIC_PROMPT_PROPERTIES main_screen_v_animation_count_prompt_properties =
740 {
741 0, /* string id */
742 GX_FONT_ID_PROMPT, /* font id */
743 GX_COLOR_ID_TEXT, /* normal text color */
744 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
745 GX_COLOR_ID_TEXT, /* disabled text color */
746 GX_NULL, /* format function */
747 0 /* numeric prompt value */
748 };
749 GX_NUMERIC_PROMPT_PROPERTIES main_screen_h_animation_count_prompt_properties =
750 {
751 0, /* string id */
752 GX_FONT_ID_PROMPT, /* font id */
753 GX_COLOR_ID_TEXT, /* normal text color */
754 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
755 GX_COLOR_ID_TEXT, /* disabled text color */
756 GX_NULL, /* format function */
757 0 /* numeric prompt value */
758 };
759 GX_DROP_LIST_PROPERTIES main_screen_easing_function_drop_list_properties =
760 {
761 0, /* widget pixelmap id */
762 0, /* popup list wallpaper pixelmap id */
763 GX_NULL, /* callback function */
764 31, /* total rows */
765 250 /* open height */
766 };
767 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_drop_list_button_properties =
768 {
769 GX_PIXELMAP_ID_ICON_DROPDOWN, /* normal pixelmap id */
770 0, /* selected pixelmap id */
771 0 /* disabled pixelmap id */
772 };
773 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_pixelmap_button_properties =
774 {
775 GX_PIXELMAP_ID_ICON_DROPDOWN, /* normal pixelmap id */
776 0, /* selected pixelmap id */
777 0 /* disabled pixelmap id */
778 };
779 GX_PROMPT_PROPERTIES main_screen_prompt_1_properties =
780 {
781 GX_STRING_ID_STRING_11, /* string id */
782 GX_FONT_ID_PROMPT, /* font id */
783 GX_COLOR_ID_TEXT, /* normal text color */
784 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
785 GX_COLOR_ID_DISABLED_TEXT /* disabled text color */
786 };
787
788 GX_CONST GX_STUDIO_WIDGET main_screen_healthy_define =
789 {
790 "healthy",
791 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
792 ID_HEALTHY, /* widget id */
793 #if defined(GX_WIDGET_USER_DATA)
794 0, /* user data */
795 #endif
796 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
797 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
798 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
799 GX_COLOR_ID_BTN_LOWER, /* normal color id */
800 GX_COLOR_ID_BTN_UPPER, /* selected color id */
801 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
802 gx_studio_pixelmap_button_create, /* create function */
803 GX_NULL, /* drawing function override */
804 GX_NULL, /* event function override */
805 {280, 96, 334, 148}, /* widget size */
806 GX_NULL, /* no next widget */
807 GX_NULL, /* no child widgets */
808 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_healthy), /* control block */
809 (void *) &main_screen_healthy_properties /* extended properties */
810 };
811
812 GX_CONST GX_STUDIO_WIDGET main_screen_calculator_define =
813 {
814 "calculator",
815 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
816 ID_CALCULATOR, /* widget id */
817 #if defined(GX_WIDGET_USER_DATA)
818 0, /* user data */
819 #endif
820 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
821 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
822 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
823 GX_COLOR_ID_BTN_LOWER, /* normal color id */
824 GX_COLOR_ID_BTN_UPPER, /* selected color id */
825 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
826 gx_studio_pixelmap_button_create, /* create function */
827 GX_NULL, /* drawing function override */
828 GX_NULL, /* event function override */
829 {213, 96, 267, 148}, /* widget size */
830 &main_screen_healthy_define, /* next widget definition */
831 GX_NULL, /* no child widgets */
832 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_calculator), /* control block */
833 (void *) &main_screen_calculator_properties /* extended properties */
834 };
835
836 GX_CONST GX_STUDIO_WIDGET main_screen_weather_define =
837 {
838 "weather",
839 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
840 ID_WEATHER, /* widget id */
841 #if defined(GX_WIDGET_USER_DATA)
842 0, /* user data */
843 #endif
844 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
845 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
846 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
847 GX_COLOR_ID_BTN_LOWER, /* normal color id */
848 GX_COLOR_ID_BTN_UPPER, /* selected color id */
849 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
850 gx_studio_pixelmap_button_create, /* create function */
851 GX_NULL, /* drawing function override */
852 GX_NULL, /* event function override */
853 {146, 96, 200, 148}, /* widget size */
854 &main_screen_calculator_define, /* next widget definition */
855 GX_NULL, /* no child widgets */
856 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_weather), /* control block */
857 (void *) &main_screen_weather_properties /* extended properties */
858 };
859
860 GX_CONST GX_STUDIO_WIDGET main_screen_message_define =
861 {
862 "message",
863 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
864 ID_MESSAGE, /* widget id */
865 #if defined(GX_WIDGET_USER_DATA)
866 0, /* user data */
867 #endif
868 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
869 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
870 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
871 GX_COLOR_ID_BTN_LOWER, /* normal color id */
872 GX_COLOR_ID_BTN_UPPER, /* selected color id */
873 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
874 gx_studio_pixelmap_button_create, /* create function */
875 GX_NULL, /* drawing function override */
876 GX_NULL, /* event function override */
877 {79, 96, 133, 148}, /* widget size */
878 &main_screen_weather_define, /* next widget definition */
879 GX_NULL, /* no child widgets */
880 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_message), /* control block */
881 (void *) &main_screen_message_properties /* extended properties */
882 };
883
884 GX_CONST GX_STUDIO_WIDGET main_screen_h_menu_window_1_define =
885 {
886 "h_menu_window_1",
887 GX_TYPE_WINDOW, /* widget type */
888 GX_ID_NONE, /* widget id */
889 #if defined(GX_WIDGET_USER_DATA)
890 0, /* user data */
891 #endif
892 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
893 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
894 sizeof(GX_WINDOW), /* control block size */
895 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
896 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
897 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
898 gx_studio_window_create, /* create function */
899 GX_NULL, /* drawing function override */
900 GX_NULL, /* event function override */
901 {69, 96, 347, 148}, /* widget size */
902 GX_NULL, /* no next widget */
903 &main_screen_message_define, /* child widget definition */
904 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_h_menu_window_1), /* control block */
905 (void *) &main_screen_h_menu_window_1_properties /* extended properties */
906 };
907
908 GX_CONST GX_STUDIO_WIDGET main_screen_healthy_1_define =
909 {
910 "healthy_1",
911 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
912 ID_HEALTHY, /* widget id */
913 #if defined(GX_WIDGET_USER_DATA)
914 0, /* user data */
915 #endif
916 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
917 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
918 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
919 GX_COLOR_ID_BTN_LOWER, /* normal color id */
920 GX_COLOR_ID_BTN_UPPER, /* selected color id */
921 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
922 gx_studio_pixelmap_button_create, /* create function */
923 GX_NULL, /* drawing function override */
924 GX_NULL, /* event function override */
925 {268, 409, 322, 461}, /* widget size */
926 GX_NULL, /* no next widget */
927 GX_NULL, /* no child widgets */
928 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_healthy_1), /* control block */
929 (void *) &main_screen_healthy_1_properties /* extended properties */
930 };
931
932 GX_CONST GX_STUDIO_WIDGET main_screen_calculator_1_define =
933 {
934 "calculator_1",
935 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
936 ID_CALCULATOR, /* widget id */
937 #if defined(GX_WIDGET_USER_DATA)
938 0, /* user data */
939 #endif
940 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
941 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
942 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
943 GX_COLOR_ID_BTN_LOWER, /* normal color id */
944 GX_COLOR_ID_BTN_UPPER, /* selected color id */
945 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
946 gx_studio_pixelmap_button_create, /* create function */
947 GX_NULL, /* drawing function override */
948 GX_NULL, /* event function override */
949 {268, 349, 322, 401}, /* widget size */
950 &main_screen_healthy_1_define, /* next widget definition */
951 GX_NULL, /* no child widgets */
952 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_calculator_1), /* control block */
953 (void *) &main_screen_calculator_1_properties /* extended properties */
954 };
955
956 GX_CONST GX_STUDIO_WIDGET main_screen_weather_1_define =
957 {
958 "weather_1",
959 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
960 ID_WEATHER, /* widget id */
961 #if defined(GX_WIDGET_USER_DATA)
962 0, /* user data */
963 #endif
964 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
965 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
966 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
967 GX_COLOR_ID_BTN_LOWER, /* normal color id */
968 GX_COLOR_ID_BTN_UPPER, /* selected color id */
969 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
970 gx_studio_pixelmap_button_create, /* create function */
971 GX_NULL, /* drawing function override */
972 GX_NULL, /* event function override */
973 {268, 289, 322, 341}, /* widget size */
974 &main_screen_calculator_1_define, /* next widget definition */
975 GX_NULL, /* no child widgets */
976 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_weather_1), /* control block */
977 (void *) &main_screen_weather_1_properties /* extended properties */
978 };
979
980 GX_CONST GX_STUDIO_WIDGET main_screen_message_1_define =
981 {
982 "message_1",
983 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
984 ID_MESSAGE, /* widget id */
985 #if defined(GX_WIDGET_USER_DATA)
986 0, /* user data */
987 #endif
988 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
989 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
990 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
991 GX_COLOR_ID_BTN_LOWER, /* normal color id */
992 GX_COLOR_ID_BTN_UPPER, /* selected color id */
993 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
994 gx_studio_pixelmap_button_create, /* create function */
995 GX_NULL, /* drawing function override */
996 GX_NULL, /* event function override */
997 {268, 229, 322, 281}, /* widget size */
998 &main_screen_weather_1_define, /* next widget definition */
999 GX_NULL, /* no child widgets */
1000 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_message_1), /* control block */
1001 (void *) &main_screen_message_1_properties /* extended properties */
1002 };
1003
1004 GX_CONST GX_STUDIO_WIDGET main_screen_v_menu_window_1_define =
1005 {
1006 "v_menu_window_1",
1007 GX_TYPE_WINDOW, /* widget type */
1008 GX_ID_NONE, /* widget id */
1009 #if defined(GX_WIDGET_USER_DATA)
1010 0, /* user data */
1011 #endif
1012 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT, /* style flags */
1013 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1014 sizeof(GX_WINDOW), /* control block size */
1015 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1016 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1017 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1018 gx_studio_window_create, /* create function */
1019 GX_NULL, /* drawing function override */
1020 GX_NULL, /* event function override */
1021 {258, 220, 335, 467}, /* widget size */
1022 GX_NULL, /* no next widget */
1023 &main_screen_message_1_define, /* child widget definition */
1024 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_v_menu_window_1), /* control block */
1025 (void *) &main_screen_v_menu_window_1_properties /* extended properties */
1026 };
1027
1028 GX_CONST GX_STUDIO_WIDGET main_screen_pixelmap_button_define =
1029 {
1030 "pixelmap_button",
1031 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
1032 ID_DROP_LIST_BUTTON, /* widget id */
1033 #if defined(GX_WIDGET_USER_DATA)
1034 0, /* user data */
1035 #endif
1036 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED, /* style flags */
1037 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1038 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
1039 GX_COLOR_ID_BTN_LOWER, /* normal color id */
1040 GX_COLOR_ID_BTN_UPPER, /* selected color id */
1041 GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
1042 gx_studio_pixelmap_button_create, /* create function */
1043 GX_NULL, /* drawing function override */
1044 GX_NULL, /* event function override */
1045 {589, 169, 626, 206}, /* widget size */
1046 GX_NULL, /* no next widget */
1047 GX_NULL, /* no child widgets */
1048 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_pixelmap_button), /* control block */
1049 (void *) &main_screen_pixelmap_button_properties /* extended properties */
1050 };
1051
1052 GX_CONST GX_STUDIO_WIDGET main_screen_drop_list_button_define =
1053 {
1054 "drop_list_button",
1055 GX_TYPE_PIXELMAP_BUTTON, /* widget type */
1056 ID_DROP_LIST_BUTTON, /* widget id */
1057 #if defined(GX_WIDGET_USER_DATA)
1058 0, /* user data */
1059 #endif
1060 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED, /* style flags */
1061 0, /* status flags */
1062 sizeof(GX_PIXELMAP_BUTTON), /* control block size */
1063 GX_COLOR_ID_BTN_LOWER, /* normal color id */
1064 GX_COLOR_ID_BTN_UPPER, /* selected color id */
1065 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
1066 gx_studio_pixelmap_button_create, /* create function */
1067 GX_NULL, /* drawing function override */
1068 GX_NULL, /* event function override */
1069 {762, 166, 809, 208}, /* widget size */
1070 &main_screen_pixelmap_button_define, /* next widget definition */
1071 GX_NULL, /* no child widgets */
1072 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_drop_list_button), /* control block */
1073 (void *) &main_screen_drop_list_button_properties /* extended properties */
1074 };
1075
1076 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_1_define =
1077 {
1078 "prompt_1",
1079 GX_TYPE_PROMPT, /* widget type */
1080 GX_ID_NONE, /* widget id */
1081 #if defined(GX_WIDGET_USER_DATA)
1082 0, /* user data */
1083 #endif
1084 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */
1085 0, /* status flags */
1086 sizeof(GX_PROMPT), /* control block size */
1087 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
1088 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
1089 GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
1090 gx_studio_prompt_create, /* create function */
1091 GX_NULL, /* drawing function override */
1092 GX_NULL, /* event function override */
1093 {462, 142, 581, 159}, /* widget size */
1094 GX_NULL, /* no next widget */
1095 GX_NULL, /* no child widgets */
1096 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt_1), /* control block */
1097 (void *) &main_screen_prompt_1_properties /* extended properties */
1098 };
1099
1100 GX_CONST GX_STUDIO_WIDGET main_screen_easing_function_drop_list_define =
1101 {
1102 "easing_function_drop_list",
1103 GX_TYPE_DROP_LIST, /* widget type */
1104 ID_EASING_FUNCTION_DROP_LIST, /* widget id */
1105 #if defined(GX_WIDGET_USER_DATA)
1106 0, /* user data */
1107 #endif
1108 GX_STYLE_BORDER_THICK, /* style flags */
1109 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1110 sizeof(GX_DROP_LIST), /* control block size */
1111 GX_COLOR_ID_LIGHT_SLATE_GRAY, /* normal color id */
1112 GX_COLOR_ID_LIGHT_SLATE_GRAY, /* selected color id */
1113 GX_COLOR_ID_LIGHT_SLATE_GRAY, /* disabled color id */
1114 gx_studio_drop_list_create, /* create function */
1115 GX_NULL, /* drawing function override */
1116 GX_NULL, /* event function override */
1117 {460, 165, 630, 211}, /* widget size */
1118 &main_screen_prompt_1_define, /* next widget definition */
1119 &main_screen_drop_list_button_define, /* child widget definition */
1120 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_easing_function_drop_list), /* control block */
1121 (void *) &main_screen_easing_function_drop_list_properties /* extended properties */
1122 };
1123
1124 GX_CONST GX_STUDIO_WIDGET main_screen_h_animation_count_prompt_define =
1125 {
1126 "h_animation_count_prompt",
1127 GX_TYPE_NUMERIC_PROMPT, /* widget type */
1128 ID_H_ANIMATION_COUNT, /* widget id */
1129 #if defined(GX_WIDGET_USER_DATA)
1130 0, /* user data */
1131 #endif
1132 GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
1133 0, /* status flags */
1134 sizeof(GX_NUMERIC_PROMPT), /* control block size */
1135 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
1136 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
1137 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
1138 gx_studio_numeric_prompt_create, /* create function */
1139 GX_NULL, /* drawing function override */
1140 GX_NULL, /* event function override */
1141 {359, 145, 438, 168}, /* widget size */
1142 &main_screen_easing_function_drop_list_define, /* next widget definition */
1143 GX_NULL, /* no child widgets */
1144 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_h_animation_count_prompt), /* control block */
1145 (void *) &main_screen_h_animation_count_prompt_properties /* extended properties */
1146 };
1147
1148 GX_CONST GX_STUDIO_WIDGET main_screen_v_animation_count_prompt_define =
1149 {
1150 "v_animation_count_prompt",
1151 GX_TYPE_NUMERIC_PROMPT, /* widget type */
1152 ID_V_ANIMATION_COUNT, /* widget id */
1153 #if defined(GX_WIDGET_USER_DATA)
1154 0, /* user data */
1155 #endif
1156 GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
1157 0, /* status flags */
1158 sizeof(GX_NUMERIC_PROMPT), /* control block size */
1159 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
1160 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
1161 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
1162 gx_studio_numeric_prompt_create, /* create function */
1163 GX_NULL, /* drawing function override */
1164 GX_NULL, /* event function override */
1165 {359, 438, 438, 461}, /* widget size */
1166 &main_screen_h_animation_count_prompt_define, /* next widget definition */
1167 GX_NULL, /* no child widgets */
1168 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_v_animation_count_prompt), /* control block */
1169 (void *) &main_screen_v_animation_count_prompt_properties /* extended properties */
1170 };
1171
1172 GX_CONST GX_STUDIO_WIDGET main_screen_checkbox_define =
1173 {
1174 "checkbox",
1175 GX_TYPE_CHECKBOX, /* widget type */
1176 ID_SCREEN_DRAG_WRAP, /* widget id */
1177 #if defined(GX_WIDGET_USER_DATA)
1178 0, /* user data */
1179 #endif
1180 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT, /* style flags */
1181 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1182 sizeof(GX_CHECKBOX), /* control block size */
1183 GX_COLOR_ID_BTN_LOWER, /* normal color id */
1184 GX_COLOR_ID_BTN_UPPER, /* selected color id */
1185 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
1186 gx_studio_checkbox_create, /* create function */
1187 GX_NULL, /* drawing function override */
1188 GX_NULL, /* event function override */
1189 {444, 78, 559, 102}, /* widget size */
1190 &main_screen_v_animation_count_prompt_define, /* next widget definition */
1191 GX_NULL, /* no child widgets */
1192 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_checkbox), /* control block */
1193 (void *) &main_screen_checkbox_properties /* extended properties */
1194 };
1195
1196 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_define =
1197 {
1198 "prompt",
1199 GX_TYPE_PROMPT, /* widget type */
1200 GX_ID_NONE, /* widget id */
1201 #if defined(GX_WIDGET_USER_DATA)
1202 0, /* user data */
1203 #endif
1204 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
1205 0, /* status flags */
1206 sizeof(GX_PROMPT), /* control block size */
1207 GX_COLOR_ID_SELECTED_FILL, /* normal color id */
1208 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
1209 GX_COLOR_ID_SELECTED_FILL, /* disabled color id */
1210 gx_studio_prompt_create, /* create function */
1211 GX_NULL, /* drawing function override */
1212 GX_NULL, /* event function override */
1213 {211, 20, 379, 37}, /* widget size */
1214 &main_screen_checkbox_define, /* next widget definition */
1215 GX_NULL, /* no child widgets */
1216 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt), /* control block */
1217 (void *) &main_screen_prompt_properties /* extended properties */
1218 };
1219
1220 GX_CONST GX_STUDIO_WIDGET main_screen_v_menu_window_define =
1221 {
1222 "v_menu_window",
1223 GX_TYPE_WINDOW, /* widget type */
1224 GX_ID_NONE, /* widget id */
1225 #if defined(GX_WIDGET_USER_DATA)
1226 0, /* user data */
1227 #endif
1228 GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_DRAW_SELECTED|GX_STYLE_ENABLED, /* style flags */
1229 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1230 sizeof(GX_WINDOW), /* control block size */
1231 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1232 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1233 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1234 gx_studio_window_create, /* create function */
1235 GX_NULL, /* drawing function override */
1236 (UINT (*)(GX_WIDGET *, GX_EVENT *)) v_menu_window_event_handler, /* event function override */
1237 {242, 220, 347, 467}, /* widget size */
1238 &main_screen_prompt_define, /* next widget definition */
1239 &main_screen_v_menu_window_1_define, /* child widget definition */
1240 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_v_menu_window), /* control block */
1241 (void *) &main_screen_v_menu_window_properties /* extended properties */
1242 };
1243
1244 GX_CONST GX_STUDIO_WIDGET main_screen_h_menu_window_define =
1245 {
1246 "h_menu_window",
1247 GX_TYPE_WINDOW, /* widget type */
1248 GX_ID_NONE, /* widget id */
1249 #if defined(GX_WIDGET_USER_DATA)
1250 0, /* user data */
1251 #endif
1252 GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED, /* style flags */
1253 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1254 sizeof(GX_WINDOW), /* control block size */
1255 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1256 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1257 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1258 gx_studio_window_create, /* create function */
1259 GX_NULL, /* drawing function override */
1260 (UINT (*)(GX_WIDGET *, GX_EVENT *)) h_menu_window_event_handler, /* event function override */
1261 {69, 80, 347, 167}, /* widget size */
1262 &main_screen_v_menu_window_define, /* next widget definition */
1263 &main_screen_h_menu_window_1_define, /* child widget definition */
1264 offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_h_menu_window), /* control block */
1265 (void *) &main_screen_h_menu_window_properties /* extended properties */
1266 };
1267
1268 GX_CONST GX_STUDIO_WIDGET main_screen_define =
1269 {
1270 "main_screen",
1271 GX_TYPE_WINDOW, /* widget type */
1272 GX_ID_NONE, /* widget id */
1273 #if defined(GX_WIDGET_USER_DATA)
1274 0, /* user data */
1275 #endif
1276 GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED, /* style flags */
1277 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
1278 sizeof(MAIN_SCREEN_CONTROL_BLOCK), /* control block size */
1279 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
1280 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
1281 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
1282 gx_studio_window_create, /* create function */
1283 GX_NULL, /* drawing function override */
1284 (UINT (*)(GX_WIDGET *, GX_EVENT *)) main_screen_event_handler, /* event function override */
1285 {0, -1, 639, 478}, /* widget size */
1286 GX_NULL, /* next widget */
1287 &main_screen_h_menu_window_define, /* child widget */
1288 0, /* control block */
1289 (void *) &main_screen_properties /* extended properties */
1290 };
1291 GX_CONST GX_STUDIO_WIDGET_ENTRY screen_drag_animation_widget_table[] =
1292 {
1293 { &v_menu_window_3_define, (GX_WIDGET *) &v_menu_window_3 },
1294 { &v_menu_window_2_define, (GX_WIDGET *) &v_menu_window_2 },
1295 { &h_menu_window_2_define, (GX_WIDGET *) &h_menu_window_2 },
1296 { &h_menu_window_3_define, (GX_WIDGET *) &h_menu_window_3 },
1297 { &main_screen_define, (GX_WIDGET *) &main_screen },
1298 {GX_NULL, GX_NULL}
1299 };
1300
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1301 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1302 {
1303 UINT status = GX_SUCCESS;
1304 GX_WIDGET *widget = GX_NULL;
1305 GX_VALUE list_count = 0;
1306 GX_VALUE list_total_count = 0;
1307
1308 if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
1309 {
1310 list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
1311 }
1312
1313 while(definition && status == GX_SUCCESS)
1314 {
1315 if (definition->create_function)
1316 {
1317 if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
1318 {
1319 status = gx_widget_allocate(&widget, definition->control_block_size);
1320 if (status != GX_SUCCESS)
1321 {
1322 return GX_NULL;
1323 }
1324 }
1325 else
1326 {
1327 if (control == GX_NULL)
1328 {
1329 return GX_NULL;
1330 }
1331 widget = (GX_WIDGET *) (control + definition->control_block_offset);
1332 }
1333
1334 status = definition->create_function(definition, widget, parent);
1335
1336 if(list_count < list_total_count)
1337 {
1338 gx_menu_insert((GX_MENU *)parent, widget);
1339 ((GX_MENU *)parent)->gx_menu_list_total_count--;
1340 list_count++;
1341 }
1342
1343 if (status == GX_SUCCESS)
1344 {
1345 if (definition->widget_type != GX_TYPE_TEMPLATE)
1346 {
1347 #if defined(GUIX_5_4_0_COMPATIBILITY)
1348 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
1349 #else
1350 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
1351 #endif
1352 }
1353
1354 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
1355 {
1356 gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
1357 }
1358
1359 if (definition->draw_function)
1360 {
1361 gx_widget_draw_set(widget, definition->draw_function);
1362 }
1363 if (definition->event_function)
1364 {
1365 gx_widget_event_process_set(widget, definition->event_function);
1366 }
1367
1368 #if defined(GX_WIDGET_USER_DATA)
1369 widget->gx_widget_user_data = definition->user_data;
1370 #endif
1371
1372 if (definition->child_widget)
1373 {
1374 gx_studio_nested_widget_create(control, definition->child_widget, widget);
1375 }
1376 }
1377 definition = definition->next_widget;
1378 }
1379 }
1380 return widget;
1381 }
1382
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1383 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1384 {
1385 GX_WIDGET *widget;
1386 widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
1387
1388 if (parent && widget)
1389 {
1390 gx_widget_attach(parent, widget);
1391 }
1392 return widget;
1393 }
1394
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)1395 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
1396 {
1397 UINT status = GX_FAILURE;
1398 GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = screen_drag_animation_widget_table;
1399 GX_WIDGET *widget = GX_NULL;
1400
1401 while(entry->widget_information)
1402 {
1403 if (!strcmp(name, entry->widget_information->widget_name))
1404 {
1405 widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
1406 if (widget)
1407 {
1408 status = GX_SUCCESS;
1409 }
1410 break;
1411 }
1412 entry++;
1413 }
1414
1415 if (new_widget)
1416 {
1417 *new_widget = widget;
1418 }
1419 return status;
1420 }
1421
1422
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)1423 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
1424 GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
1425 {
1426 GX_CONST GX_THEME *theme_ptr;
1427 GX_RECTANGLE size;
1428
1429 GX_STUDIO_DISPLAY_INFO *display_info = &screen_drag_animation_display_table[display];
1430
1431
1432 /* create the requested display */
1433
1434 gx_display_create(display_info->display,
1435 display_info->name,
1436 driver,
1437 (GX_VALUE) display_info->x_resolution,
1438 (GX_VALUE) display_info->y_resolution);
1439
1440
1441 /* install the request theme */
1442
1443 if(display_info->theme_table)
1444 {
1445 theme_ptr = display_info->theme_table[theme];
1446 if(theme_ptr)
1447 {
1448 gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
1449
1450 /* install the color palette if required */
1451 if (display_info->display->gx_display_driver_palette_set &&
1452 theme_ptr->theme_palette != NULL)
1453 {
1454 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
1455 }
1456
1457 gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
1458 gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
1459 gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
1460 gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
1461 }
1462 }
1463
1464 /* Install the language table. */
1465
1466 if(display_info->language_table)
1467 {
1468 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);
1469 gx_display_active_language_set(display_info->display, language);
1470 }
1471
1472 /* Set screen rotation angle. */
1473
1474 display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
1475
1476 /* create the canvas for this display */
1477
1478 gx_canvas_create(display_info->canvas,
1479 display_info->canvas_name,
1480 display_info->display,
1481 GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
1482 display_info->x_resolution,
1483 display_info->y_resolution,
1484 display_info->canvas_memory,
1485 display_info->canvas_memory_size);
1486
1487 /* Create the root window for this canvas */
1488
1489 gx_utility_rectangle_define(&size,
1490 0, 0,
1491 (GX_VALUE) (display_info->x_resolution - 1),
1492 (GX_VALUE) (display_info->y_resolution - 1));
1493
1494 gx_window_root_create(display_info->root_window,
1495 display_info->name,
1496 display_info->canvas, GX_STYLE_NONE, 0, &size);
1497 if (return_root)
1498 {
1499 *return_root = display_info->root_window;
1500 }
1501 return GX_SUCCESS;
1502 }
1503 #undef GUIX_STUDIO_GENERATED_FILE
1504