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 "radial_progress_bar_resources.h"
16 #include "radial_progress_bar_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 PROGRESS_BAR_WINDOW_CONTROL_BLOCK progress_bar_window;
20 GX_DISPLAY display_1_control_block;
21 GX_WINDOW_ROOT display_1_root_window;
22 GX_CANVAS  display_1_canvas_control_block;
23 ULONG      display_1_canvas_memory[307200];
24 
25 extern GX_CONST GX_THEME *display_1_theme_table[];
26 extern GX_CONST GX_STRING *display_1_language_table[];
27 
28 GX_STUDIO_DISPLAY_INFO radial_progress_bar_display_table[1] =
29 {
30     {
31     "display_1",
32     "display_1_canvas",
33     display_1_theme_table,
34     display_1_language_table,
35     DISPLAY_1_THEME_TABLE_SIZE,
36     DISPLAY_1_LANGUAGE_TABLE_SIZE,
37     DISPLAY_1_STRING_TABLE_SIZE,
38     640,                                     /* x resolution                   */
39     480,                                     /* y resolution                   */
40     &display_1_control_block,
41     &display_1_canvas_control_block,
42     &display_1_root_window,
43     display_1_canvas_memory,                 /* canvas memory area             */
44     1228800,                                 /* canvas memory size in bytes    */
45     0                                        /* rotation angle                 */
46     }
47 };
48 
49 
gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)50 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
51 {
52     UINT status;
53     GX_CHECKBOX *button = (GX_CHECKBOX *) control_block;
54     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
55     GX_CHECKBOX_PROPERTIES *props = (GX_CHECKBOX_PROPERTIES *) info->properties;
56     status = gx_checkbox_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->unchecked_pixelmap_id ||
67             props->checked_pixelmap_id ||
68             props->unchecked_disabled_pixelmap_id ||
69             props->checked_disabled_pixelmap_id)
70         {
71             gx_checkbox_pixelmap_set(button,
72                                      props->unchecked_pixelmap_id,
73                                      props->checked_pixelmap_id,
74                                      props->unchecked_disabled_pixelmap_id,
75                                      props->checked_disabled_pixelmap_id);
76         }
77     }
78     return status;
79 }
80 
gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)81 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
82 {
83     UINT status;
84     GX_ICON *icon = (GX_ICON *) control_block;
85     GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
86     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);
87     if (props->selected_pixelmap_id)
88     {
89         gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
90     }
91     else
92     {
93         gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
94     }
95     return status;
96 }
97 
gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)98 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
99 {
100     UINT status;
101     GX_SLIDER *slider = (GX_SLIDER *) control_block;
102     GX_SLIDER_PROPERTIES *props = (GX_SLIDER_PROPERTIES *) info->properties;
103     GX_SLIDER_INFO slider_info;
104     slider_info.gx_slider_info_min_val = props->minval;
105     slider_info.gx_slider_info_max_val = props->maxval;
106     slider_info.gx_slider_info_current_val = props->current_val;
107     slider_info.gx_slider_info_increment = props->increment;
108     slider_info.gx_slider_info_min_travel = props->min_travel;
109     slider_info.gx_slider_info_max_travel = props->max_travel;
110     slider_info.gx_slider_info_needle_width = props->needle_width;
111     slider_info.gx_slider_info_needle_height = props->needle_height;
112     slider_info.gx_slider_info_needle_inset = props->needle_inset;
113     slider_info.gx_slider_info_needle_hotspot_offset = props->needle_hotspot;
114     status = gx_slider_create(slider,
115                     info->widget_name,
116                     parent,
117                     props->tickmark_count,
118                     &slider_info,
119                     info->style,
120                     info->widget_id,
121                     &info->size);
122     return status;
123 }
124 
gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)125 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
126 {
127     UINT status;
128     GX_PIXELMAP_SLIDER *slider = (GX_PIXELMAP_SLIDER *) control_block;
129     GX_PIXELMAP_SLIDER_PROPERTIES *props = (GX_PIXELMAP_SLIDER_PROPERTIES *) info->properties;
130     GX_PIXELMAP_SLIDER_INFO pixelmap_info;
131     GX_SLIDER_INFO slider_info;
132     slider_info.gx_slider_info_min_val = props->min_val;
133     slider_info.gx_slider_info_max_val = props->max_val;
134     slider_info.gx_slider_info_current_val = props->current_val;
135     slider_info.gx_slider_info_increment = props->increment;
136     slider_info.gx_slider_info_min_travel = props->min_travel;
137     slider_info.gx_slider_info_max_travel = props->max_travel;
138     slider_info.gx_slider_info_needle_width = props->needle_width;
139     slider_info.gx_slider_info_needle_height = props->needle_height;
140     slider_info.gx_slider_info_needle_inset = props->needle_inset;
141     slider_info.gx_slider_info_needle_hotspot_offset = props->needle_hotspot;
142     pixelmap_info.gx_pixelmap_slider_info_lower_background_pixelmap = props->lower_pixelmap;
143     pixelmap_info.gx_pixelmap_slider_info_upper_background_pixelmap = props->upper_pixelmap;
144     pixelmap_info.gx_pixelmap_slider_info_needle_pixelmap = props->needle_pixelmap;
145     status = gx_pixelmap_slider_create(slider,
146                     info->widget_name,
147                     parent,
148                     &slider_info,
149                     &pixelmap_info,
150                     info->style,
151                     info->widget_id,
152                     &info->size);
153     return status;
154 }
155 
gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)156 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
157 {
158     UINT status;
159     GX_RADIAL_PROGRESS_BAR *bar = (GX_RADIAL_PROGRESS_BAR *) control_block;
160     GX_RADIAL_PROGRESS_BAR_INFO *bar_info = (GX_RADIAL_PROGRESS_BAR_INFO *) info->properties;
161     status = gx_radial_progress_bar_create(bar,
162                     info->widget_name,
163                     parent,
164                     bar_info,
165                     info->style,
166                     info->widget_id);
167     return status;
168 }
169 
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)170 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
171 {
172     UINT status;
173     GX_PROMPT *prompt = (GX_PROMPT *) control_block;
174     GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
175     status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
176     if (status == GX_SUCCESS)
177     {
178         gx_prompt_font_set(prompt, props->font_id);
179 #if defined(GUIX_5_4_0_COMPATIBILITY)
180         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
181 #else
182         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
183 #endif
184     }
185     return status;
186 }
187 
gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)188 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
189 {
190     UINT status;
191     GX_NUMERIC_PROMPT *prompt = (GX_NUMERIC_PROMPT *) control_block;
192     GX_NUMERIC_PROMPT_PROPERTIES *props = (GX_NUMERIC_PROMPT_PROPERTIES *) info->properties;
193     status = gx_numeric_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
194     if (status == GX_SUCCESS)
195     {
196         gx_prompt_font_set((GX_PROMPT *)prompt, props->font_id);
197 #if defined(GUIX_5_4_0_COMPATIBILITY)
198         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id);
199 #else
200         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
201 #endif
202         if(!props->string_id)
203         {
204             gx_numeric_prompt_value_set(prompt, props->numeric_prompt_value);
205         }
206         if(props->format_func)
207         {
208             gx_numeric_prompt_format_function_set(prompt, props->format_func);
209         }
210     }
211     return status;
212 }
213 
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)214 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
215 {
216     UINT status;
217     GX_WINDOW *window = (GX_WINDOW *) control_block;
218     GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
219     status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
220     if (status == GX_SUCCESS)
221     {
222         if (props->wallpaper_id)
223         {
224             gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
225         }
226     }
227     return status;
228 }
229 GX_WINDOW_PROPERTIES progress_bar_window_properties =
230 {
231     GX_PIXELMAP_ID_BG_TILE                   /* wallpaper pixelmap id          */
232 };
233 GX_PIXELMAP_SLIDER_PROPERTIES progress_bar_window_pixelmap_slider_properties =
234 {
235     -360,                                    /* minimum value                  */
236     360,                                     /* maximum value                  */
237     100,                                     /* current value                  */
238     10,                                      /* increment                      */
239     10,                                      /* minimum travel                 */
240     10,                                      /* maximum travel                 */
241     5,                                       /* needle width                   */
242     10,                                      /* needle height                  */
243     2,                                       /* needle inset                   */
244     10,                                      /* needle hotspot                 */
245     GX_PIXELMAP_ID_I_ORANGEFILL_MIDDLE_HORIZONTAL, /* lower pixelmap id        */
246     GX_PIXELMAP_ID_I_EMPTYFILL_MIDDLE_HORIZONTAL, /* upper pixelmap id         */
247     GX_PIXELMAP_ID_I_INDICATOR_HORIZONTAL    /* needle pixelmap id             */
248 };
249 GX_ICON_PROPERTIES progress_bar_window_icon_3_properties =
250 {
251     GX_PIXELMAP_ID_I_ORANGEFILL_LEFT,        /* normal pixelmap id             */
252     0                                        /* selected pixelmap id           */
253 };
254 GX_ICON_PROPERTIES progress_bar_window_icon_4_properties =
255 {
256     GX_PIXELMAP_ID_I_EMPTYFILL_RIGHT,        /* normal pixelmap id             */
257     0                                        /* selected pixelmap id           */
258 };
259 GX_CHECKBOX_PROPERTIES progress_bar_window_checkbox_properties =
260 {
261     GX_STRING_ID_STRING_8,                   /* string id                      */
262     GX_FONT_ID_BUTTON,                       /* font id                        */
263     GX_COLOR_ID_RED,                         /* normal text color              */
264     GX_COLOR_ID_RED,                         /* selected text color            */
265     GX_COLOR_ID_RED,                         /* disabled text color            */
266     0,                                       /* unchecked pixelmap id          */
267     0,                                       /* checked pixelmap id            */
268     0,                                       /* unchecked disabled pixelmap id */
269     0                                        /* checked disabled pixelmap id   */
270 };
271 GX_CHECKBOX_PROPERTIES progress_bar_window_checkbox_1_properties =
272 {
273     GX_STRING_ID_STRING_9,                   /* string id                      */
274     GX_FONT_ID_BUTTON,                       /* font id                        */
275     GX_COLOR_ID_RED,                         /* normal text color              */
276     GX_COLOR_ID_RED,                         /* selected text color            */
277     GX_COLOR_ID_RED,                         /* disabled text color            */
278     0,                                       /* unchecked pixelmap id          */
279     0,                                       /* checked pixelmap id            */
280     0,                                       /* unchecked disabled pixelmap id */
281     0                                        /* checked disabled pixelmap id   */
282 };
283 GX_CHECKBOX_PROPERTIES progress_bar_window_checkbox_2_properties =
284 {
285     GX_STRING_ID_STRING_12,                  /* string id                      */
286     GX_FONT_ID_BUTTON,                       /* font id                        */
287     GX_COLOR_ID_RED,                         /* normal text color              */
288     GX_COLOR_ID_RED,                         /* selected text color            */
289     GX_COLOR_ID_RED,                         /* disabled text color            */
290     0,                                       /* unchecked pixelmap id          */
291     0,                                       /* checked pixelmap id            */
292     0,                                       /* unchecked disabled pixelmap id */
293     0                                        /* checked disabled pixelmap id   */
294 };
295 GX_SLIDER_PROPERTIES progress_bar_window_slider_properties =
296 {
297     10,                                      /* tickmark count                 */
298     2,                                       /* mimimun value                  */
299     30,                                      /* maximum value                  */
300     20,                                      /* current value                  */
301     10,                                      /* increment                      */
302     10,                                      /* minimum travel                 */
303     10,                                      /* maximum travel                 */
304     5,                                       /* needle width                   */
305     15,                                      /* needle height                  */
306     5,                                       /* needle inset                   */
307     2                                        /* needle hotspot                 */
308 };
309 GX_SLIDER_PROPERTIES progress_bar_window_slider_1_properties =
310 {
311     10,                                      /* tickmark count                 */
312     10,                                      /* mimimun value                  */
313     120,                                     /* maximum value                  */
314     100,                                     /* current value                  */
315     10,                                      /* increment                      */
316     10,                                      /* minimum travel                 */
317     10,                                      /* maximum travel                 */
318     5,                                       /* needle width                   */
319     15,                                      /* needle height                  */
320     5,                                       /* needle inset                   */
321     2                                        /* needle hotspot                 */
322 };
323 GX_SLIDER_PROPERTIES progress_bar_window_slider_2_properties =
324 {
325     10,                                      /* tickmark count                 */
326     2,                                       /* mimimun value                  */
327     30,                                      /* maximum value                  */
328     20,                                      /* current value                  */
329     10,                                      /* increment                      */
330     10,                                      /* minimum travel                 */
331     10,                                      /* maximum travel                 */
332     5,                                       /* needle width                   */
333     15,                                      /* needle height                  */
334     5,                                       /* needle inset                   */
335     2                                        /* needle hotspot                 */
336 };
337 GX_PROMPT_PROPERTIES progress_bar_window_prompt_properties =
338 {
339     GX_STRING_ID_STRING_19,                  /* string id                      */
340     GX_FONT_ID_PROMPT,                       /* font id                        */
341     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
342     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
343     GX_COLOR_ID_TEXT_INPUT_TEXT              /* disabled text color            */
344 };
345 GX_PROMPT_PROPERTIES progress_bar_window_prompt_1_properties =
346 {
347     GX_STRING_ID_STRING_18,                  /* string id                      */
348     GX_FONT_ID_PROMPT,                       /* font id                        */
349     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
350     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
351     GX_COLOR_ID_TEXT_INPUT_TEXT              /* disabled text color            */
352 };
353 GX_PROMPT_PROPERTIES progress_bar_window_prompt_2_properties =
354 {
355     GX_STRING_ID_STRING_17,                  /* string id                      */
356     GX_FONT_ID_PROMPT,                       /* font id                        */
357     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
358     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
359     GX_COLOR_ID_TEXT_INPUT_TEXT              /* disabled text color            */
360 };
361 GX_PROMPT_PROPERTIES progress_bar_window_normal_width_prompt_properties =
362 {
363     GX_STRING_ID_STRING_20,                  /* string id                      */
364     GX_FONT_ID_PROMPT,                       /* font id                        */
365     GX_COLOR_ID_TEXT,                        /* normal text color              */
366     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
367     GX_COLOR_ID_TEXT                         /* disabled text color            */
368 };
369 GX_PROMPT_PROPERTIES progress_bar_window_selected_width_prompt_properties =
370 {
371     GX_STRING_ID_STRING_20,                  /* string id                      */
372     GX_FONT_ID_PROMPT,                       /* font id                        */
373     GX_COLOR_ID_TEXT,                        /* normal text color              */
374     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
375     GX_COLOR_ID_TEXT                         /* disabled text color            */
376 };
377 GX_PROMPT_PROPERTIES progress_bar_window_radius_prompt_properties =
378 {
379     GX_STRING_ID_STRING_21,                  /* string id                      */
380     GX_FONT_ID_PROMPT,                       /* font id                        */
381     GX_COLOR_ID_TEXT,                        /* normal text color              */
382     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
383     GX_COLOR_ID_TEXT                         /* disabled text color            */
384 };
385 GX_PROMPT_PROPERTIES progress_bar_window_prompt_3_properties =
386 {
387     GX_STRING_ID_STRING_22,                  /* string id                      */
388     GX_FONT_ID_NEWFONT,                      /* font id                        */
389     GX_COLOR_ID_GREEN,                       /* normal text color              */
390     GX_COLOR_ID_GREEN,                       /* selected text color            */
391     GX_COLOR_ID_GREEN                        /* disabled text color            */
392 };
393 GX_PROMPT_PROPERTIES progress_bar_window_prompt_4_properties =
394 {
395     GX_STRING_ID_STRING_23,                  /* string id                      */
396     GX_FONT_ID_PROMPT,                       /* font id                        */
397     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
398     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
399     GX_COLOR_ID_TEXT_INPUT_TEXT              /* disabled text color            */
400 };
401 GX_SLIDER_PROPERTIES progress_bar_window_slider_3_properties =
402 {
403     10,                                      /* tickmark count                 */
404     0,                                       /* mimimun value                  */
405     360,                                     /* maximum value                  */
406     90,                                      /* current value                  */
407     10,                                      /* increment                      */
408     10,                                      /* minimum travel                 */
409     10,                                      /* maximum travel                 */
410     5,                                       /* needle width                   */
411     15,                                      /* needle height                  */
412     5,                                       /* needle inset                   */
413     2                                        /* needle hotspot                 */
414 };
415 GX_PROMPT_PROPERTIES progress_bar_window_anchor_prompt_properties =
416 {
417     GX_STRING_ID_STRING_24,                  /* string id                      */
418     GX_FONT_ID_PROMPT,                       /* font id                        */
419     GX_COLOR_ID_TEXT,                        /* normal text color              */
420     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
421     GX_COLOR_ID_TEXT                         /* disabled text color            */
422 };
423 GX_RADIAL_PROGRESS_BAR_INFO progress_bar_window_radial_progress_bar_properties =
424 {
425     173,                                     /* xcenter                        */
426     229,                                     /* ycenter                        */
427     100,                                     /* radius                         */
428     -180,                                    /* current val                    */
429     90,                                      /* anchor val                     */
430     GX_FONT_ID_NEWFONT,                      /* font_id                        */
431     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
432     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
433     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
434     20,                                      /* normal brush width             */
435     20,                                      /* selected brush width           */
436     GX_COLOR_ID_SLIDER_NEEDLE_FILL,          /* normal brush color             */
437     GX_COLOR_ID_SELECTED_FILL,               /* selected brush color           */
438 };
439 GX_CHECKBOX_PROPERTIES progress_bar_window_checkbox_3_properties =
440 {
441     GX_STRING_ID_STRING_10,                  /* string id                      */
442     GX_FONT_ID_BUTTON,                       /* font id                        */
443     GX_COLOR_ID_RED,                         /* normal text color              */
444     GX_COLOR_ID_RED,                         /* selected text color            */
445     GX_COLOR_ID_RED,                         /* disabled text color            */
446     0,                                       /* unchecked pixelmap id          */
447     0,                                       /* checked pixelmap id            */
448     0,                                       /* unchecked disabled pixelmap id */
449     0                                        /* checked disabled pixelmap id   */
450 };
451 GX_CHECKBOX_PROPERTIES progress_bar_window_checkbox_4_properties =
452 {
453     GX_STRING_ID_STRING_11,                  /* string id                      */
454     GX_FONT_ID_BUTTON,                       /* font id                        */
455     GX_COLOR_ID_RED,                         /* normal text color              */
456     GX_COLOR_ID_RED,                         /* selected text color            */
457     GX_COLOR_ID_RED,                         /* disabled text color            */
458     0,                                       /* unchecked pixelmap id          */
459     0,                                       /* checked pixelmap id            */
460     0,                                       /* unchecked disabled pixelmap id */
461     0                                        /* checked disabled pixelmap id   */
462 };
463 GX_PROMPT_PROPERTIES progress_bar_window_alpha_properties =
464 {
465     GX_STRING_ID_STRING_25,                  /* string id                      */
466     GX_FONT_ID_PROMPT,                       /* font id                        */
467     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
468     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
469     GX_COLOR_ID_TEXT_INPUT_TEXT              /* disabled text color            */
470 };
471 GX_SLIDER_PROPERTIES progress_bar_window_alpha_slider_properties =
472 {
473     10,                                      /* tickmark count                 */
474     0,                                       /* mimimun value                  */
475     255,                                     /* maximum value                  */
476     255,                                     /* current value                  */
477     10,                                      /* increment                      */
478     10,                                      /* minimum travel                 */
479     10,                                      /* maximum travel                 */
480     5,                                       /* needle width                   */
481     15,                                      /* needle height                  */
482     5,                                       /* needle inset                   */
483     2                                        /* needle hotspot                 */
484 };
485 GX_NUMERIC_PROMPT_PROPERTIES progress_bar_window_alpha_prompt_properties =
486 {
487     0,                                       /* string id                      */
488     GX_FONT_ID_PROMPT,                       /* font id                        */
489     GX_COLOR_ID_TEXT,                        /* normal text color              */
490     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
491     GX_COLOR_ID_TEXT,                        /* disabled text color            */
492     GX_NULL,                                 /* format function                */
493     255                                      /* numeric prompt value           */
494 };
495 
496 GX_CONST GX_STUDIO_WIDGET progress_bar_window_alpha_prompt_define =
497 {
498     "alpha_prompt",
499     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
500     GX_ID_NONE,                              /* widget id                      */
501     #if defined(GX_WIDGET_USER_DATA)
502     0,                                       /* user data                      */
503     #endif
504     GX_STYLE_BORDER_THIN|GX_STYLE_TEXT_CENTER,   /* style flags                */
505     0,                                       /* status flags                   */
506     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
507     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
508     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
509     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
510     gx_studio_numeric_prompt_create,         /* create function                */
511     GX_NULL,                                 /* drawing function override      */
512     GX_NULL,                                 /* event function override        */
513     {600, 415, 635, 438},                    /* widget size                    */
514     GX_NULL,                                 /* no next widget                 */
515     GX_NULL,                                 /* no child widgets               */
516     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_alpha_prompt), /* control block */
517     (void *) &progress_bar_window_alpha_prompt_properties /* extended properties */
518 };
519 
520 GX_CONST GX_STUDIO_WIDGET progress_bar_window_alpha_slider_define =
521 {
522     "alpha_slider",
523     GX_TYPE_SLIDER,                          /* widget type                    */
524     ID_ALPHA_SLIDER,                         /* widget id                      */
525     #if defined(GX_WIDGET_USER_DATA)
526     0,                                       /* user data                      */
527     #endif
528     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
529     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
530     sizeof(GX_SLIDER),                       /* control block size             */
531     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
532     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
533     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
534     gx_studio_slider_create,                 /* create function                */
535     GX_NULL,                                 /* drawing function override      */
536     GX_NULL,                                 /* event function override        */
537     {471, 414, 592, 437},                    /* widget size                    */
538     &progress_bar_window_alpha_prompt_define, /* next widget definition        */
539     GX_NULL,                                 /* no child widgets               */
540     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_alpha_slider), /* control block */
541     (void *) &progress_bar_window_alpha_slider_properties /* extended properties */
542 };
543 
544 GX_CONST GX_STUDIO_WIDGET progress_bar_window_alpha_define =
545 {
546     "alpha",
547     GX_TYPE_PROMPT,                          /* widget type                    */
548     GX_ID_NONE,                              /* widget id                      */
549     #if defined(GX_WIDGET_USER_DATA)
550     0,                                       /* user data                      */
551     #endif
552     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
553     0,                                       /* status flags                   */
554     sizeof(GX_PROMPT),                       /* control block size             */
555     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
556     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
557     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
558     gx_studio_prompt_create,                 /* create function                */
559     GX_NULL,                                 /* drawing function override      */
560     GX_NULL,                                 /* event function override        */
561     {337, 415, 393, 438},                    /* widget size                    */
562     &progress_bar_window_alpha_slider_define, /* next widget definition        */
563     GX_NULL,                                 /* no child widgets               */
564     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_alpha), /* control block */
565     (void *) &progress_bar_window_alpha_properties /* extended properties      */
566 };
567 
568 GX_CONST GX_STUDIO_WIDGET progress_bar_window_checkbox_4_define =
569 {
570     "checkbox_4",
571     GX_TYPE_CHECKBOX,                        /* widget type                    */
572     ID_ROUND_END,                            /* widget id                      */
573     #if defined(GX_WIDGET_USER_DATA)
574     0,                                       /* user data                      */
575     #endif
576     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
577     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
578     sizeof(GX_CHECKBOX),                     /* control block size             */
579     GX_COLOR_ID_RED,                         /* normal color id                */
580     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
581     GX_COLOR_ID_RED,                         /* disabled color id              */
582     gx_studio_checkbox_create,               /* create function                */
583     GX_NULL,                                 /* drawing function override      */
584     GX_NULL,                                 /* event function override        */
585     {340, 228, 478, 251},                    /* widget size                    */
586     &progress_bar_window_alpha_define,       /* next widget definition         */
587     GX_NULL,                                 /* no child widgets               */
588     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_checkbox_4), /* control block */
589     (void *) &progress_bar_window_checkbox_4_properties /* extended properties */
590 };
591 
592 GX_CONST GX_STUDIO_WIDGET progress_bar_window_checkbox_3_define =
593 {
594     "checkbox_3",
595     GX_TYPE_CHECKBOX,                        /* widget type                    */
596     ID_ALIAS,                                /* widget id                      */
597     #if defined(GX_WIDGET_USER_DATA)
598     0,                                       /* user data                      */
599     #endif
600     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
601     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
602     sizeof(GX_CHECKBOX),                     /* control block size             */
603     GX_COLOR_ID_RED,                         /* normal color id                */
604     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
605     GX_COLOR_ID_RED,                         /* disabled color id              */
606     gx_studio_checkbox_create,               /* create function                */
607     GX_NULL,                                 /* drawing function override      */
608     GX_NULL,                                 /* event function override        */
609     {340, 194, 478, 217},                    /* widget size                    */
610     &progress_bar_window_checkbox_4_define,  /* next widget definition         */
611     GX_NULL,                                 /* no child widgets               */
612     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_checkbox_3), /* control block */
613     (void *) &progress_bar_window_checkbox_3_properties /* extended properties */
614 };
615 
616 GX_CONST GX_STUDIO_WIDGET progress_bar_window_radial_progress_bar_define =
617 {
618     "radial_progress_bar",
619     GX_TYPE_RADIAL_PROGRESS_BAR,             /* widget type                    */
620     GX_ID_NONE,                              /* widget id                      */
621     #if defined(GX_WIDGET_USER_DATA)
622     0,                                       /* user data                      */
623     #endif
624     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_PROGRESS_PERCENT|GX_STYLE_PROGRESS_TEXT_DRAW|GX_STYLE_RADIAL_PROGRESS_ALIAS|GX_STYLE_RADIAL_PROGRESS_ROUND,   /* style flags */
625     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
626     sizeof(GX_RADIAL_PROGRESS_BAR),          /* control block size             */
627     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
628     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
629     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
630     gx_studio_radial_progress_bar_create,     /* create function               */
631     (VOID (*)(GX_WIDGET *)) radial_progress_bar_draw, /* drawing function override */
632     GX_NULL,                                 /* event function override        */
633     {63, 119, 283, 339},                     /* widget size                    */
634     &progress_bar_window_checkbox_3_define,  /* next widget definition         */
635     GX_NULL,                                 /* no child widgets               */
636     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_radial_progress_bar), /* control block */
637     (void *) &progress_bar_window_radial_progress_bar_properties /* extended properties */
638 };
639 
640 GX_CONST GX_STUDIO_WIDGET progress_bar_window_anchor_prompt_define =
641 {
642     "anchor_prompt",
643     GX_TYPE_PROMPT,                          /* widget type                    */
644     ID_ANCHOR_PROMPT,                        /* widget id                      */
645     #if defined(GX_WIDGET_USER_DATA)
646     0,                                       /* user data                      */
647     #endif
648     GX_STYLE_BORDER_THIN|GX_STYLE_TEXT_CENTER,   /* style flags                */
649     0,                                       /* status flags                   */
650     sizeof(GX_PROMPT),                       /* control block size             */
651     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
652     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
653     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
654     gx_studio_prompt_create,                 /* create function                */
655     GX_NULL,                                 /* drawing function override      */
656     GX_NULL,                                 /* event function override        */
657     {600, 259, 635, 282},                    /* widget size                    */
658     &progress_bar_window_radial_progress_bar_define, /* next widget definition */
659     GX_NULL,                                 /* no child widgets               */
660     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_anchor_prompt), /* control block */
661     (void *) &progress_bar_window_anchor_prompt_properties /* extended properties */
662 };
663 
664 GX_CONST GX_STUDIO_WIDGET progress_bar_window_slider_3_define =
665 {
666     "slider_3",
667     GX_TYPE_SLIDER,                          /* widget type                    */
668     ID_ANCHOR_SLIDER,                        /* widget id                      */
669     #if defined(GX_WIDGET_USER_DATA)
670     0,                                       /* user data                      */
671     #endif
672     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
673     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
674     sizeof(GX_SLIDER),                       /* control block size             */
675     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
676     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
677     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
678     gx_studio_slider_create,                 /* create function                */
679     GX_NULL,                                 /* drawing function override      */
680     GX_NULL,                                 /* event function override        */
681     {471, 260, 592, 283},                    /* widget size                    */
682     &progress_bar_window_anchor_prompt_define, /* next widget definition       */
683     GX_NULL,                                 /* no child widgets               */
684     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_slider_3), /* control block */
685     (void *) &progress_bar_window_slider_3_properties /* extended properties   */
686 };
687 
688 GX_CONST GX_STUDIO_WIDGET progress_bar_window_prompt_4_define =
689 {
690     "prompt_4",
691     GX_TYPE_PROMPT,                          /* widget type                    */
692     GX_ID_NONE,                              /* widget id                      */
693     #if defined(GX_WIDGET_USER_DATA)
694     0,                                       /* user data                      */
695     #endif
696     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
697     0,                                       /* status flags                   */
698     sizeof(GX_PROMPT),                       /* control block size             */
699     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
700     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
701     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
702     gx_studio_prompt_create,                 /* create function                */
703     GX_NULL,                                 /* drawing function override      */
704     GX_NULL,                                 /* event function override        */
705     {335, 262, 446, 285},                    /* widget size                    */
706     &progress_bar_window_slider_3_define,    /* next widget definition         */
707     GX_NULL,                                 /* no child widgets               */
708     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_prompt_4), /* control block */
709     (void *) &progress_bar_window_prompt_4_properties /* extended properties   */
710 };
711 
712 GX_CONST GX_STUDIO_WIDGET progress_bar_window_prompt_3_define =
713 {
714     "prompt_3",
715     GX_TYPE_PROMPT,                          /* widget type                    */
716     GX_ID_NONE,                              /* widget id                      */
717     #if defined(GX_WIDGET_USER_DATA)
718     0,                                       /* user data                      */
719     #endif
720     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
721     0,                                       /* status flags                   */
722     sizeof(GX_PROMPT),                       /* control block size             */
723     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
724     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
725     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
726     gx_studio_prompt_create,                 /* create function                */
727     GX_NULL,                                 /* drawing function override      */
728     GX_NULL,                                 /* event function override        */
729     {161, 30, 491, 60},                      /* widget size                    */
730     &progress_bar_window_prompt_4_define,    /* next widget definition         */
731     GX_NULL,                                 /* no child widgets               */
732     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_prompt_3), /* control block */
733     (void *) &progress_bar_window_prompt_3_properties /* extended properties   */
734 };
735 
736 GX_CONST GX_STUDIO_WIDGET progress_bar_window_radius_prompt_define =
737 {
738     "radius_prompt",
739     GX_TYPE_PROMPT,                          /* widget type                    */
740     ID_RADIUS_PROMPT,                        /* widget id                      */
741     #if defined(GX_WIDGET_USER_DATA)
742     0,                                       /* user data                      */
743     #endif
744     GX_STYLE_BORDER_THIN|GX_STYLE_TEXT_CENTER,   /* style flags                */
745     0,                                       /* status flags                   */
746     sizeof(GX_PROMPT),                       /* control block size             */
747     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
748     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
749     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
750     gx_studio_prompt_create,                 /* create function                */
751     GX_NULL,                                 /* drawing function override      */
752     GX_NULL,                                 /* event function override        */
753     {600, 381, 635, 404},                    /* widget size                    */
754     &progress_bar_window_prompt_3_define,    /* next widget definition         */
755     GX_NULL,                                 /* no child widgets               */
756     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_radius_prompt), /* control block */
757     (void *) &progress_bar_window_radius_prompt_properties /* extended properties */
758 };
759 
760 GX_CONST GX_STUDIO_WIDGET progress_bar_window_selected_width_prompt_define =
761 {
762     "selected_width_prompt",
763     GX_TYPE_PROMPT,                          /* widget type                    */
764     ID_SELECTED_WIDTH_PROMPT,                /* widget id                      */
765     #if defined(GX_WIDGET_USER_DATA)
766     0,                                       /* user data                      */
767     #endif
768     GX_STYLE_BORDER_THIN|GX_STYLE_TEXT_CENTER,   /* style flags                */
769     0,                                       /* status flags                   */
770     sizeof(GX_PROMPT),                       /* control block size             */
771     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
772     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
773     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
774     gx_studio_prompt_create,                 /* create function                */
775     GX_NULL,                                 /* drawing function override      */
776     GX_NULL,                                 /* event function override        */
777     {600, 340, 635, 363},                    /* widget size                    */
778     &progress_bar_window_radius_prompt_define, /* next widget definition       */
779     GX_NULL,                                 /* no child widgets               */
780     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_selected_width_prompt), /* control block */
781     (void *) &progress_bar_window_selected_width_prompt_properties /* extended properties */
782 };
783 
784 GX_CONST GX_STUDIO_WIDGET progress_bar_window_normal_width_prompt_define =
785 {
786     "normal_width_prompt",
787     GX_TYPE_PROMPT,                          /* widget type                    */
788     ID_NORMAL_WIDTH_PROMPT,                  /* widget id                      */
789     #if defined(GX_WIDGET_USER_DATA)
790     0,                                       /* user data                      */
791     #endif
792     GX_STYLE_BORDER_THIN|GX_STYLE_TEXT_CENTER,   /* style flags                */
793     0,                                       /* status flags                   */
794     sizeof(GX_PROMPT),                       /* control block size             */
795     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
796     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
797     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
798     gx_studio_prompt_create,                 /* create function                */
799     GX_NULL,                                 /* drawing function override      */
800     GX_NULL,                                 /* event function override        */
801     {600, 301, 635, 324},                    /* widget size                    */
802     &progress_bar_window_selected_width_prompt_define, /* next widget definition */
803     GX_NULL,                                 /* no child widgets               */
804     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_normal_width_prompt), /* control block */
805     (void *) &progress_bar_window_normal_width_prompt_properties /* extended properties */
806 };
807 
808 GX_CONST GX_STUDIO_WIDGET progress_bar_window_prompt_2_define =
809 {
810     "prompt_2",
811     GX_TYPE_PROMPT,                          /* widget type                    */
812     GX_ID_NONE,                              /* widget id                      */
813     #if defined(GX_WIDGET_USER_DATA)
814     0,                                       /* user data                      */
815     #endif
816     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
817     0,                                       /* status flags                   */
818     sizeof(GX_PROMPT),                       /* control block size             */
819     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
820     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
821     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
822     gx_studio_prompt_create,                 /* create function                */
823     GX_NULL,                                 /* drawing function override      */
824     GX_NULL,                                 /* event function override        */
825     {337, 381, 393, 404},                    /* widget size                    */
826     &progress_bar_window_normal_width_prompt_define, /* next widget definition */
827     GX_NULL,                                 /* no child widgets               */
828     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_prompt_2), /* control block */
829     (void *) &progress_bar_window_prompt_2_properties /* extended properties   */
830 };
831 
832 GX_CONST GX_STUDIO_WIDGET progress_bar_window_prompt_1_define =
833 {
834     "prompt_1",
835     GX_TYPE_PROMPT,                          /* widget type                    */
836     GX_ID_NONE,                              /* widget id                      */
837     #if defined(GX_WIDGET_USER_DATA)
838     0,                                       /* user data                      */
839     #endif
840     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
841     0,                                       /* status flags                   */
842     sizeof(GX_PROMPT),                       /* control block size             */
843     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
844     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
845     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
846     gx_studio_prompt_create,                 /* create function                */
847     GX_NULL,                                 /* drawing function override      */
848     GX_NULL,                                 /* event function override        */
849     {337, 342, 457, 365},                    /* widget size                    */
850     &progress_bar_window_prompt_2_define,    /* next widget definition         */
851     GX_NULL,                                 /* no child widgets               */
852     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_prompt_1), /* control block */
853     (void *) &progress_bar_window_prompt_1_properties /* extended properties   */
854 };
855 
856 GX_CONST GX_STUDIO_WIDGET progress_bar_window_prompt_define =
857 {
858     "prompt",
859     GX_TYPE_PROMPT,                          /* widget type                    */
860     GX_ID_NONE,                              /* widget id                      */
861     #if defined(GX_WIDGET_USER_DATA)
862     0,                                       /* user data                      */
863     #endif
864     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
865     0,                                       /* status flags                   */
866     sizeof(GX_PROMPT),                       /* control block size             */
867     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
868     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
869     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
870     gx_studio_prompt_create,                 /* create function                */
871     GX_NULL,                                 /* drawing function override      */
872     GX_NULL,                                 /* event function override        */
873     {337, 300, 448, 323},                    /* widget size                    */
874     &progress_bar_window_prompt_1_define,    /* next widget definition         */
875     GX_NULL,                                 /* no child widgets               */
876     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_prompt), /* control block */
877     (void *) &progress_bar_window_prompt_properties /* extended properties     */
878 };
879 
880 GX_CONST GX_STUDIO_WIDGET progress_bar_window_slider_2_define =
881 {
882     "slider_2",
883     GX_TYPE_SLIDER,                          /* widget type                    */
884     ID_SELECTED_WIDTH_SLIDER,                /* widget id                      */
885     #if defined(GX_WIDGET_USER_DATA)
886     0,                                       /* user data                      */
887     #endif
888     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
889     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
890     sizeof(GX_SLIDER),                       /* control block size             */
891     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
892     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
893     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
894     gx_studio_slider_create,                 /* create function                */
895     GX_NULL,                                 /* drawing function override      */
896     GX_NULL,                                 /* event function override        */
897     {472, 340, 593, 363},                    /* widget size                    */
898     &progress_bar_window_prompt_define,      /* next widget definition         */
899     GX_NULL,                                 /* no child widgets               */
900     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_slider_2), /* control block */
901     (void *) &progress_bar_window_slider_2_properties /* extended properties   */
902 };
903 
904 GX_CONST GX_STUDIO_WIDGET progress_bar_window_slider_1_define =
905 {
906     "slider_1",
907     GX_TYPE_SLIDER,                          /* widget type                    */
908     ID_RADIUS_SLIDER,                        /* widget id                      */
909     #if defined(GX_WIDGET_USER_DATA)
910     0,                                       /* user data                      */
911     #endif
912     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
913     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
914     sizeof(GX_SLIDER),                       /* control block size             */
915     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
916     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
917     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
918     gx_studio_slider_create,                 /* create function                */
919     GX_NULL,                                 /* drawing function override      */
920     GX_NULL,                                 /* event function override        */
921     {472, 380, 593, 403},                    /* widget size                    */
922     &progress_bar_window_slider_2_define,    /* next widget definition         */
923     GX_NULL,                                 /* no child widgets               */
924     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_slider_1), /* control block */
925     (void *) &progress_bar_window_slider_1_properties /* extended properties   */
926 };
927 
928 GX_CONST GX_STUDIO_WIDGET progress_bar_window_slider_define =
929 {
930     "slider",
931     GX_TYPE_SLIDER,                          /* widget type                    */
932     ID_NORMAL_WIDTH_SLIDER,                  /* widget id                      */
933     #if defined(GX_WIDGET_USER_DATA)
934     0,                                       /* user data                      */
935     #endif
936     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
937     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
938     sizeof(GX_SLIDER),                       /* control block size             */
939     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
940     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
941     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
942     gx_studio_slider_create,                 /* create function                */
943     GX_NULL,                                 /* drawing function override      */
944     GX_NULL,                                 /* event function override        */
945     {472, 300, 593, 323},                    /* widget size                    */
946     &progress_bar_window_slider_1_define,    /* next widget definition         */
947     GX_NULL,                                 /* no child widgets               */
948     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_slider), /* control block */
949     (void *) &progress_bar_window_slider_properties /* extended properties     */
950 };
951 
952 GX_CONST GX_STUDIO_WIDGET progress_bar_window_checkbox_2_define =
953 {
954     "checkbox_2",
955     GX_TYPE_CHECKBOX,                        /* widget type                    */
956     ID_TRANSPARENT,                          /* widget id                      */
957     #if defined(GX_WIDGET_USER_DATA)
958     0,                                       /* user data                      */
959     #endif
960     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
961     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
962     sizeof(GX_CHECKBOX),                     /* control block size             */
963     GX_COLOR_ID_RED,                         /* normal color id                */
964     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
965     GX_COLOR_ID_RED,                         /* disabled color id              */
966     gx_studio_checkbox_create,               /* create function                */
967     GX_NULL,                                 /* drawing function override      */
968     GX_NULL,                                 /* event function override        */
969     {340, 160, 478, 183},                    /* widget size                    */
970     &progress_bar_window_slider_define,      /* next widget definition         */
971     GX_NULL,                                 /* no child widgets               */
972     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_checkbox_2), /* control block */
973     (void *) &progress_bar_window_checkbox_2_properties /* extended properties */
974 };
975 
976 GX_CONST GX_STUDIO_WIDGET progress_bar_window_checkbox_1_define =
977 {
978     "checkbox_1",
979     GX_TYPE_CHECKBOX,                        /* widget type                    */
980     ID_SHOW_PERCENT,                         /* widget id                      */
981     #if defined(GX_WIDGET_USER_DATA)
982     0,                                       /* user data                      */
983     #endif
984     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
985     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
986     sizeof(GX_CHECKBOX),                     /* control block size             */
987     GX_COLOR_ID_RED,                         /* normal color id                */
988     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
989     GX_COLOR_ID_RED,                         /* disabled color id              */
990     gx_studio_checkbox_create,               /* create function                */
991     GX_NULL,                                 /* drawing function override      */
992     GX_NULL,                                 /* event function override        */
993     {340, 126, 478, 149},                    /* widget size                    */
994     &progress_bar_window_checkbox_2_define,  /* next widget definition         */
995     GX_NULL,                                 /* no child widgets               */
996     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_checkbox_1), /* control block */
997     (void *) &progress_bar_window_checkbox_1_properties /* extended properties */
998 };
999 
1000 GX_CONST GX_STUDIO_WIDGET progress_bar_window_checkbox_define =
1001 {
1002     "checkbox",
1003     GX_TYPE_CHECKBOX,                        /* widget type                    */
1004     ID_SHOW_TEXT,                            /* widget id                      */
1005     #if defined(GX_WIDGET_USER_DATA)
1006     0,                                       /* user data                      */
1007     #endif
1008     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1009     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1010     sizeof(GX_CHECKBOX),                     /* control block size             */
1011     GX_COLOR_ID_RED,                         /* normal color id                */
1012     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1013     GX_COLOR_ID_RED,                         /* disabled color id              */
1014     gx_studio_checkbox_create,               /* create function                */
1015     GX_NULL,                                 /* drawing function override      */
1016     GX_NULL,                                 /* event function override        */
1017     {340, 92, 453, 115},                     /* widget size                    */
1018     &progress_bar_window_checkbox_1_define,  /* next widget definition         */
1019     GX_NULL,                                 /* no child widgets               */
1020     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_checkbox), /* control block */
1021     (void *) &progress_bar_window_checkbox_properties /* extended properties   */
1022 };
1023 
1024 GX_CONST GX_STUDIO_WIDGET progress_bar_window_icon_4_define =
1025 {
1026     "icon_4",
1027     GX_TYPE_ICON,                            /* widget type                    */
1028     GX_ID_NONE,                              /* widget id                      */
1029     #if defined(GX_WIDGET_USER_DATA)
1030     0,                                       /* user data                      */
1031     #endif
1032     GX_STYLE_BORDER_NONE|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1033     0,                                       /* status flags                   */
1034     sizeof(GX_ICON),                         /* control block size             */
1035     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1036     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1037     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1038     gx_studio_icon_create,                   /* create function                */
1039     GX_NULL,                                 /* drawing function override      */
1040     GX_NULL,                                 /* event function override        */
1041     {244, 395, 253, 416},                    /* widget size                    */
1042     &progress_bar_window_checkbox_define,    /* next widget definition         */
1043     GX_NULL,                                 /* no child widgets               */
1044     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_icon_4), /* control block */
1045     (void *) &progress_bar_window_icon_4_properties /* extended properties     */
1046 };
1047 
1048 GX_CONST GX_STUDIO_WIDGET progress_bar_window_icon_3_define =
1049 {
1050     "icon_3",
1051     GX_TYPE_ICON,                            /* widget type                    */
1052     GX_ID_NONE,                              /* widget id                      */
1053     #if defined(GX_WIDGET_USER_DATA)
1054     0,                                       /* user data                      */
1055     #endif
1056     GX_STYLE_BORDER_NONE|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1057     0,                                       /* status flags                   */
1058     sizeof(GX_ICON),                         /* control block size             */
1059     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1060     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1061     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1062     gx_studio_icon_create,                   /* create function                */
1063     GX_NULL,                                 /* drawing function override      */
1064     GX_NULL,                                 /* event function override        */
1065     {53, 395, 62, 416},                      /* widget size                    */
1066     &progress_bar_window_icon_4_define,      /* next widget definition         */
1067     GX_NULL,                                 /* no child widgets               */
1068     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_icon_3), /* control block */
1069     (void *) &progress_bar_window_icon_3_properties /* extended properties     */
1070 };
1071 
1072 GX_CONST GX_STUDIO_WIDGET progress_bar_window_pixelmap_slider_define =
1073 {
1074     "pixelmap_slider",
1075     GX_TYPE_PIXELMAP_SLIDER,                 /* widget type                    */
1076     ID_POS,                                  /* widget id                      */
1077     #if defined(GX_WIDGET_USER_DATA)
1078     0,                                       /* user data                      */
1079     #endif
1080     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND,   /* style flags */
1081     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1082     sizeof(GX_PIXELMAP_SLIDER),              /* control block size             */
1083     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1084     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1085     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1086     gx_studio_pixelmap_slider_create,        /* create function                */
1087     GX_NULL,                                 /* drawing function override      */
1088     GX_NULL,                                 /* event function override        */
1089     {63, 387, 243, 425},                     /* widget size                    */
1090     &progress_bar_window_icon_3_define,      /* next widget definition         */
1091     GX_NULL,                                 /* no child widgets               */
1092     offsetof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK, progress_bar_window_pixelmap_slider), /* control block */
1093     (void *) &progress_bar_window_pixelmap_slider_properties /* extended properties */
1094 };
1095 
1096 GX_CONST GX_STUDIO_WIDGET progress_bar_window_define =
1097 {
1098     "progress_bar_window",
1099     GX_TYPE_WINDOW,                          /* widget type                    */
1100     GX_ID_NONE,                              /* widget id                      */
1101     #if defined(GX_WIDGET_USER_DATA)
1102     0,                                       /* user data                      */
1103     #endif
1104     GX_STYLE_BORDER_NONE|GX_STYLE_TILE_WALLPAPER,   /* style flags             */
1105     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1106     sizeof(PROGRESS_BAR_WINDOW_CONTROL_BLOCK), /* control block size           */
1107     GX_COLOR_ID_RED,                         /* normal color id                */
1108     GX_COLOR_ID_RED,                         /* selected color id              */
1109     GX_COLOR_ID_RED,                         /* disabled color id              */
1110     gx_studio_window_create,                 /* create function                */
1111     GX_NULL,                                 /* drawing function override      */
1112     (UINT (*)(GX_WIDGET *, GX_EVENT *)) window_event_handle, /* event function override */
1113     {0, 0, 639, 479},                        /* widget size                    */
1114     GX_NULL,                                 /* next widget                    */
1115     &progress_bar_window_pixelmap_slider_define, /* child widget               */
1116     0,                                       /* control block                  */
1117     (void *) &progress_bar_window_properties /* extended properties            */
1118 };
1119 GX_CONST GX_STUDIO_WIDGET_ENTRY radial_progress_bar_widget_table[] =
1120 {
1121     { &progress_bar_window_define, (GX_WIDGET *) &progress_bar_window },
1122     {GX_NULL, GX_NULL}
1123 };
1124 
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1125 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1126 {
1127     UINT status = GX_SUCCESS;
1128     GX_WIDGET *widget = GX_NULL;
1129     GX_VALUE   list_count = 0;
1130     GX_VALUE   list_total_count = 0;
1131 
1132     if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
1133     {
1134         list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
1135     }
1136 
1137     while(definition && status == GX_SUCCESS)
1138     {
1139         if (definition->create_function)
1140         {
1141             if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
1142             {
1143                 status = gx_widget_allocate(&widget, definition->control_block_size);
1144                 if (status != GX_SUCCESS)
1145                 {
1146                     return GX_NULL;
1147                 }
1148             }
1149             else
1150             {
1151                 if (control == GX_NULL)
1152                 {
1153                     return GX_NULL;
1154                 }
1155                 widget = (GX_WIDGET *) (control + definition->control_block_offset);
1156             }
1157 
1158             status = definition->create_function(definition, widget, parent);
1159 
1160             if(list_count < list_total_count)
1161             {
1162                 gx_menu_insert((GX_MENU *)parent, widget);
1163                 ((GX_MENU *)parent)->gx_menu_list_total_count--;
1164                 list_count++;
1165             }
1166 
1167             if (status == GX_SUCCESS)
1168             {
1169                 if (definition->widget_type != GX_TYPE_TEMPLATE)
1170                 {
1171 #if defined(GUIX_5_4_0_COMPATIBILITY)
1172                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
1173 #else
1174                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
1175 #endif
1176                 }
1177 
1178                 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
1179                 {
1180                     gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
1181                 }
1182 
1183                 if (definition->draw_function)
1184                 {
1185                     gx_widget_draw_set(widget, definition->draw_function);
1186                 }
1187                 if (definition->event_function)
1188                 {
1189                     gx_widget_event_process_set(widget, definition->event_function);
1190                 }
1191 
1192                 #if defined(GX_WIDGET_USER_DATA)
1193                 widget->gx_widget_user_data = definition->user_data;
1194                 #endif
1195 
1196                 if (definition->child_widget)
1197                 {
1198                     gx_studio_nested_widget_create(control, definition->child_widget, widget);
1199                 }
1200             }
1201             definition = definition->next_widget;
1202         }
1203     }
1204     return widget;
1205 }
1206 
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1207 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1208 {
1209     GX_WIDGET *widget;
1210     widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
1211 
1212     if (parent && widget)
1213     {
1214         gx_widget_attach(parent, widget);
1215     }
1216     return widget;
1217 }
1218 
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)1219 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
1220 {
1221     UINT status = GX_FAILURE;
1222     GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = radial_progress_bar_widget_table;
1223     GX_WIDGET *widget = GX_NULL;
1224 
1225     while(entry->widget_information)
1226     {
1227         if (!strcmp(name, entry->widget_information->widget_name))
1228         {
1229             widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
1230             if (widget)
1231             {
1232                 status = GX_SUCCESS;
1233             }
1234             break;
1235         }
1236         entry++;
1237     }
1238 
1239     if (new_widget)
1240     {
1241         *new_widget = widget;
1242     }
1243     return status;
1244 }
1245 
1246 
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)1247 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
1248     GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
1249 {
1250     GX_CONST GX_THEME *theme_ptr;
1251     GX_RECTANGLE size;
1252 
1253     GX_STUDIO_DISPLAY_INFO *display_info = &radial_progress_bar_display_table[display];
1254 
1255 
1256 /* create the requested display                                                */
1257 
1258     gx_display_create(display_info->display,
1259                       display_info->name,
1260                       driver,
1261                       (GX_VALUE) display_info->x_resolution,
1262                       (GX_VALUE) display_info->y_resolution);
1263 
1264 
1265 /* install the request theme                                                   */
1266 
1267     if(display_info->theme_table)
1268     {
1269         theme_ptr = display_info->theme_table[theme];
1270         if(theme_ptr)
1271         {
1272             gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
1273 
1274 /* install the color palette if required                                       */
1275             if (display_info->display->gx_display_driver_palette_set &&
1276                 theme_ptr->theme_palette != NULL)
1277             {
1278                 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
1279             }
1280 
1281             gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
1282             gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
1283             gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
1284             gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
1285         }
1286     }
1287 
1288 /* Install the language table.                                                 */
1289 
1290     if(display_info->language_table)
1291     {
1292         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);
1293         gx_display_active_language_set(display_info->display, language);
1294     }
1295 
1296 /* Set screen rotation angle.                                                  */
1297 
1298     display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
1299 
1300 /* create the canvas for this display                                          */
1301 
1302     gx_canvas_create(display_info->canvas,
1303                      display_info->canvas_name,
1304                      display_info->display,
1305                      GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
1306                      display_info->x_resolution,
1307                      display_info->y_resolution,
1308                      display_info->canvas_memory,
1309                      display_info->canvas_memory_size);
1310 
1311 /* Create the root window for this canvas                                      */
1312 
1313     gx_utility_rectangle_define(&size,
1314                                 0, 0,
1315                                 (GX_VALUE) (display_info->x_resolution - 1),
1316                                 (GX_VALUE) (display_info->y_resolution - 1));
1317 
1318     gx_window_root_create(display_info->root_window,
1319                           display_info->name,
1320                           display_info->canvas, GX_STYLE_NONE, 0, &size);
1321     if (return_root)
1322     {
1323         *return_root = display_info->root_window;
1324     }
1325     return GX_SUCCESS;
1326 }
1327 #undef GUIX_STUDIO_GENERATED_FILE
1328