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:09                        */
10 /*******************************************************************************/
11 
12 
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "graphics_32bpp_resources.h"
16 #include "graphics_32bpp_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 ELLIPSE_WINDOW_CONTROL_BLOCK ellipse_window;
20 MAIN_WINDOW_CONTROL_BLOCK main_window;
21 GX_DISPLAY display_1_control_block;
22 GX_WINDOW_ROOT display_1_root_window;
23 GX_CANVAS  display_1_canvas_control_block;
24 ULONG      display_1_canvas_memory[307200];
25 
26 extern GX_CONST GX_THEME *display_1_theme_table[];
27 extern GX_CONST GX_STRING *display_1_language_table[];
28 
29 GX_STUDIO_DISPLAY_INFO graphics_32bpp_display_table[1] =
30 {
31     {
32     "display_1",
33     "display_1_canvas",
34     display_1_theme_table,
35     display_1_language_table,
36     DISPLAY_1_THEME_TABLE_SIZE,
37     DISPLAY_1_LANGUAGE_TABLE_SIZE,
38     DISPLAY_1_STRING_TABLE_SIZE,
39     640,                                     /* x resolution                   */
40     480,                                     /* y resolution                   */
41     &display_1_control_block,
42     &display_1_canvas_control_block,
43     &display_1_root_window,
44     display_1_canvas_memory,                 /* canvas memory area             */
45     1228800,                                 /* canvas memory size in bytes    */
46     0                                        /* rotation angle                 */
47     }
48 };
49 
50 
gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)51 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
52 {
53     UINT status;
54     GX_TEXT_BUTTON *button = (GX_TEXT_BUTTON *) control_block;
55     GX_TEXT_BUTTON_PROPERTIES *props = (GX_TEXT_BUTTON_PROPERTIES *) info->properties;
56     status = gx_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
57     if (status == GX_SUCCESS)
58     {
59         gx_text_button_font_set(button, props->font_id);
60 #if defined(GUIX_5_4_0_COMPATIBILITY)
61         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id);
62 #else
63         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
64 #endif
65     }
66     return status;
67 }
68 
gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)69 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
70 {
71     UINT status;
72     GX_CHECKBOX *button = (GX_CHECKBOX *) control_block;
73     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
74     GX_CHECKBOX_PROPERTIES *props = (GX_CHECKBOX_PROPERTIES *) info->properties;
75     status = gx_checkbox_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
76     if (status == GX_SUCCESS)
77     {
78         gx_text_button_font_set(text_button, props->font_id);
79 #if defined(GUIX_5_4_0_COMPATIBILITY)
80         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
81  #else
82         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
83 #endif
84 
85         if (props->unchecked_pixelmap_id ||
86             props->checked_pixelmap_id ||
87             props->unchecked_disabled_pixelmap_id ||
88             props->checked_disabled_pixelmap_id)
89         {
90             gx_checkbox_pixelmap_set(button,
91                                      props->unchecked_pixelmap_id,
92                                      props->checked_pixelmap_id,
93                                      props->unchecked_disabled_pixelmap_id,
94                                      props->checked_disabled_pixelmap_id);
95         }
96     }
97     return status;
98 }
99 
gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)100 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
101 {
102     UINT status;
103     GX_RADIO_BUTTON *button = (GX_RADIO_BUTTON *) control_block;
104     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
105     GX_RADIO_BUTTON_PROPERTIES *props = (GX_RADIO_BUTTON_PROPERTIES *) info->properties;
106     status = gx_radio_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
107     if (status == GX_SUCCESS)
108     {
109         gx_text_button_font_set(text_button, props->font_id);
110 #if defined(GUIX_5_4_0_COMPATIBILITY)
111         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
112 #else
113         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
114 #endif
115 
116         if (props->off_pixelmap_id ||
117             props->on_pixelmap_id ||
118             props->off_disabled_pixelmap_id ||
119             props->on_disabled_pixelmap_id)
120         {
121             gx_radio_button_pixelmap_set(button,
122                                      props->off_pixelmap_id,
123                                      props->on_pixelmap_id,
124                                      props->off_disabled_pixelmap_id,
125                                      props->on_disabled_pixelmap_id);
126         }
127     }
128     return status;
129 }
130 
gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)131 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
132 {
133     UINT status;
134     GX_SLIDER *slider = (GX_SLIDER *) control_block;
135     GX_SLIDER_PROPERTIES *props = (GX_SLIDER_PROPERTIES *) info->properties;
136     GX_SLIDER_INFO slider_info;
137     slider_info.gx_slider_info_min_val = props->minval;
138     slider_info.gx_slider_info_max_val = props->maxval;
139     slider_info.gx_slider_info_current_val = props->current_val;
140     slider_info.gx_slider_info_increment = props->increment;
141     slider_info.gx_slider_info_min_travel = props->min_travel;
142     slider_info.gx_slider_info_max_travel = props->max_travel;
143     slider_info.gx_slider_info_needle_width = props->needle_width;
144     slider_info.gx_slider_info_needle_height = props->needle_height;
145     slider_info.gx_slider_info_needle_inset = props->needle_inset;
146     slider_info.gx_slider_info_needle_hotspot_offset = props->needle_hotspot;
147     status = gx_slider_create(slider,
148                     info->widget_name,
149                     parent,
150                     props->tickmark_count,
151                     &slider_info,
152                     info->style,
153                     info->widget_id,
154                     &info->size);
155     return status;
156 }
157 
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)158 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
159 {
160     UINT status;
161     GX_PROMPT *prompt = (GX_PROMPT *) control_block;
162     GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
163     status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
164     if (status == GX_SUCCESS)
165     {
166         gx_prompt_font_set(prompt, props->font_id);
167 #if defined(GUIX_5_4_0_COMPATIBILITY)
168         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
169 #else
170         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
171 #endif
172     }
173     return status;
174 }
175 
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)176 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
177 {
178     UINT status;
179     GX_WINDOW *window = (GX_WINDOW *) control_block;
180     GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
181     status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
182     if (status == GX_SUCCESS)
183     {
184         if (props->wallpaper_id)
185         {
186             gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
187         }
188     }
189     return status;
190 }
191 GX_WINDOW_PROPERTIES ellipse_window_properties =
192 {
193     0                                        /* wallpaper pixelmap id          */
194 };
195 GX_WINDOW_PROPERTIES ellipse_window_graphics_window_properties =
196 {
197     0                                        /* wallpaper pixelmap id          */
198 };
199 GX_CHECKBOX_PROPERTIES ellipse_window_checkbox_anti_alised_1_properties =
200 {
201     GX_STRING_ID_STRING_20,                  /* string id                      */
202     GX_FONT_ID_BUTTON,                       /* font id                        */
203     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
204     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
205     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
206     0,                                       /* unchecked pixelmap id          */
207     0,                                       /* checked pixelmap id            */
208     0,                                       /* unchecked disabled pixelmap id */
209     0                                        /* checked disabled pixelmap id   */
210 };
211 GX_CHECKBOX_PROPERTIES ellipse_window_checkbox_fill_1_properties =
212 {
213     GX_STRING_ID_STRING_11,                  /* string id                      */
214     GX_FONT_ID_BUTTON,                       /* font id                        */
215     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
216     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
217     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
218     0,                                       /* unchecked pixelmap id          */
219     0,                                       /* checked pixelmap id            */
220     0,                                       /* unchecked disabled pixelmap id */
221     0                                        /* checked disabled pixelmap id   */
222 };
223 GX_RADIO_BUTTON_PROPERTIES ellipse_window_radio_button_7_properties =
224 {
225     GX_STRING_ID_STRING_47,                  /* string id                      */
226     GX_FONT_ID_BUTTON,                       /* font id                        */
227     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
228     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
229     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
230     0,                                       /* off pixelmap id                */
231     0,                                       /* on pixelmap id                 */
232     0,                                       /* off disabled pixelmap id       */
233     0                                        /* on disabled pixelmap id        */
234 };
235 GX_RADIO_BUTTON_PROPERTIES ellipse_window_radio_button_8_properties =
236 {
237     GX_STRING_ID_STRING_48,                  /* string id                      */
238     GX_FONT_ID_BUTTON,                       /* font id                        */
239     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
240     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
241     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
242     0,                                       /* off pixelmap id                */
243     0,                                       /* on pixelmap id                 */
244     0,                                       /* off disabled pixelmap id       */
245     0                                        /* on disabled pixelmap id        */
246 };
247 GX_SLIDER_PROPERTIES ellipse_window_a_slider_properties =
248 {
249     10,                                      /* tickmark count                 */
250     5,                                       /* mimimun value                  */
251     100,                                     /* maximum value                  */
252     100,                                     /* current value                  */
253     1,                                       /* increment                      */
254     10,                                      /* minimum travel                 */
255     10,                                      /* maximum travel                 */
256     5,                                       /* needle width                   */
257     14,                                      /* needle height                  */
258     5,                                       /* needle inset                   */
259     1                                        /* needle hotspot                 */
260 };
261 GX_PROMPT_PROPERTIES ellipse_window_a_prompt_properties =
262 {
263     GX_STRING_ID_STRING_46,                  /* string id                      */
264     GX_FONT_ID_PROMPT,                       /* font id                        */
265     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
266     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
267     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
268 };
269 GX_PROMPT_PROPERTIES ellipse_window_prompt_1_properties =
270 {
271     GX_STRING_ID_STRING_9,                   /* string id                      */
272     GX_FONT_ID_PROMPT,                       /* font id                        */
273     GX_COLOR_ID_TEXT,                        /* normal text color              */
274     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
275     GX_COLOR_ID_TEXT                         /* disabled text color            */
276 };
277 GX_PROMPT_PROPERTIES ellipse_window_prompt_2_properties =
278 {
279     GX_STRING_ID_STRING_55,                  /* string id                      */
280     GX_FONT_ID_PROMPT,                       /* font id                        */
281     GX_COLOR_ID_TEXT,                        /* normal text color              */
282     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
283     GX_COLOR_ID_TEXT                         /* disabled text color            */
284 };
285 GX_PROMPT_PROPERTIES ellipse_window_prompt_3_properties =
286 {
287     GX_STRING_ID_STRING_56,                  /* string id                      */
288     GX_FONT_ID_PROMPT,                       /* font id                        */
289     GX_COLOR_ID_TEXT,                        /* normal text color              */
290     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
291     GX_COLOR_ID_TEXT                         /* disabled text color            */
292 };
293 GX_SLIDER_PROPERTIES ellipse_window_b_slider_properties =
294 {
295     10,                                      /* tickmark count                 */
296     5,                                       /* mimimun value                  */
297     100,                                     /* maximum value                  */
298     50,                                      /* current value                  */
299     1,                                       /* increment                      */
300     10,                                      /* minimum travel                 */
301     10,                                      /* maximum travel                 */
302     5,                                       /* needle width                   */
303     14,                                      /* needle height                  */
304     5,                                       /* needle inset                   */
305     1                                        /* needle hotspot                 */
306 };
307 GX_PROMPT_PROPERTIES ellipse_window_b_prompt_properties =
308 {
309     GX_STRING_ID_STRING_45,                  /* string id                      */
310     GX_FONT_ID_PROMPT,                       /* font id                        */
311     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
312     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
313     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
314 };
315 GX_PROMPT_PROPERTIES ellipse_window_prompt_8_properties =
316 {
317     GX_STRING_ID_STRING_58,                  /* string id                      */
318     GX_FONT_ID_PROMPT,                       /* font id                        */
319     GX_COLOR_ID_SELECTED_FILL,               /* normal text color              */
320     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
321     GX_COLOR_ID_SELECTED_FILL                /* disabled text color            */
322 };
323 GX_TEXT_BUTTON_PROPERTIES ellipse_window_button_1_properties =
324 {
325     GX_STRING_ID_STRING_60,                  /* string id                      */
326     GX_FONT_ID_BUTTON,                       /* font id                        */
327     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
328     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
329     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
330 };
331 
332 GX_CONST GX_STUDIO_WIDGET ellipse_window_button_1_define =
333 {
334     "button_1",
335     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
336     ID_NEXT_PAGE,                            /* widget id                      */
337     #if defined(GX_WIDGET_USER_DATA)
338     0,                                       /* user data                      */
339     #endif
340     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
341     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
342     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
343     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
344     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
345     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
346     gx_studio_text_button_create,            /* create function                */
347     GX_NULL,                                 /* drawing function override      */
348     GX_NULL,                                 /* event function override        */
349     {550, 446, 629, 469},                    /* widget size                    */
350     GX_NULL,                                 /* no next widget                 */
351     GX_NULL,                                 /* no child widgets               */
352     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_button_1), /* control block */
353     (void *) &ellipse_window_button_1_properties /* extended properties        */
354 };
355 
356 GX_CONST GX_STUDIO_WIDGET ellipse_window_prompt_8_define =
357 {
358     "prompt_8",
359     GX_TYPE_PROMPT,                          /* widget type                    */
360     GX_ID_NONE,                              /* widget id                      */
361     #if defined(GX_WIDGET_USER_DATA)
362     0,                                       /* user data                      */
363     #endif
364     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
365     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
366     sizeof(GX_PROMPT),                       /* control block size             */
367     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
368     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
369     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
370     gx_studio_prompt_create,                 /* create function                */
371     GX_NULL,                                 /* drawing function override      */
372     GX_NULL,                                 /* event function override        */
373     {292, 10, 423, 33},                      /* widget size                    */
374     &ellipse_window_button_1_define,         /* next widget definition         */
375     GX_NULL,                                 /* no child widgets               */
376     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_prompt_8), /* control block */
377     (void *) &ellipse_window_prompt_8_properties /* extended properties        */
378 };
379 
380 GX_CONST GX_STUDIO_WIDGET ellipse_window_b_prompt_define =
381 {
382     "b_prompt",
383     GX_TYPE_PROMPT,                          /* widget type                    */
384     ID_B_PROMPT,                             /* widget id                      */
385     #if defined(GX_WIDGET_USER_DATA)
386     0,                                       /* user data                      */
387     #endif
388     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
389     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
390     sizeof(GX_PROMPT),                       /* control block size             */
391     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
392     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
393     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
394     gx_studio_prompt_create,                 /* create function                */
395     GX_NULL,                                 /* drawing function override      */
396     GX_NULL,                                 /* event function override        */
397     {573, 95, 611, 118},                     /* widget size                    */
398     &ellipse_window_prompt_8_define,         /* next widget definition         */
399     GX_NULL,                                 /* no child widgets               */
400     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_b_prompt), /* control block */
401     (void *) &ellipse_window_b_prompt_properties /* extended properties        */
402 };
403 
404 GX_CONST GX_STUDIO_WIDGET ellipse_window_b_slider_define =
405 {
406     "b_slider",
407     GX_TYPE_SLIDER,                          /* widget type                    */
408     ID_B_SLIDER,                             /* widget id                      */
409     #if defined(GX_WIDGET_USER_DATA)
410     0,                                       /* user data                      */
411     #endif
412     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
413     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
414     sizeof(GX_SLIDER),                       /* control block size             */
415     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
416     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
417     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
418     gx_studio_slider_create,                 /* create function                */
419     GX_NULL,                                 /* drawing function override      */
420     GX_NULL,                                 /* event function override        */
421     {440, 96, 556, 119},                     /* widget size                    */
422     &ellipse_window_b_prompt_define,         /* next widget definition         */
423     GX_NULL,                                 /* no child widgets               */
424     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_b_slider), /* control block */
425     (void *) &ellipse_window_b_slider_properties /* extended properties        */
426 };
427 
428 GX_CONST GX_STUDIO_WIDGET ellipse_window_prompt_3_define =
429 {
430     "prompt_3",
431     GX_TYPE_PROMPT,                          /* widget type                    */
432     GX_ID_NONE,                              /* widget id                      */
433     #if defined(GX_WIDGET_USER_DATA)
434     0,                                       /* user data                      */
435     #endif
436     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
437     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
438     sizeof(GX_PROMPT),                       /* control block size             */
439     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
440     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
441     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
442     gx_studio_prompt_create,                 /* create function                */
443     GX_NULL,                                 /* drawing function override      */
444     GX_NULL,                                 /* event function override        */
445     {408, 98, 429, 121},                     /* widget size                    */
446     &ellipse_window_b_slider_define,         /* next widget definition         */
447     GX_NULL,                                 /* no child widgets               */
448     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_prompt_3), /* control block */
449     (void *) &ellipse_window_prompt_3_properties /* extended properties        */
450 };
451 
452 GX_CONST GX_STUDIO_WIDGET ellipse_window_prompt_2_define =
453 {
454     "prompt_2",
455     GX_TYPE_PROMPT,                          /* widget type                    */
456     GX_ID_NONE,                              /* widget id                      */
457     #if defined(GX_WIDGET_USER_DATA)
458     0,                                       /* user data                      */
459     #endif
460     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
461     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
462     sizeof(GX_PROMPT),                       /* control block size             */
463     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
464     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
465     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
466     gx_studio_prompt_create,                 /* create function                */
467     GX_NULL,                                 /* drawing function override      */
468     GX_NULL,                                 /* event function override        */
469     {408, 52, 429, 75},                      /* widget size                    */
470     &ellipse_window_prompt_3_define,         /* next widget definition         */
471     GX_NULL,                                 /* no child widgets               */
472     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_prompt_2), /* control block */
473     (void *) &ellipse_window_prompt_2_properties /* extended properties        */
474 };
475 
476 GX_CONST GX_STUDIO_WIDGET ellipse_window_prompt_1_define =
477 {
478     "prompt_1",
479     GX_TYPE_PROMPT,                          /* widget type                    */
480     GX_ID_NONE,                              /* widget id                      */
481     #if defined(GX_WIDGET_USER_DATA)
482     0,                                       /* user data                      */
483     #endif
484     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
485     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
486     sizeof(GX_PROMPT),                       /* control block size             */
487     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
488     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
489     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
490     gx_studio_prompt_create,                 /* create function                */
491     GX_NULL,                                 /* drawing function override      */
492     GX_NULL,                                 /* event function override        */
493     {415, 181, 546, 204},                    /* widget size                    */
494     &ellipse_window_prompt_2_define,         /* next widget definition         */
495     GX_NULL,                                 /* no child widgets               */
496     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_prompt_1), /* control block */
497     (void *) &ellipse_window_prompt_1_properties /* extended properties        */
498 };
499 
500 GX_CONST GX_STUDIO_WIDGET ellipse_window_a_prompt_define =
501 {
502     "a_prompt",
503     GX_TYPE_PROMPT,                          /* widget type                    */
504     ID_A_PROMPT,                             /* widget id                      */
505     #if defined(GX_WIDGET_USER_DATA)
506     0,                                       /* user data                      */
507     #endif
508     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
509     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
510     sizeof(GX_PROMPT),                       /* control block size             */
511     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
512     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
513     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
514     gx_studio_prompt_create,                 /* create function                */
515     GX_NULL,                                 /* drawing function override      */
516     GX_NULL,                                 /* event function override        */
517     {572, 51, 610, 74},                      /* widget size                    */
518     &ellipse_window_prompt_1_define,         /* next widget definition         */
519     GX_NULL,                                 /* no child widgets               */
520     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_a_prompt), /* control block */
521     (void *) &ellipse_window_a_prompt_properties /* extended properties        */
522 };
523 
524 GX_CONST GX_STUDIO_WIDGET ellipse_window_a_slider_define =
525 {
526     "a_slider",
527     GX_TYPE_SLIDER,                          /* widget type                    */
528     ID_A_SLIDER,                             /* widget id                      */
529     #if defined(GX_WIDGET_USER_DATA)
530     0,                                       /* user data                      */
531     #endif
532     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
533     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
534     sizeof(GX_SLIDER),                       /* control block size             */
535     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
536     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
537     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
538     gx_studio_slider_create,                 /* create function                */
539     GX_NULL,                                 /* drawing function override      */
540     GX_NULL,                                 /* event function override        */
541     {439, 51, 555, 74},                      /* widget size                    */
542     &ellipse_window_a_prompt_define,         /* next widget definition         */
543     GX_NULL,                                 /* no child widgets               */
544     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_a_slider), /* control block */
545     (void *) &ellipse_window_a_slider_properties /* extended properties        */
546 };
547 
548 GX_CONST GX_STUDIO_WIDGET ellipse_window_radio_button_8_define =
549 {
550     "radio_button_8",
551     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
552     ID_FRESHCOLOR,                           /* widget id                      */
553     #if defined(GX_WIDGET_USER_DATA)
554     0,                                       /* user data                      */
555     #endif
556     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
557     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
558     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
559     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
560     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
561     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
562     gx_studio_radio_button_create,           /* create function                */
563     GX_NULL,                                 /* drawing function override      */
564     GX_NULL,                                 /* event function override        */
565     {530, 283, 639, 306},                    /* widget size                    */
566     &ellipse_window_a_slider_define,         /* next widget definition         */
567     GX_NULL,                                 /* no child widgets               */
568     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_radio_button_8), /* control block */
569     (void *) &ellipse_window_radio_button_8_properties /* extended properties  */
570 };
571 
572 GX_CONST GX_STUDIO_WIDGET ellipse_window_radio_button_7_define =
573 {
574     "radio_button_7",
575     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
576     ID_BLACK,                                /* widget id                      */
577     #if defined(GX_WIDGET_USER_DATA)
578     0,                                       /* user data                      */
579     #endif
580     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
581     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
582     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
583     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
584     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
585     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
586     gx_studio_radio_button_create,           /* create function                */
587     GX_NULL,                                 /* drawing function override      */
588     GX_NULL,                                 /* event function override        */
589     {448, 283, 527, 306},                    /* widget size                    */
590     &ellipse_window_radio_button_8_define,   /* next widget definition         */
591     GX_NULL,                                 /* no child widgets               */
592     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_radio_button_7), /* control block */
593     (void *) &ellipse_window_radio_button_7_properties /* extended properties  */
594 };
595 
596 GX_CONST GX_STUDIO_WIDGET ellipse_window_checkbox_fill_1_define =
597 {
598     "checkbox_fill_1",
599     GX_TYPE_CHECKBOX,                        /* widget type                    */
600     ID_SOLID_FILL,                           /* widget id                      */
601     #if defined(GX_WIDGET_USER_DATA)
602     0,                                       /* user data                      */
603     #endif
604     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
605     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
606     sizeof(GX_CHECKBOX),                     /* control block size             */
607     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
608     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
609     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
610     gx_studio_checkbox_create,               /* create function                */
611     GX_NULL,                                 /* drawing function override      */
612     GX_NULL,                                 /* event function override        */
613     {417, 247, 540, 270},                    /* widget size                    */
614     &ellipse_window_radio_button_7_define,   /* next widget definition         */
615     GX_NULL,                                 /* no child widgets               */
616     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_checkbox_fill_1), /* control block */
617     (void *) &ellipse_window_checkbox_fill_1_properties /* extended properties */
618 };
619 
620 GX_CONST GX_STUDIO_WIDGET ellipse_window_checkbox_anti_alised_1_define =
621 {
622     "checkbox_anti_alised_1",
623     GX_TYPE_CHECKBOX,                        /* widget type                    */
624     ID_ANTI_ALIASED,                         /* widget id                      */
625     #if defined(GX_WIDGET_USER_DATA)
626     0,                                       /* user data                      */
627     #endif
628     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
629     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
630     sizeof(GX_CHECKBOX),                     /* control block size             */
631     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
632     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
633     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
634     gx_studio_checkbox_create,               /* create function                */
635     GX_NULL,                                 /* drawing function override      */
636     GX_NULL,                                 /* event function override        */
637     {419, 213, 543, 236},                    /* widget size                    */
638     &ellipse_window_checkbox_fill_1_define,  /* next widget definition         */
639     GX_NULL,                                 /* no child widgets               */
640     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_checkbox_anti_alised_1), /* control block */
641     (void *) &ellipse_window_checkbox_anti_alised_1_properties /* extended properties */
642 };
643 
644 GX_CONST GX_STUDIO_WIDGET ellipse_window_graphics_window_define =
645 {
646     "graphics_window",
647     GX_TYPE_WINDOW,                          /* widget type                    */
648     ID_GRAPHICS_WINDOW,                      /* widget id                      */
649     #if defined(GX_WIDGET_USER_DATA)
650     0,                                       /* user data                      */
651     #endif
652     GX_STYLE_BORDER_THIN|GX_STYLE_TILE_WALLPAPER,   /* style flags             */
653     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
654     sizeof(GX_WINDOW),                       /* control block size             */
655     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal color id                */
656     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected color id              */
657     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled color id              */
658     gx_studio_window_create,                 /* create function                */
659     (VOID (*)(GX_WIDGET *)) graphics_draw,   /* drawing function override      */
660     GX_NULL,                                 /* event function override        */
661     {24, 43, 393, 444},                      /* widget size                    */
662     &ellipse_window_checkbox_anti_alised_1_define, /* next widget definition   */
663     GX_NULL,                                 /* no child widgets               */
664     offsetof(ELLIPSE_WINDOW_CONTROL_BLOCK, ellipse_window_graphics_window), /* control block */
665     (void *) &ellipse_window_graphics_window_properties /* extended properties */
666 };
667 
668 GX_CONST GX_STUDIO_WIDGET ellipse_window_define =
669 {
670     "ellipse_window",
671     GX_TYPE_WINDOW,                          /* widget type                    */
672     ID_ELLIPSE_SCREEN,                       /* widget id                      */
673     #if defined(GX_WIDGET_USER_DATA)
674     0,                                       /* user data                      */
675     #endif
676     GX_STYLE_BORDER_THIN,                    /* style flags                    */
677     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
678     sizeof(ELLIPSE_WINDOW_CONTROL_BLOCK),    /* control block size             */
679     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
680     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
681     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
682     gx_studio_window_create,                 /* create function                */
683     GX_NULL,                                 /* drawing function override      */
684     (UINT (*)(GX_WIDGET *, GX_EVENT *)) main_event_handler, /* event function override */
685     {0, 0, 638, 478},                        /* widget size                    */
686     GX_NULL,                                 /* next widget                    */
687     &ellipse_window_graphics_window_define,  /* child widget                   */
688     0,                                       /* control block                  */
689     (void *) &ellipse_window_properties      /* extended properties            */
690 };
691 GX_WINDOW_PROPERTIES main_window_properties =
692 {
693     0                                        /* wallpaper pixelmap id          */
694 };
695 GX_WINDOW_PROPERTIES main_window_window_1_properties =
696 {
697     0                                        /* wallpaper pixelmap id          */
698 };
699 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_3_properties =
700 {
701     GX_STRING_ID_STRING_36,                  /* string id                      */
702     GX_FONT_ID_BUTTON,                       /* font id                        */
703     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
704     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
705     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
706     0,                                       /* off pixelmap id                */
707     0,                                       /* on pixelmap id                 */
708     0,                                       /* off disabled pixelmap id       */
709     0                                        /* on disabled pixelmap id        */
710 };
711 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_4_properties =
712 {
713     GX_STRING_ID_STRING_52,                  /* string id                      */
714     GX_FONT_ID_BUTTON,                       /* font id                        */
715     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
716     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
717     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
718     0,                                       /* off pixelmap id                */
719     0,                                       /* on pixelmap id                 */
720     0,                                       /* off disabled pixelmap id       */
721     0                                        /* on disabled pixelmap id        */
722 };
723 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_5_properties =
724 {
725     GX_STRING_ID_STRING_53,                  /* string id                      */
726     GX_FONT_ID_BUTTON,                       /* font id                        */
727     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
728     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
729     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
730     0,                                       /* off pixelmap id                */
731     0,                                       /* on pixelmap id                 */
732     0,                                       /* off disabled pixelmap id       */
733     0                                        /* on disabled pixelmap id        */
734 };
735 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_6_properties =
736 {
737     GX_STRING_ID_STRING_54,                  /* string id                      */
738     GX_FONT_ID_BUTTON,                       /* font id                        */
739     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
740     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
741     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
742     0,                                       /* off pixelmap id                */
743     0,                                       /* on pixelmap id                 */
744     0,                                       /* off disabled pixelmap id       */
745     0                                        /* on disabled pixelmap id        */
746 };
747 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_properties =
748 {
749     GX_STRING_ID_STRING_63,                  /* string id                      */
750     GX_FONT_ID_BUTTON,                       /* font id                        */
751     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
752     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
753     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
754     0,                                       /* off pixelmap id                */
755     0,                                       /* on pixelmap id                 */
756     0,                                       /* off disabled pixelmap id       */
757     0                                        /* on disabled pixelmap id        */
758 };
759 GX_WINDOW_PROPERTIES main_window_graphics_window_properties =
760 {
761     0                                        /* wallpaper pixelmap id          */
762 };
763 GX_CHECKBOX_PROPERTIES main_window_checkbox_anti_alised_properties =
764 {
765     GX_STRING_ID_STRING_20,                  /* string id                      */
766     GX_FONT_ID_BUTTON,                       /* font id                        */
767     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
768     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
769     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
770     0,                                       /* unchecked pixelmap id          */
771     0,                                       /* checked pixelmap id            */
772     0,                                       /* unchecked disabled pixelmap id */
773     0                                        /* checked disabled pixelmap id   */
774 };
775 GX_PROMPT_PROPERTIES main_window_prompt_4_properties =
776 {
777     GX_STRING_ID_STRING_9,                   /* string id                      */
778     GX_FONT_ID_PROMPT,                       /* font id                        */
779     GX_COLOR_ID_TEXT,                        /* normal text color              */
780     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
781     GX_COLOR_ID_TEXT                         /* disabled text color            */
782 };
783 GX_CHECKBOX_PROPERTIES main_window_checkbox_fill_properties =
784 {
785     GX_STRING_ID_STRING_11,                  /* string id                      */
786     GX_FONT_ID_BUTTON,                       /* font id                        */
787     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
788     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
789     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
790     0,                                       /* unchecked pixelmap id          */
791     0,                                       /* checked pixelmap id            */
792     0,                                       /* unchecked disabled pixelmap id */
793     0                                        /* checked disabled pixelmap id   */
794 };
795 GX_CHECKBOX_PROPERTIES main_window_checkbox_2_properties =
796 {
797     GX_STRING_ID_STRING_35,                  /* string id                      */
798     GX_FONT_ID_BUTTON,                       /* font id                        */
799     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
800     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
801     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
802     0,                                       /* unchecked pixelmap id          */
803     0,                                       /* checked pixelmap id            */
804     0,                                       /* unchecked disabled pixelmap id */
805     0                                        /* checked disabled pixelmap id   */
806 };
807 GX_CHECKBOX_PROPERTIES main_window_checkbox_pixelmap_fill_properties =
808 {
809     GX_STRING_ID_STRING_38,                  /* string id                      */
810     GX_FONT_ID_BUTTON,                       /* font id                        */
811     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
812     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
813     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
814     0,                                       /* unchecked pixelmap id          */
815     0,                                       /* checked pixelmap id            */
816     0,                                       /* unchecked disabled pixelmap id */
817     0                                        /* checked disabled pixelmap id   */
818 };
819 GX_SLIDER_PROPERTIES main_window_start_angle_slider_properties =
820 {
821     10,                                      /* tickmark count                 */
822     0,                                       /* mimimun value                  */
823     360,                                     /* maximum value                  */
824     0,                                       /* current value                  */
825     1,                                       /* increment                      */
826     10,                                      /* minimum travel                 */
827     10,                                      /* maximum travel                 */
828     5,                                       /* needle width                   */
829     14,                                      /* needle height                  */
830     5,                                       /* needle inset                   */
831     1                                        /* needle hotspot                 */
832 };
833 GX_PROMPT_PROPERTIES main_window_prompt_5_properties =
834 {
835     GX_STRING_ID_STRING_40,                  /* string id                      */
836     GX_FONT_ID_PROMPT,                       /* font id                        */
837     GX_COLOR_ID_TEXT,                        /* normal text color              */
838     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
839     GX_COLOR_ID_TEXT                         /* disabled text color            */
840 };
841 GX_PROMPT_PROPERTIES main_window_prompt_6_properties =
842 {
843     GX_STRING_ID_STRING_42,                  /* string id                      */
844     GX_FONT_ID_PROMPT,                       /* font id                        */
845     GX_COLOR_ID_TEXT,                        /* normal text color              */
846     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
847     GX_COLOR_ID_TEXT                         /* disabled text color            */
848 };
849 GX_SLIDER_PROPERTIES main_window_end_angle_slider_properties =
850 {
851     10,                                      /* tickmark count                 */
852     0,                                       /* mimimun value                  */
853     360,                                     /* maximum value                  */
854     90,                                      /* current value                  */
855     1,                                       /* increment                      */
856     10,                                      /* minimum travel                 */
857     10,                                      /* maximum travel                 */
858     5,                                       /* needle width                   */
859     14,                                      /* needle height                  */
860     5,                                       /* needle inset                   */
861     1                                        /* needle hotspot                 */
862 };
863 GX_PROMPT_PROPERTIES main_window_start_angle_prompt_properties =
864 {
865     GX_STRING_ID_STRING_3,                   /* string id                      */
866     GX_FONT_ID_PROMPT,                       /* font id                        */
867     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
868     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
869     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
870 };
871 GX_PROMPT_PROPERTIES main_window_end_angle_prompt_properties =
872 {
873     GX_STRING_ID_STRING_44,                  /* string id                      */
874     GX_FONT_ID_PROMPT,                       /* font id                        */
875     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
876     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
877     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
878 };
879 GX_PROMPT_PROPERTIES main_window_prompt_7_properties =
880 {
881     GX_STRING_ID_STRING_43,                  /* string id                      */
882     GX_FONT_ID_PROMPT,                       /* font id                        */
883     GX_COLOR_ID_TEXT,                        /* normal text color              */
884     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
885     GX_COLOR_ID_TEXT                         /* disabled text color            */
886 };
887 GX_SLIDER_PROPERTIES main_window_radius_slider_properties =
888 {
889     10,                                      /* tickmark count                 */
890     5,                                       /* mimimun value                  */
891     200,                                     /* maximum value                  */
892     100,                                     /* current value                  */
893     1,                                       /* increment                      */
894     10,                                      /* minimum travel                 */
895     10,                                      /* maximum travel                 */
896     5,                                       /* needle width                   */
897     14,                                      /* needle height                  */
898     5,                                       /* needle inset                   */
899     1                                        /* needle hotspot                 */
900 };
901 GX_PROMPT_PROPERTIES main_window_radius_prompt_properties =
902 {
903     GX_STRING_ID_STRING_46,                  /* string id                      */
904     GX_FONT_ID_PROMPT,                       /* font id                        */
905     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
906     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
907     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
908 };
909 GX_CHECKBOX_PROPERTIES main_window_checkbox_4_properties =
910 {
911     GX_STRING_ID_STRING_33,                  /* string id                      */
912     GX_FONT_ID_BUTTON,                       /* font id                        */
913     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
914     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
915     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
916     0,                                       /* unchecked pixelmap id          */
917     0,                                       /* checked pixelmap id            */
918     0,                                       /* unchecked disabled pixelmap id */
919     0                                        /* checked disabled pixelmap id   */
920 };
921 GX_CHECKBOX_PROPERTIES main_window_checkbox_5_properties =
922 {
923     GX_STRING_ID_STRING_27,                  /* string id                      */
924     GX_FONT_ID_BUTTON,                       /* font id                        */
925     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
926     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
927     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
928     0,                                       /* unchecked pixelmap id          */
929     0,                                       /* checked pixelmap id            */
930     0,                                       /* unchecked disabled pixelmap id */
931     0                                        /* checked disabled pixelmap id   */
932 };
933 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_1_properties =
934 {
935     GX_STRING_ID_STRING_47,                  /* string id                      */
936     GX_FONT_ID_BUTTON,                       /* font id                        */
937     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
938     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
939     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
940     0,                                       /* off pixelmap id                */
941     0,                                       /* on pixelmap id                 */
942     0,                                       /* off disabled pixelmap id       */
943     0                                        /* on disabled pixelmap id        */
944 };
945 GX_RADIO_BUTTON_PROPERTIES main_window_radio_button_2_properties =
946 {
947     GX_STRING_ID_STRING_48,                  /* string id                      */
948     GX_FONT_ID_BUTTON,                       /* font id                        */
949     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
950     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
951     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
952     0,                                       /* off pixelmap id                */
953     0,                                       /* on pixelmap id                 */
954     0,                                       /* off disabled pixelmap id       */
955     0                                        /* on disabled pixelmap id        */
956 };
957 GX_TEXT_BUTTON_PROPERTIES main_window_button_2_properties =
958 {
959     GX_STRING_ID_STRING_60,                  /* string id                      */
960     GX_FONT_ID_BUTTON,                       /* font id                        */
961     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
962     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
963     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
964 };
965 GX_SLIDER_PROPERTIES main_window_brush_width_slider_properties =
966 {
967     10,                                      /* tickmark count                 */
968     0,                                       /* mimimun value                  */
969     10,                                      /* maximum value                  */
970     1,                                       /* current value                  */
971     1,                                       /* increment                      */
972     10,                                      /* minimum travel                 */
973     10,                                      /* maximum travel                 */
974     5,                                       /* needle width                   */
975     14,                                      /* needle height                  */
976     5,                                       /* needle inset                   */
977     1                                        /* needle hotspot                 */
978 };
979 GX_PROMPT_PROPERTIES main_window_brush_width_prompt_properties =
980 {
981     GX_STRING_ID_STRING_18,                  /* string id                      */
982     GX_FONT_ID_PROMPT,                       /* font id                        */
983     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
984     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
985     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
986 };
987 GX_PROMPT_PROPERTIES main_window_prompt_9_properties =
988 {
989     GX_STRING_ID_STRING_41,                  /* string id                      */
990     GX_FONT_ID_PROMPT,                       /* font id                        */
991     GX_COLOR_ID_TEXT,                        /* normal text color              */
992     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
993     GX_COLOR_ID_TEXT                         /* disabled text color            */
994 };
995 GX_PROMPT_PROPERTIES main_window_prompt_properties =
996 {
997     GX_STRING_ID_STRING_62,                  /* string id                      */
998     GX_FONT_ID_PROMPT,                       /* font id                        */
999     GX_COLOR_ID_TEXT,                        /* normal text color              */
1000     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1001     GX_COLOR_ID_TEXT                         /* disabled text color            */
1002 };
1003 GX_SLIDER_PROPERTIES main_window_brush_alpha_slider_properties =
1004 {
1005     10,                                      /* tickmark count                 */
1006     0,                                       /* mimimun value                  */
1007     255,                                     /* maximum value                  */
1008     255,                                     /* current value                  */
1009     1,                                       /* increment                      */
1010     10,                                      /* minimum travel                 */
1011     10,                                      /* maximum travel                 */
1012     5,                                       /* needle width                   */
1013     14,                                      /* needle height                  */
1014     5,                                       /* needle inset                   */
1015     1                                        /* needle hotspot                 */
1016 };
1017 GX_PROMPT_PROPERTIES main_window_brush_alpha_prompt_properties =
1018 {
1019     GX_STRING_ID_STRING_18,                  /* string id                      */
1020     GX_FONT_ID_PROMPT,                       /* font id                        */
1021     GX_COLOR_ID_SELECTED_TEXT,               /* normal text color              */
1022     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1023     GX_COLOR_ID_SELECTED_TEXT                /* disabled text color            */
1024 };
1025 
1026 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_define =
1027 {
1028     "radio_button",
1029     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1030     ID_RECTANGLE,                            /* widget id                      */
1031     #if defined(GX_WIDGET_USER_DATA)
1032     0,                                       /* user data                      */
1033     #endif
1034     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1035     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1036     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1037     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1038     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1039     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1040     gx_studio_radio_button_create,           /* create function                */
1041     GX_NULL,                                 /* drawing function override      */
1042     GX_NULL,                                 /* event function override        */
1043     {325, 447, 429, 470},                    /* widget size                    */
1044     GX_NULL,                                 /* no next widget                 */
1045     GX_NULL,                                 /* no child widgets               */
1046     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button), /* control block */
1047     (void *) &main_window_radio_button_properties /* extended properties       */
1048 };
1049 
1050 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_6_define =
1051 {
1052     "radio_button_6",
1053     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1054     ID_POLYGON,                              /* widget id                      */
1055     #if defined(GX_WIDGET_USER_DATA)
1056     0,                                       /* user data                      */
1057     #endif
1058     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1059     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1060     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1061     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1062     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1063     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1064     gx_studio_radio_button_create,           /* create function                */
1065     GX_NULL,                                 /* drawing function override      */
1066     GX_NULL,                                 /* event function override        */
1067     {229, 445, 319, 468},                    /* widget size                    */
1068     &main_window_radio_button_define,        /* next widget definition         */
1069     GX_NULL,                                 /* no child widgets               */
1070     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_6), /* control block */
1071     (void *) &main_window_radio_button_6_properties /* extended properties     */
1072 };
1073 
1074 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_5_define =
1075 {
1076     "radio_button_5",
1077     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1078     ID_PIE,                                  /* widget id                      */
1079     #if defined(GX_WIDGET_USER_DATA)
1080     0,                                       /* user data                      */
1081     #endif
1082     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1083     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1084     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1085     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1086     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1087     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1088     gx_studio_radio_button_create,           /* create function                */
1089     GX_NULL,                                 /* drawing function override      */
1090     GX_NULL,                                 /* event function override        */
1091     {170, 445, 218, 468},                    /* widget size                    */
1092     &main_window_radio_button_6_define,      /* next widget definition         */
1093     GX_NULL,                                 /* no child widgets               */
1094     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_5), /* control block */
1095     (void *) &main_window_radio_button_5_properties /* extended properties     */
1096 };
1097 
1098 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_4_define =
1099 {
1100     "radio_button_4",
1101     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1102     ID_ARC,                                  /* widget id                      */
1103     #if defined(GX_WIDGET_USER_DATA)
1104     0,                                       /* user data                      */
1105     #endif
1106     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1107     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1108     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1109     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1110     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1111     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1112     gx_studio_radio_button_create,           /* create function                */
1113     GX_NULL,                                 /* drawing function override      */
1114     GX_NULL,                                 /* event function override        */
1115     {110, 445, 159, 468},                    /* widget size                    */
1116     &main_window_radio_button_5_define,      /* next widget definition         */
1117     GX_NULL,                                 /* no child widgets               */
1118     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_4), /* control block */
1119     (void *) &main_window_radio_button_4_properties /* extended properties     */
1120 };
1121 
1122 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_3_define =
1123 {
1124     "radio_button_3",
1125     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1126     ID_CIRCLE,                               /* widget id                      */
1127     #if defined(GX_WIDGET_USER_DATA)
1128     0,                                       /* user data                      */
1129     #endif
1130     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1131     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1132     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1133     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1134     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1135     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1136     gx_studio_radio_button_create,           /* create function                */
1137     GX_NULL,                                 /* drawing function override      */
1138     GX_NULL,                                 /* event function override        */
1139     {33, 445, 97, 468},                      /* widget size                    */
1140     &main_window_radio_button_4_define,      /* next widget definition         */
1141     GX_NULL,                                 /* no child widgets               */
1142     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_3), /* control block */
1143     (void *) &main_window_radio_button_3_properties /* extended properties     */
1144 };
1145 
1146 GX_CONST GX_STUDIO_WIDGET main_window_brush_alpha_prompt_define =
1147 {
1148     "brush_alpha_prompt",
1149     GX_TYPE_PROMPT,                          /* widget type                    */
1150     ID_BRUSH_ALPHA_PROMPT,                   /* widget id                      */
1151     #if defined(GX_WIDGET_USER_DATA)
1152     0,                                       /* user data                      */
1153     #endif
1154     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
1155     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1156     sizeof(GX_PROMPT),                       /* control block size             */
1157     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
1158     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1159     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
1160     gx_studio_prompt_create,                 /* create function                */
1161     GX_NULL,                                 /* drawing function override      */
1162     GX_NULL,                                 /* event function override        */
1163     {584, 273, 622, 296},                    /* widget size                    */
1164     GX_NULL,                                 /* no next widget                 */
1165     GX_NULL,                                 /* no child widgets               */
1166     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_brush_alpha_prompt), /* control block */
1167     (void *) &main_window_brush_alpha_prompt_properties /* extended properties */
1168 };
1169 
1170 GX_CONST GX_STUDIO_WIDGET main_window_brush_alpha_slider_define =
1171 {
1172     "brush_alpha_slider",
1173     GX_TYPE_SLIDER,                          /* widget type                    */
1174     ID_BRUSH_ALPHA,                          /* widget id                      */
1175     #if defined(GX_WIDGET_USER_DATA)
1176     0,                                       /* user data                      */
1177     #endif
1178     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
1179     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1180     sizeof(GX_SLIDER),                       /* control block size             */
1181     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1182     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1183     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1184     gx_studio_slider_create,                 /* create function                */
1185     GX_NULL,                                 /* drawing function override      */
1186     GX_NULL,                                 /* event function override        */
1187     {457, 273, 573, 296},                    /* widget size                    */
1188     &main_window_brush_alpha_prompt_define,  /* next widget definition         */
1189     GX_NULL,                                 /* no child widgets               */
1190     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_brush_alpha_slider), /* control block */
1191     (void *) &main_window_brush_alpha_slider_properties /* extended properties */
1192 };
1193 
1194 GX_CONST GX_STUDIO_WIDGET main_window_prompt_define =
1195 {
1196     "prompt",
1197     GX_TYPE_PROMPT,                          /* widget type                    */
1198     GX_ID_NONE,                              /* widget id                      */
1199     #if defined(GX_WIDGET_USER_DATA)
1200     0,                                       /* user data                      */
1201     #endif
1202     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1203     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1204     sizeof(GX_PROMPT),                       /* control block size             */
1205     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1206     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1207     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1208     gx_studio_prompt_create,                 /* create function                */
1209     GX_NULL,                                 /* drawing function override      */
1210     GX_NULL,                                 /* event function override        */
1211     {413, 251, 512, 274},                    /* widget size                    */
1212     &main_window_brush_alpha_slider_define,  /* next widget definition         */
1213     GX_NULL,                                 /* no child widgets               */
1214     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt), /* control block  */
1215     (void *) &main_window_prompt_properties  /* extended properties            */
1216 };
1217 
1218 GX_CONST GX_STUDIO_WIDGET main_window_prompt_9_define =
1219 {
1220     "prompt_9",
1221     GX_TYPE_PROMPT,                          /* widget type                    */
1222     GX_ID_NONE,                              /* widget id                      */
1223     #if defined(GX_WIDGET_USER_DATA)
1224     0,                                       /* user data                      */
1225     #endif
1226     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1227     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1228     sizeof(GX_PROMPT),                       /* control block size             */
1229     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1230     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1231     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1232     gx_studio_prompt_create,                 /* create function                */
1233     GX_NULL,                                 /* drawing function override      */
1234     GX_NULL,                                 /* event function override        */
1235     {415, 198, 514, 221},                    /* widget size                    */
1236     &main_window_prompt_define,              /* next widget definition         */
1237     GX_NULL,                                 /* no child widgets               */
1238     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt_9), /* control block */
1239     (void *) &main_window_prompt_9_properties /* extended properties           */
1240 };
1241 
1242 GX_CONST GX_STUDIO_WIDGET main_window_brush_width_prompt_define =
1243 {
1244     "brush_width_prompt",
1245     GX_TYPE_PROMPT,                          /* widget type                    */
1246     ID_BRUSH_WIDTH_PROMPT,                   /* widget id                      */
1247     #if defined(GX_WIDGET_USER_DATA)
1248     0,                                       /* user data                      */
1249     #endif
1250     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
1251     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1252     sizeof(GX_PROMPT),                       /* control block size             */
1253     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
1254     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1255     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
1256     gx_studio_prompt_create,                 /* create function                */
1257     GX_NULL,                                 /* drawing function override      */
1258     GX_NULL,                                 /* event function override        */
1259     {583, 223, 621, 246},                    /* widget size                    */
1260     &main_window_prompt_9_define,            /* next widget definition         */
1261     GX_NULL,                                 /* no child widgets               */
1262     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_brush_width_prompt), /* control block */
1263     (void *) &main_window_brush_width_prompt_properties /* extended properties */
1264 };
1265 
1266 GX_CONST GX_STUDIO_WIDGET main_window_brush_width_slider_define =
1267 {
1268     "brush_width_slider",
1269     GX_TYPE_SLIDER,                          /* widget type                    */
1270     ID_BRUSH_WIDTH,                          /* widget id                      */
1271     #if defined(GX_WIDGET_USER_DATA)
1272     0,                                       /* user data                      */
1273     #endif
1274     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
1275     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1276     sizeof(GX_SLIDER),                       /* control block size             */
1277     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1278     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1279     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1280     gx_studio_slider_create,                 /* create function                */
1281     GX_NULL,                                 /* drawing function override      */
1282     GX_NULL,                                 /* event function override        */
1283     {454, 222, 570, 245},                    /* widget size                    */
1284     &main_window_brush_width_prompt_define,  /* next widget definition         */
1285     GX_NULL,                                 /* no child widgets               */
1286     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_brush_width_slider), /* control block */
1287     (void *) &main_window_brush_width_slider_properties /* extended properties */
1288 };
1289 
1290 GX_CONST GX_STUDIO_WIDGET main_window_button_2_define =
1291 {
1292     "button_2",
1293     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1294     ID_NEXT_PAGE,                            /* widget id                      */
1295     #if defined(GX_WIDGET_USER_DATA)
1296     0,                                       /* user data                      */
1297     #endif
1298     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1299     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1300     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1301     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1302     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1303     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1304     gx_studio_text_button_create,            /* create function                */
1305     GX_NULL,                                 /* drawing function override      */
1306     GX_NULL,                                 /* event function override        */
1307     {549, 442, 628, 465},                    /* widget size                    */
1308     &main_window_brush_width_slider_define,  /* next widget definition         */
1309     GX_NULL,                                 /* no child widgets               */
1310     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_button_2), /* control block */
1311     (void *) &main_window_button_2_properties /* extended properties           */
1312 };
1313 
1314 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_2_define =
1315 {
1316     "radio_button_2",
1317     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1318     ID_FRESHCOLOR,                           /* widget id                      */
1319     #if defined(GX_WIDGET_USER_DATA)
1320     0,                                       /* user data                      */
1321     #endif
1322     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1323     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1324     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1325     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1326     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1327     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1328     gx_studio_radio_button_create,           /* create function                */
1329     GX_NULL,                                 /* drawing function override      */
1330     GX_NULL,                                 /* event function override        */
1331     {524, 371, 633, 394},                    /* widget size                    */
1332     &main_window_button_2_define,            /* next widget definition         */
1333     GX_NULL,                                 /* no child widgets               */
1334     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_2), /* control block */
1335     (void *) &main_window_radio_button_2_properties /* extended properties     */
1336 };
1337 
1338 GX_CONST GX_STUDIO_WIDGET main_window_radio_button_1_define =
1339 {
1340     "radio_button_1",
1341     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
1342     ID_BLACK,                                /* widget id                      */
1343     #if defined(GX_WIDGET_USER_DATA)
1344     0,                                       /* user data                      */
1345     #endif
1346     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
1347     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1348     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
1349     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1350     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1351     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1352     gx_studio_radio_button_create,           /* create function                */
1353     GX_NULL,                                 /* drawing function override      */
1354     GX_NULL,                                 /* event function override        */
1355     {443, 371, 522, 394},                    /* widget size                    */
1356     &main_window_radio_button_2_define,      /* next widget definition         */
1357     GX_NULL,                                 /* no child widgets               */
1358     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radio_button_1), /* control block */
1359     (void *) &main_window_radio_button_1_properties /* extended properties     */
1360 };
1361 
1362 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_5_define =
1363 {
1364     "checkbox_5",
1365     GX_TYPE_CHECKBOX,                        /* widget type                    */
1366     ID_COMPRESS,                             /* widget id                      */
1367     #if defined(GX_WIDGET_USER_DATA)
1368     0,                                       /* user data                      */
1369     #endif
1370     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1371     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1372     sizeof(GX_CHECKBOX),                     /* control block size             */
1373     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1374     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1375     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1376     gx_studio_checkbox_create,               /* create function                */
1377     GX_NULL,                                 /* drawing function override      */
1378     GX_NULL,                                 /* event function override        */
1379     {525, 417, 654, 440},                    /* widget size                    */
1380     &main_window_radio_button_1_define,      /* next widget definition         */
1381     GX_NULL,                                 /* no child widgets               */
1382     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_5), /* control block */
1383     (void *) &main_window_checkbox_5_properties /* extended properties         */
1384 };
1385 
1386 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_4_define =
1387 {
1388     "checkbox_4",
1389     GX_TYPE_CHECKBOX,                        /* widget type                    */
1390     ID_ALPHA,                                /* widget id                      */
1391     #if defined(GX_WIDGET_USER_DATA)
1392     0,                                       /* user data                      */
1393     #endif
1394     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1395     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1396     sizeof(GX_CHECKBOX),                     /* control block size             */
1397     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1398     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1399     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1400     gx_studio_checkbox_create,               /* create function                */
1401     GX_NULL,                                 /* drawing function override      */
1402     GX_NULL,                                 /* event function override        */
1403     {445, 417, 524, 440},                    /* widget size                    */
1404     &main_window_checkbox_5_define,          /* next widget definition         */
1405     GX_NULL,                                 /* no child widgets               */
1406     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_4), /* control block */
1407     (void *) &main_window_checkbox_4_properties /* extended properties         */
1408 };
1409 
1410 GX_CONST GX_STUDIO_WIDGET main_window_radius_prompt_define =
1411 {
1412     "radius_prompt",
1413     GX_TYPE_PROMPT,                          /* widget type                    */
1414     ID_RADIUS_PROMPT,                        /* widget id                      */
1415     #if defined(GX_WIDGET_USER_DATA)
1416     0,                                       /* user data                      */
1417     #endif
1418     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
1419     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1420     sizeof(GX_PROMPT),                       /* control block size             */
1421     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
1422     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1423     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
1424     gx_studio_prompt_create,                 /* create function                */
1425     GX_NULL,                                 /* drawing function override      */
1426     GX_NULL,                                 /* event function override        */
1427     {584, 171, 622, 194},                    /* widget size                    */
1428     &main_window_checkbox_4_define,          /* next widget definition         */
1429     GX_NULL,                                 /* no child widgets               */
1430     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radius_prompt), /* control block */
1431     (void *) &main_window_radius_prompt_properties /* extended properties      */
1432 };
1433 
1434 GX_CONST GX_STUDIO_WIDGET main_window_radius_slider_define =
1435 {
1436     "radius_slider",
1437     GX_TYPE_SLIDER,                          /* widget type                    */
1438     ID_RADIUS_SLIDER,                        /* widget id                      */
1439     #if defined(GX_WIDGET_USER_DATA)
1440     0,                                       /* user data                      */
1441     #endif
1442     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
1443     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1444     sizeof(GX_SLIDER),                       /* control block size             */
1445     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1446     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1447     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1448     gx_studio_slider_create,                 /* create function                */
1449     GX_NULL,                                 /* drawing function override      */
1450     GX_NULL,                                 /* event function override        */
1451     {454, 169, 570, 192},                    /* widget size                    */
1452     &main_window_radius_prompt_define,       /* next widget definition         */
1453     GX_NULL,                                 /* no child widgets               */
1454     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_radius_slider), /* control block */
1455     (void *) &main_window_radius_slider_properties /* extended properties      */
1456 };
1457 
1458 GX_CONST GX_STUDIO_WIDGET main_window_prompt_7_define =
1459 {
1460     "prompt_7",
1461     GX_TYPE_PROMPT,                          /* widget type                    */
1462     GX_ID_NONE,                              /* widget id                      */
1463     #if defined(GX_WIDGET_USER_DATA)
1464     0,                                       /* user data                      */
1465     #endif
1466     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
1467     0,                                       /* status flags                   */
1468     sizeof(GX_PROMPT),                       /* control block size             */
1469     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal color id                */
1470     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1471     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled color id              */
1472     gx_studio_prompt_create,                 /* create function                */
1473     GX_NULL,                                 /* drawing function override      */
1474     GX_NULL,                                 /* event function override        */
1475     {418, 147, 503, 170},                    /* widget size                    */
1476     &main_window_radius_slider_define,       /* next widget definition         */
1477     GX_NULL,                                 /* no child widgets               */
1478     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt_7), /* control block */
1479     (void *) &main_window_prompt_7_properties /* extended properties           */
1480 };
1481 
1482 GX_CONST GX_STUDIO_WIDGET main_window_end_angle_prompt_define =
1483 {
1484     "end_angle_prompt",
1485     GX_TYPE_PROMPT,                          /* widget type                    */
1486     ID_LINE_WIDTH_PROMPT,                    /* widget id                      */
1487     #if defined(GX_WIDGET_USER_DATA)
1488     0,                                       /* user data                      */
1489     #endif
1490     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
1491     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1492     sizeof(GX_PROMPT),                       /* control block size             */
1493     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
1494     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1495     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
1496     gx_studio_prompt_create,                 /* create function                */
1497     GX_NULL,                                 /* drawing function override      */
1498     GX_NULL,                                 /* event function override        */
1499     {582, 118, 620, 141},                    /* widget size                    */
1500     &main_window_prompt_7_define,            /* next widget definition         */
1501     GX_NULL,                                 /* no child widgets               */
1502     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_end_angle_prompt), /* control block */
1503     (void *) &main_window_end_angle_prompt_properties /* extended properties   */
1504 };
1505 
1506 GX_CONST GX_STUDIO_WIDGET main_window_start_angle_prompt_define =
1507 {
1508     "start_angle_prompt",
1509     GX_TYPE_PROMPT,                          /* widget type                    */
1510     ID_BRUSH_WIDTH_PROMPT,                   /* widget id                      */
1511     #if defined(GX_WIDGET_USER_DATA)
1512     0,                                       /* user data                      */
1513     #endif
1514     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_RIGHT,   /* style flags */
1515     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1516     sizeof(GX_PROMPT),                       /* control block size             */
1517     GX_COLOR_ID_SLIDER_TICK,                 /* normal color id                */
1518     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1519     GX_COLOR_ID_SLIDER_TICK,                 /* disabled color id              */
1520     gx_studio_prompt_create,                 /* create function                */
1521     GX_NULL,                                 /* drawing function override      */
1522     GX_NULL,                                 /* event function override        */
1523     {581, 68, 619, 91},                      /* widget size                    */
1524     &main_window_end_angle_prompt_define,    /* next widget definition         */
1525     GX_NULL,                                 /* no child widgets               */
1526     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_start_angle_prompt), /* control block */
1527     (void *) &main_window_start_angle_prompt_properties /* extended properties */
1528 };
1529 
1530 GX_CONST GX_STUDIO_WIDGET main_window_end_angle_slider_define =
1531 {
1532     "end_angle_slider",
1533     GX_TYPE_SLIDER,                          /* widget type                    */
1534     ID_END_ANGLE_SLIDER,                     /* widget id                      */
1535     #if defined(GX_WIDGET_USER_DATA)
1536     0,                                       /* user data                      */
1537     #endif
1538     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
1539     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1540     sizeof(GX_SLIDER),                       /* control block size             */
1541     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1542     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1543     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1544     gx_studio_slider_create,                 /* create function                */
1545     GX_NULL,                                 /* drawing function override      */
1546     GX_NULL,                                 /* event function override        */
1547     {454, 119, 570, 142},                    /* widget size                    */
1548     &main_window_start_angle_prompt_define,  /* next widget definition         */
1549     GX_NULL,                                 /* no child widgets               */
1550     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_end_angle_slider), /* control block */
1551     (void *) &main_window_end_angle_slider_properties /* extended properties   */
1552 };
1553 
1554 GX_CONST GX_STUDIO_WIDGET main_window_prompt_6_define =
1555 {
1556     "prompt_6",
1557     GX_TYPE_PROMPT,                          /* widget type                    */
1558     GX_ID_NONE,                              /* widget id                      */
1559     #if defined(GX_WIDGET_USER_DATA)
1560     0,                                       /* user data                      */
1561     #endif
1562     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
1563     0,                                       /* status flags                   */
1564     sizeof(GX_PROMPT),                       /* control block size             */
1565     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal color id                */
1566     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1567     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled color id              */
1568     gx_studio_prompt_create,                 /* create function                */
1569     GX_NULL,                                 /* drawing function override      */
1570     GX_NULL,                                 /* event function override        */
1571     {418, 92, 503, 115},                     /* widget size                    */
1572     &main_window_end_angle_slider_define,    /* next widget definition         */
1573     GX_NULL,                                 /* no child widgets               */
1574     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt_6), /* control block */
1575     (void *) &main_window_prompt_6_properties /* extended properties           */
1576 };
1577 
1578 GX_CONST GX_STUDIO_WIDGET main_window_prompt_5_define =
1579 {
1580     "prompt_5",
1581     GX_TYPE_PROMPT,                          /* widget type                    */
1582     GX_ID_NONE,                              /* widget id                      */
1583     #if defined(GX_WIDGET_USER_DATA)
1584     0,                                       /* user data                      */
1585     #endif
1586     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
1587     0,                                       /* status flags                   */
1588     sizeof(GX_PROMPT),                       /* control block size             */
1589     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal color id                */
1590     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1591     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled color id              */
1592     gx_studio_prompt_create,                 /* create function                */
1593     GX_NULL,                                 /* drawing function override      */
1594     GX_NULL,                                 /* event function override        */
1595     {418, 42, 503, 65},                      /* widget size                    */
1596     &main_window_prompt_6_define,            /* next widget definition         */
1597     GX_NULL,                                 /* no child widgets               */
1598     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt_5), /* control block */
1599     (void *) &main_window_prompt_5_properties /* extended properties           */
1600 };
1601 
1602 GX_CONST GX_STUDIO_WIDGET main_window_start_angle_slider_define =
1603 {
1604     "start_angle_slider",
1605     GX_TYPE_SLIDER,                          /* widget type                    */
1606     ID_START_ANGLE_SLIDER,                   /* widget id                      */
1607     #if defined(GX_WIDGET_USER_DATA)
1608     0,                                       /* user data                      */
1609     #endif
1610     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
1611     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1612     sizeof(GX_SLIDER),                       /* control block size             */
1613     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1614     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1615     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1616     gx_studio_slider_create,                 /* create function                */
1617     GX_NULL,                                 /* drawing function override      */
1618     GX_NULL,                                 /* event function override        */
1619     {455, 67, 571, 90},                      /* widget size                    */
1620     &main_window_prompt_5_define,            /* next widget definition         */
1621     GX_NULL,                                 /* no child widgets               */
1622     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_start_angle_slider), /* control block */
1623     (void *) &main_window_start_angle_slider_properties /* extended properties */
1624 };
1625 
1626 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_pixelmap_fill_define =
1627 {
1628     "checkbox_pixelmap_fill",
1629     GX_TYPE_CHECKBOX,                        /* widget type                    */
1630     ID_PIXELMAP_FILL,                        /* widget id                      */
1631     #if defined(GX_WIDGET_USER_DATA)
1632     0,                                       /* user data                      */
1633     #endif
1634     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1635     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1636     sizeof(GX_CHECKBOX),                     /* control block size             */
1637     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1638     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1639     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1640     gx_studio_checkbox_create,               /* create function                */
1641     GX_NULL,                                 /* drawing function override      */
1642     GX_NULL,                                 /* event function override        */
1643     {420, 392, 543, 415},                    /* widget size                    */
1644     &main_window_start_angle_slider_define,  /* next widget definition         */
1645     GX_NULL,                                 /* no child widgets               */
1646     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_pixelmap_fill), /* control block */
1647     (void *) &main_window_checkbox_pixelmap_fill_properties /* extended properties */
1648 };
1649 
1650 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_2_define =
1651 {
1652     "checkbox_2",
1653     GX_TYPE_CHECKBOX,                        /* widget type                    */
1654     ID_WALLPAPER,                            /* widget id                      */
1655     #if defined(GX_WIDGET_USER_DATA)
1656     0,                                       /* user data                      */
1657     #endif
1658     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1659     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1660     sizeof(GX_CHECKBOX),                     /* control block size             */
1661     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1662     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1663     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1664     gx_studio_checkbox_create,               /* create function                */
1665     GX_NULL,                                 /* drawing function override      */
1666     GX_NULL,                                 /* event function override        */
1667     {509, 10, 626, 33},                      /* widget size                    */
1668     &main_window_checkbox_pixelmap_fill_define, /* next widget definition      */
1669     GX_NULL,                                 /* no child widgets               */
1670     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_2), /* control block */
1671     (void *) &main_window_checkbox_2_properties /* extended properties         */
1672 };
1673 
1674 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_fill_define =
1675 {
1676     "checkbox_fill",
1677     GX_TYPE_CHECKBOX,                        /* widget type                    */
1678     ID_SOLID_FILL,                           /* widget id                      */
1679     #if defined(GX_WIDGET_USER_DATA)
1680     0,                                       /* user data                      */
1681     #endif
1682     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1683     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1684     sizeof(GX_CHECKBOX),                     /* control block size             */
1685     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1686     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1687     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1688     gx_studio_checkbox_create,               /* create function                */
1689     GX_NULL,                                 /* drawing function override      */
1690     GX_NULL,                                 /* event function override        */
1691     {420, 349, 543, 372},                    /* widget size                    */
1692     &main_window_checkbox_2_define,          /* next widget definition         */
1693     GX_NULL,                                 /* no child widgets               */
1694     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_fill), /* control block */
1695     (void *) &main_window_checkbox_fill_properties /* extended properties      */
1696 };
1697 
1698 GX_CONST GX_STUDIO_WIDGET main_window_prompt_4_define =
1699 {
1700     "prompt_4",
1701     GX_TYPE_PROMPT,                          /* widget type                    */
1702     GX_ID_NONE,                              /* widget id                      */
1703     #if defined(GX_WIDGET_USER_DATA)
1704     0,                                       /* user data                      */
1705     #endif
1706     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1707     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1708     sizeof(GX_PROMPT),                       /* control block size             */
1709     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1710     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1711     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1712     gx_studio_prompt_create,                 /* create function                */
1713     GX_NULL,                                 /* drawing function override      */
1714     GX_NULL,                                 /* event function override        */
1715     {419, 300, 550, 323},                    /* widget size                    */
1716     &main_window_checkbox_fill_define,       /* next widget definition         */
1717     GX_NULL,                                 /* no child widgets               */
1718     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_prompt_4), /* control block */
1719     (void *) &main_window_prompt_4_properties /* extended properties           */
1720 };
1721 
1722 GX_CONST GX_STUDIO_WIDGET main_window_checkbox_anti_alised_define =
1723 {
1724     "checkbox_anti_alised",
1725     GX_TYPE_CHECKBOX,                        /* widget type                    */
1726     ID_ANTI_ALIASED,                         /* widget id                      */
1727     #if defined(GX_WIDGET_USER_DATA)
1728     0,                                       /* user data                      */
1729     #endif
1730     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
1731     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1732     sizeof(GX_CHECKBOX),                     /* control block size             */
1733     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1734     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1735     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1736     gx_studio_checkbox_create,               /* create function                */
1737     GX_NULL,                                 /* drawing function override      */
1738     GX_NULL,                                 /* event function override        */
1739     {420, 323, 544, 346},                    /* widget size                    */
1740     &main_window_prompt_4_define,            /* next widget definition         */
1741     GX_NULL,                                 /* no child widgets               */
1742     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_checkbox_anti_alised), /* control block */
1743     (void *) &main_window_checkbox_anti_alised_properties /* extended properties */
1744 };
1745 
1746 GX_CONST GX_STUDIO_WIDGET main_window_graphics_window_define =
1747 {
1748     "graphics_window",
1749     GX_TYPE_WINDOW,                          /* widget type                    */
1750     ID_GRAPHICS_WINDOW,                      /* widget id                      */
1751     #if defined(GX_WIDGET_USER_DATA)
1752     0,                                       /* user data                      */
1753     #endif
1754     GX_STYLE_BORDER_THIN|GX_STYLE_TILE_WALLPAPER,   /* style flags             */
1755     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1756     sizeof(GX_WINDOW),                       /* control block size             */
1757     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal color id                */
1758     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected color id              */
1759     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled color id              */
1760     gx_studio_window_create,                 /* create function                */
1761     (VOID (*)(GX_WIDGET *)) graphics_draw,   /* drawing function override      */
1762     GX_NULL,                                 /* event function override        */
1763     {28, 24, 397, 425},                      /* widget size                    */
1764     &main_window_checkbox_anti_alised_define, /* next widget definition        */
1765     GX_NULL,                                 /* no child widgets               */
1766     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_graphics_window), /* control block */
1767     (void *) &main_window_graphics_window_properties /* extended properties    */
1768 };
1769 
1770 GX_CONST GX_STUDIO_WIDGET main_window_window_1_define =
1771 {
1772     "window_1",
1773     GX_TYPE_WINDOW,                          /* widget type                    */
1774     GX_ID_NONE,                              /* widget id                      */
1775     #if defined(GX_WIDGET_USER_DATA)
1776     0,                                       /* user data                      */
1777     #endif
1778     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
1779     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1780     sizeof(GX_WINDOW),                       /* control block size             */
1781     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1782     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1783     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1784     gx_studio_window_create,                 /* create function                */
1785     GX_NULL,                                 /* drawing function override      */
1786     GX_NULL,                                 /* event function override        */
1787     {9, 429, 433, 472},                      /* widget size                    */
1788     &main_window_graphics_window_define,     /* next widget definition         */
1789     &main_window_radio_button_3_define,      /* child widget definition        */
1790     offsetof(MAIN_WINDOW_CONTROL_BLOCK, main_window_window_1), /* control block */
1791     (void *) &main_window_window_1_properties /* extended properties           */
1792 };
1793 
1794 GX_CONST GX_STUDIO_WIDGET main_window_define =
1795 {
1796     "main_window",
1797     GX_TYPE_WINDOW,                          /* widget type                    */
1798     ID_CIRCLE_SCREEN,                        /* widget id                      */
1799     #if defined(GX_WIDGET_USER_DATA)
1800     0,                                       /* user data                      */
1801     #endif
1802     GX_STYLE_BORDER_NONE,                    /* style flags                    */
1803     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1804     sizeof(MAIN_WINDOW_CONTROL_BLOCK),       /* control block size             */
1805     GX_COLOR_ID_SELECTED_TEXT,               /* normal color id                */
1806     GX_COLOR_ID_SELECTED_TEXT,               /* selected color id              */
1807     GX_COLOR_ID_SELECTED_TEXT,               /* disabled color id              */
1808     gx_studio_window_create,                 /* create function                */
1809     GX_NULL,                                 /* drawing function override      */
1810     (UINT (*)(GX_WIDGET *, GX_EVENT *)) main_event_handler, /* event function override */
1811     {0, 0, 638, 478},                        /* widget size                    */
1812     GX_NULL,                                 /* next widget                    */
1813     &main_window_window_1_define,            /* child widget                   */
1814     0,                                       /* control block                  */
1815     (void *) &main_window_properties         /* extended properties            */
1816 };
1817 GX_CONST GX_STUDIO_WIDGET_ENTRY graphics_32bpp_widget_table[] =
1818 {
1819     { &ellipse_window_define, (GX_WIDGET *) &ellipse_window },
1820     { &main_window_define, (GX_WIDGET *) &main_window },
1821     {GX_NULL, GX_NULL}
1822 };
1823 
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1824 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1825 {
1826     UINT status = GX_SUCCESS;
1827     GX_WIDGET *widget = GX_NULL;
1828     GX_VALUE   list_count = 0;
1829     GX_VALUE   list_total_count = 0;
1830 
1831     if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
1832     {
1833         list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
1834     }
1835 
1836     while(definition && status == GX_SUCCESS)
1837     {
1838         if (definition->create_function)
1839         {
1840             if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
1841             {
1842                 status = gx_widget_allocate(&widget, definition->control_block_size);
1843                 if (status != GX_SUCCESS)
1844                 {
1845                     return GX_NULL;
1846                 }
1847             }
1848             else
1849             {
1850                 if (control == GX_NULL)
1851                 {
1852                     return GX_NULL;
1853                 }
1854                 widget = (GX_WIDGET *) (control + definition->control_block_offset);
1855             }
1856 
1857             status = definition->create_function(definition, widget, parent);
1858 
1859             if(list_count < list_total_count)
1860             {
1861                 gx_menu_insert((GX_MENU *)parent, widget);
1862                 ((GX_MENU *)parent)->gx_menu_list_total_count--;
1863                 list_count++;
1864             }
1865 
1866             if (status == GX_SUCCESS)
1867             {
1868                 if (definition->widget_type != GX_TYPE_TEMPLATE)
1869                 {
1870 #if defined(GUIX_5_4_0_COMPATIBILITY)
1871                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
1872 #else
1873                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
1874 #endif
1875                 }
1876 
1877                 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
1878                 {
1879                     gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
1880                 }
1881 
1882                 if (definition->draw_function)
1883                 {
1884                     gx_widget_draw_set(widget, definition->draw_function);
1885                 }
1886                 if (definition->event_function)
1887                 {
1888                     gx_widget_event_process_set(widget, definition->event_function);
1889                 }
1890 
1891                 #if defined(GX_WIDGET_USER_DATA)
1892                 widget->gx_widget_user_data = definition->user_data;
1893                 #endif
1894 
1895                 if (definition->child_widget)
1896                 {
1897                     gx_studio_nested_widget_create(control, definition->child_widget, widget);
1898                 }
1899             }
1900             definition = definition->next_widget;
1901         }
1902     }
1903     return widget;
1904 }
1905 
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)1906 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
1907 {
1908     GX_WIDGET *widget;
1909     widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
1910 
1911     if (parent && widget)
1912     {
1913         gx_widget_attach(parent, widget);
1914     }
1915     return widget;
1916 }
1917 
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)1918 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
1919 {
1920     UINT status = GX_FAILURE;
1921     GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = graphics_32bpp_widget_table;
1922     GX_WIDGET *widget = GX_NULL;
1923 
1924     while(entry->widget_information)
1925     {
1926         if (!strcmp(name, entry->widget_information->widget_name))
1927         {
1928             widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
1929             if (widget)
1930             {
1931                 status = GX_SUCCESS;
1932             }
1933             break;
1934         }
1935         entry++;
1936     }
1937 
1938     if (new_widget)
1939     {
1940         *new_widget = widget;
1941     }
1942     return status;
1943 }
1944 
1945 
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)1946 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
1947     GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
1948 {
1949     GX_CONST GX_THEME *theme_ptr;
1950     GX_RECTANGLE size;
1951 
1952     GX_STUDIO_DISPLAY_INFO *display_info = &graphics_32bpp_display_table[display];
1953 
1954 
1955 /* create the requested display                                                */
1956 
1957     gx_display_create(display_info->display,
1958                       display_info->name,
1959                       driver,
1960                       (GX_VALUE) display_info->x_resolution,
1961                       (GX_VALUE) display_info->y_resolution);
1962 
1963 
1964 /* install the request theme                                                   */
1965 
1966     if(display_info->theme_table)
1967     {
1968         theme_ptr = display_info->theme_table[theme];
1969         if(theme_ptr)
1970         {
1971             gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
1972 
1973 /* install the color palette if required                                       */
1974             if (display_info->display->gx_display_driver_palette_set &&
1975                 theme_ptr->theme_palette != NULL)
1976             {
1977                 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
1978             }
1979 
1980             gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
1981             gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
1982             gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
1983             gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
1984         }
1985     }
1986 
1987 /* Install the language table.                                                 */
1988 
1989     if(display_info->language_table)
1990     {
1991         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);
1992         gx_display_active_language_set(display_info->display, language);
1993     }
1994 
1995 /* Set screen rotation angle.                                                  */
1996 
1997     display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
1998 
1999 /* create the canvas for this display                                          */
2000 
2001     gx_canvas_create(display_info->canvas,
2002                      display_info->canvas_name,
2003                      display_info->display,
2004                      GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
2005                      display_info->x_resolution,
2006                      display_info->y_resolution,
2007                      display_info->canvas_memory,
2008                      display_info->canvas_memory_size);
2009 
2010 /* Create the root window for this canvas                                      */
2011 
2012     gx_utility_rectangle_define(&size,
2013                                 0, 0,
2014                                 (GX_VALUE) (display_info->x_resolution - 1),
2015                                 (GX_VALUE) (display_info->y_resolution - 1));
2016 
2017     gx_window_root_create(display_info->root_window,
2018                           display_info->name,
2019                           display_info->canvas, GX_STYLE_NONE, 0, &size);
2020     if (return_root)
2021     {
2022         *return_root = display_info->root_window;
2023     }
2024     return GX_SUCCESS;
2025 }
2026 #undef GUIX_STUDIO_GENERATED_FILE
2027