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:07                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _ALL_WIDGETS_5_4_2_SPECIFICATIONS_H_
14 #define _ALL_WIDGETS_5_4_2_SPECIFICATIONS_H_
15 
16 #include "gx_api.h"
17 
18 /* Determine if C++ compiler is being used, if so use standard C.              */
19 #ifdef __cplusplus
20 extern   "C" {
21 #endif
22 
23 /* Define widget ids                                                           */
24 
25 #define ID_ROTATE_SCREEN 1
26 #define IDB_NEXT 2
27 #define ID_DIRECT_ROTATE 3
28 #define ID_SLIDER_ANGLE 4
29 #define ID_ANGLE_DISPLAY 5
30 #define ID_RADIO_FOOT 6
31 #define ID_RADIO_APPLE 7
32 #define ID_RADIO_FISH 8
33 #define ID_MENU_SCREEN 9
34 #define ID_SCROLL_WHEEL_SCREEN 10
35 #define ID_DAY_WHEEL 11
36 #define ID_MONTH_WHEEL 12
37 #define ID_YEAR_WHEEL 13
38 #define ID_DAY_SELECT 14
39 #define ID_DAY_INPUT 15
40 #define ID_SPRITE_SCREEN 16
41 #define ID_ALPHA_SLIDER 17
42 #define ID_BIRD_SPRITE 18
43 #define ID_GAUGE_SCREEN 19
44 #define ID_GAUGE 20
45 #define IDB_OK 21
46 #define IDB_CANCEL 22
47 #define ID_INDICATOR_SCREEN 23
48 #define ID_SLIDER_HORIZONTAL 24
49 #define ID_SLIDER_1 25
50 #define ID_PIXELMAP_SLIDER_H 26
51 #define ID_PIXELMAP_SLIDER1 27
52 #define ID_TEXT_SCREEN 28
53 #define ID_PROMPT_1 29
54 #define ID_PROMPT_2 30
55 #define ID_PROMPT_3 31
56 #define ID_PROMPT_4 32
57 #define ID_SL_INPUT 33
58 #define ID_ML_VIEW 34
59 #define ID_ML_INPUT 35
60 #define ID_WINDOW_SCREEN 36
61 #define ID_HORIZONTAL_SCROLLBAR 37
62 #define ID_VERTICAL_SCROLLBAR 38
63 #define ID_VERTICAL_LIST 39
64 #define ID_DROP_LIST 40
65 #define ID_BUTTON_SCREEN 41
66 #define ID_BUTTON 42
67 #define ID_TEXT_BUTTON 43
68 #define ID_CHECKBOX 44
69 #define ID_RADIO_BUTTON 45
70 #define ID_PIXELMAP_BUTTON 46
71 #define ID_ICON 47
72 #define ID_ICON_BUTTON 48
73 #define ID_COUNT_PROMPT 49
74 
75 
76 /* Define animation ids                                                        */
77 
78 #define GX_NEXT_ANIMATION_ID 1
79 
80 
81 /* Define user event ids                                                       */
82 
83 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
84 
85 #define GX_ACTION_FLAG_DYNAMIC_TARGET 0x01
86 #define GX_ACTION_FLAG_DYNAMIC_PARENT 0x02
87 typedef struct GX_STUDIO_ACTION_STRUCT
88 {
89     GX_UBYTE opcode;
90     GX_UBYTE flags;
91     GX_CONST VOID *parent;
92     GX_CONST VOID *target;
93     GX_CONST GX_ANIMATION_INFO  *animation;
94 } GX_STUDIO_ACTION;
95 
96 typedef struct GX_STUDIO_EVENT_ENTRY_STRUCT
97 {
98     ULONG event_type;
99     USHORT event_sender;
100     GX_CONST GX_STUDIO_ACTION *action_list;
101 } GX_STUDIO_EVENT_ENTRY;
102 
103 typedef struct GX_STUDIO_EVENT_PROCESS_STRUCT
104 {
105     GX_CONST GX_STUDIO_EVENT_ENTRY *event_table;
106     UINT (*chain_event_handler)(GX_WIDGET *, GX_EVENT *);
107 } GX_STUDIO_EVENT_PROCESS;
108 
109 /* Declare properties structures for each utilized widget type                 */
110 
111 typedef struct GX_STUDIO_WIDGET_STRUCT
112 {
113    GX_CHAR *widget_name;
114    USHORT  widget_type;
115    USHORT  widget_id;
116    #if defined(GX_WIDGET_USER_DATA)
117    INT   user_data;
118    #endif
119    ULONG style;
120    ULONG status;
121    ULONG control_block_size;
122    GX_RESOURCE_ID normal_fill_color_id;
123    GX_RESOURCE_ID selected_fill_color_id;
124    GX_RESOURCE_ID disabled_fill_color_id;
125    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
126    void (*draw_function) (GX_WIDGET *);
127    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
128    GX_RECTANGLE size;
129    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
130    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
131    ULONG control_block_offset;
132    GX_CONST void *properties;
133 } GX_STUDIO_WIDGET;
134 
135 typedef struct
136 {
137     GX_CONST GX_STUDIO_WIDGET *widget_information;
138     GX_WIDGET        *widget;
139 } GX_STUDIO_WIDGET_ENTRY;
140 
141 typedef struct
142 {
143     GX_RESOURCE_ID string_id;
144     GX_RESOURCE_ID font_id;
145     GX_RESOURCE_ID normal_text_color_id;
146     GX_RESOURCE_ID selected_text_color_id;
147     GX_RESOURCE_ID disabled_text_color_id;
148 } GX_TEXT_BUTTON_PROPERTIES;
149 
150 typedef struct
151 {
152     GX_RESOURCE_ID string_id;
153     GX_RESOURCE_ID font_id;
154     GX_RESOURCE_ID normal_text_color_id;
155     GX_RESOURCE_ID selected_text_color_id;
156     GX_RESOURCE_ID disabled_text_color_id;
157 } GX_ML_TEXT_BUTTON_PROPERTIES;
158 
159 typedef struct
160 {
161     GX_RESOURCE_ID string_id;
162     GX_RESOURCE_ID font_id;
163     GX_RESOURCE_ID normal_text_color_id;
164     GX_RESOURCE_ID selected_text_color_id;
165     GX_RESOURCE_ID disabled_text_color_id;
166     GX_RESOURCE_ID unchecked_pixelmap_id;
167     GX_RESOURCE_ID checked_pixelmap_id;
168     GX_RESOURCE_ID unchecked_disabled_pixelmap_id;
169     GX_RESOURCE_ID checked_disabled_pixelmap_id;
170 } GX_CHECKBOX_PROPERTIES;
171 
172 typedef struct
173 {
174     GX_RESOURCE_ID string_id;
175     GX_RESOURCE_ID font_id;
176     GX_RESOURCE_ID normal_text_color_id;
177     GX_RESOURCE_ID selected_text_color_id;
178     GX_RESOURCE_ID disabled_text_color_id;
179     GX_RESOURCE_ID off_pixelmap_id;
180     GX_RESOURCE_ID on_pixelmap_id;
181     GX_RESOURCE_ID off_disabled_pixelmap_id;
182     GX_RESOURCE_ID on_disabled_pixelmap_id;
183 } GX_RADIO_BUTTON_PROPERTIES;
184 
185 typedef struct
186 {
187     GX_RESOURCE_ID pixelmap_id;
188 } GX_ICON_BUTTON_PROPERTIES;
189 
190 typedef struct
191 {
192     GX_RESOURCE_ID normal_pixelmap_id;
193     GX_RESOURCE_ID selected_pixelmap_id;
194     GX_RESOURCE_ID disabled_pixelmap_id;
195 } GX_PIXELMAP_BUTTON_PROPERTIES;
196 
197 typedef struct
198 {
199     GX_RESOURCE_ID normal_pixelmap_id;
200     GX_RESOURCE_ID selected_pixelmap_id;
201 } GX_ICON_PROPERTIES;
202 
203 typedef struct
204 {
205     int tickmark_count;
206     int minval;
207     int maxval;
208     int current_val;
209     int increment;
210     GX_VALUE min_travel;
211     GX_VALUE max_travel;
212     GX_VALUE needle_width;
213     GX_VALUE needle_height;
214     GX_VALUE needle_inset;
215     GX_VALUE needle_hotspot;
216 } GX_SLIDER_PROPERTIES;
217 
218 typedef struct
219 {
220     int min_val;
221     int max_val;
222     int current_val;
223     int increment;
224     GX_VALUE min_travel;
225     GX_VALUE max_travel;
226     GX_VALUE needle_width;
227     GX_VALUE needle_height;
228     GX_VALUE needle_inset;
229     GX_VALUE needle_hotspot;
230     GX_RESOURCE_ID lower_pixelmap;
231     GX_RESOURCE_ID upper_pixelmap;
232     GX_RESOURCE_ID needle_pixelmap;
233 } GX_PIXELMAP_SLIDER_PROPERTIES;
234 
235 typedef struct
236 {
237     GX_SPRITE_FRAME *frame_list;
238     USHORT           frame_count;
239 } GX_SPRITE_PROPERTIES;
240 
241 typedef struct
242 {
243     GX_RESOURCE_ID string_id;
244     GX_RESOURCE_ID font_id;
245     GX_RESOURCE_ID normal_text_color_id;
246     GX_RESOURCE_ID selected_text_color_id;
247     GX_RESOURCE_ID disabled_text_color_id;
248 } GX_PROMPT_PROPERTIES;
249 
250 typedef struct
251 {
252     GX_RESOURCE_ID string_id;
253     GX_RESOURCE_ID font_id;
254     GX_RESOURCE_ID normal_text_color_id;
255     GX_RESOURCE_ID selected_text_color_id;
256     GX_RESOURCE_ID disabled_text_color_id;
257     VOID (*format_func)(GX_NUMERIC_PROMPT *, INT);
258     INT            numeric_prompt_value;
259 } GX_NUMERIC_PROMPT_PROPERTIES;
260 
261 typedef struct
262 {
263     GX_RESOURCE_ID string_id;
264     GX_RESOURCE_ID font_id;
265     GX_RESOURCE_ID normal_text_color_id;
266     GX_RESOURCE_ID selected_text_color_id;
267     GX_RESOURCE_ID disabled_text_color_id;
268     GX_RESOURCE_ID left_map_id;
269     GX_RESOURCE_ID fill_map_id;
270     GX_RESOURCE_ID right_map_id;
271     GX_RESOURCE_ID selected_left_map_id;
272     GX_RESOURCE_ID selected_fill_map_id;
273     GX_RESOURCE_ID selected_right_map_id;
274 } GX_PIXELMAP_PROMPT_PROPERTIES;
275 
276 typedef struct
277 {
278     GX_RESOURCE_ID string_id;
279     GX_RESOURCE_ID font_id;
280     GX_RESOURCE_ID normal_text_color_id;
281     GX_RESOURCE_ID selected_text_color_id;
282     GX_RESOURCE_ID disabled_text_color_id;
283     GX_RESOURCE_ID left_map_id;
284     GX_RESOURCE_ID fill_map_id;
285     GX_RESOURCE_ID right_map_id;
286     GX_RESOURCE_ID selected_left_map_id;
287     GX_RESOURCE_ID selected_fill_map_id;
288     GX_RESOURCE_ID selected_right_map_id;
289     VOID (*format_func)(GX_NUMERIC_PIXELMAP_PROMPT *, INT);
290     INT            numeric_prompt_value;
291 } GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES;
292 
293 typedef struct
294 {
295     GX_RESOURCE_ID wallpaper_id;
296 } GX_WINDOW_PROPERTIES;
297 
298 typedef struct
299 {
300     GX_RESOURCE_ID wallpaper_id;
301     VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT);
302     int total_rows;
303 } GX_VERTICAL_LIST_PROPERTIES;
304 
305 typedef struct
306 {
307     GX_RESOURCE_ID wallpaper_id;
308     VOID (*callback)(GX_HORIZONTAL_LIST *, GX_WIDGET *, INT);
309     int total_rows;
310 } GX_HORIZONTAL_LIST_PROPERTIES;
311 
312 typedef struct
313 {
314     GX_RESOURCE_ID pixelmap_id;
315     GX_RESOURCE_ID wallpaper_id;
316     VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT);
317     int total_rows;
318     int open_height;
319 } GX_DROP_LIST_PROPERTIES;
320 
321 typedef struct
322 {
323     int                 total_rows;
324     int                 selected_row;
325     GX_VALUE            row_height;
326     GX_UBYTE            start_alpha;
327     GX_UBYTE            end_alpha;
328     GX_RESOURCE_ID      normal_font;
329     GX_RESOURCE_ID      selected_font;
330     GX_RESOURCE_ID      normal_text_color;
331     GX_RESOURCE_ID      selected_text_color;
332     GX_RESOURCE_ID      disabled_text_color;
333     GX_RESOURCE_ID      wallpaper_id;
334     GX_RESOURCE_ID      selected_background;
335     GX_CONST GX_RESOURCE_ID  *string_id_list;
336     GX_CONST GX_CHAR * (*callback)(struct GX_STRING_SCROLL_WHEEL_STRUCT *, INT);
337 } GX_STRING_SCROLL_WHEEL_PROPERTIES;
338 
339 typedef struct
340 {
341     int                 total_rows;
342     int                 selected_row;
343     GX_VALUE            row_height;
344     GX_UBYTE            start_alpha;
345     GX_UBYTE            end_alpha;
346     GX_RESOURCE_ID      normal_font;
347     GX_RESOURCE_ID      selected_font;
348     GX_RESOURCE_ID      normal_text_color;
349     GX_RESOURCE_ID      selected_text_color;
350     GX_RESOURCE_ID      disabled_text_color;
351     GX_RESOURCE_ID      wallpaper_id;
352     GX_RESOURCE_ID      selected_background;
353     GX_CONST GX_CHAR * (*callback)(struct GX_NUMERIC_SCROLL_WHEEL_STRUCT *, INT);
354     int                 start_val;
355     int                 end_val;
356 } GX_NUMERIC_SCROLL_WHEEL_PROPERTIES;
357 
358 typedef struct
359 {
360     GX_RESOURCE_ID string_id;
361     GX_RESOURCE_ID font_id;
362     GX_RESOURCE_ID normal_text_color_id;
363     GX_RESOURCE_ID selected_text_color_id;
364     GX_RESOURCE_ID disabled_text_color_id;
365     GX_RESOURCE_ID readonly_fill_color_id;
366     GX_RESOURCE_ID readonly_text_color_id;
367     GX_CHAR *buffer;
368     UINT buffer_size;
369 } GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES;
370 
371 typedef struct
372 {
373     GX_RESOURCE_ID string_id;
374     GX_RESOURCE_ID font_id;
375     GX_RESOURCE_ID normal_text_color_id;
376     GX_RESOURCE_ID selected_text_color_id;
377     GX_RESOURCE_ID disabled_text_color_id;
378     GX_BYTE        whitespace;
379     GX_BYTE        line_space;
380 } GX_ML_TEXT_VIEW_PROPERTIES;
381 
382 typedef struct
383 {
384     GX_RESOURCE_ID string_id;
385     GX_RESOURCE_ID font_id;
386     GX_RESOURCE_ID normal_text_color_id;
387     GX_RESOURCE_ID selected_text_color_id;
388     GX_RESOURCE_ID disabled_text_color_id;
389     GX_RESOURCE_ID readonly_fill_color_id;
390     GX_RESOURCE_ID readonly_text_color_id;
391     GX_BYTE  whitespace;
392     GX_BYTE  line_space;
393     GX_CHAR *buffer;
394     UINT buffer_size;
395 } GX_MULTI_LINE_TEXT_INPUT_PROPERTIES;
396 
397 typedef struct
398 {
399     GX_VALUE start_angle;
400     GX_VALUE animation_steps;
401     GX_VALUE animation_delay;
402     GX_VALUE needle_xpos;
403     GX_VALUE needle_ypos;
404     GX_VALUE needle_xcor;
405     GX_VALUE needle_ycor;
406     GX_RESOURCE_ID normal_pixelmap_id;
407     GX_RESOURCE_ID selected_pixelmap_id;
408     GX_RESOURCE_ID needle_pixelmap_id;
409 } GX_CIRCULAR_GAUGE_PROPERTIES;
410 
411 typedef struct
412 {
413     GX_RESOURCE_ID string_id;
414     GX_RESOURCE_ID font_id;
415     GX_RESOURCE_ID normal_text_color_id;
416     GX_RESOURCE_ID selected_text_color_id;
417     GX_RESOURCE_ID disabled_text_color_id;
418     GX_RESOURCE_ID left_map_id;
419     GX_RESOURCE_ID fill_map_id;
420     GX_RESOURCE_ID right_map_id;
421     GX_RESOURCE_ID selected_left_map_id;
422     GX_RESOURCE_ID selected_fill_map_id;
423     GX_RESOURCE_ID selected_right_map_id;
424     GX_VALUE       text_x_offset;
425     GX_VALUE       text_y_offset;
426     GX_VALUE       list_total_count;
427 } GX_MENU_PROPERTIES;
428 
429 typedef struct
430 {
431     GX_RESOURCE_ID expand_map_id;
432     GX_RESOURCE_ID collapse_map_id;
433     GX_RESOURCE_ID root_line_color_id;
434     GX_VALUE       indentation;
435 } GX_TREE_VIEW_PROPERTIES;
436 
437 
438 /* Declare top-level control blocks                                            */
439 
440 typedef struct ROTATE_SCREEN_CONTROL_BLOCK_STRUCT
441 {
442     GX_WINDOW_MEMBERS_DECLARE
443     GX_TEXT_BUTTON rotate_screen_next_button_8;
444     GX_CHECKBOX rotate_screen_checkbox_1;
445     GX_PROMPT rotate_screen_prompt_11;
446     GX_SLIDER rotate_screen_slider_3;
447     GX_PROMPT rotate_screen_prompt_12;
448     GX_WINDOW rotate_screen_pixelmap_window;
449     GX_RADIO_BUTTON rotate_screen_radio_button;
450     GX_RADIO_BUTTON rotate_screen_radio_button_1;
451     GX_RADIO_BUTTON rotate_screen_radio_button_2;
452 } ROTATE_SCREEN_CONTROL_BLOCK;
453 
454 typedef struct MENU_SCREEN_CONTROL_BLOCK_STRUCT
455 {
456     GX_WINDOW_MEMBERS_DECLARE
457     GX_TEXT_BUTTON menu_screen_next_button_7;
458     GX_PROMPT menu_screen_title_5;
459     GX_PROMPT menu_screen_title;
460     GX_ACCORDION_MENU menu_screen_one_level_accordion;
461     GX_MENU menu_screen_ola_menu_1;
462     GX_PROMPT menu_screen_prompt_25;
463     GX_NUMERIC_PROMPT menu_screen_prompt_26;
464     GX_MENU menu_screen_ola_menu_2;
465     GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_5;
466     GX_TEXT_BUTTON menu_screen_ola_menu_3;
467     GX_MENU menu_screen_ola_menu_4;
468     GX_MENU menu_screen_item;
469     GX_MENU menu_screen_item_1;
470     GX_ACCORDION_MENU menu_screen_one_level_accordion_2;
471     GX_MENU menu_screen_ola_2_menu_1;
472     GX_PROMPT menu_screen_prompt_7;
473     GX_ACCORDION_MENU menu_screen_ola_2_menu_2;
474     GX_MENU menu_screen_ola_2_menu_2_1;
475     GX_PIXELMAP_PROMPT menu_screen_prompt_9;
476     GX_MENU menu_screen_ola_2_menu_2_2;
477     GX_NUMERIC_PIXELMAP_PROMPT menu_screen_numeric_pixelmap_prompt_2;
478     GX_MENU menu_screen_ola_2_menu_3;
479     GX_PROMPT menu_screen_prompt_10_1;
480     GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view;
481     GX_ACCORDION_MENU menu_screen_multi_level_accordion;
482     GX_MENU menu_screen_mla_menu_1;
483     GX_ACCORDION_MENU menu_screen_mla_menu_1_accordion;
484     GX_MENU menu_screen_mla_menu_1_1;
485     GX_MULTI_LINE_TEXT_VIEW menu_screen_text_view_3;
486     GX_MENU menu_screen_mla_menu_1_2;
487     GX_PROMPT menu_screen_prompt_15_1;
488     GX_MENU menu_screen_mla_menu_2;
489     GX_ACCORDION_MENU menu_screen_mla_menu_2_accordion;
490     GX_MENU menu_screen_mla_menu_2_1;
491     GX_ACCORDION_MENU menu_screen_mla_menu_2_1_accordion;
492     GX_MENU menu_screen_mla_menu_2_1_1;
493     GX_PROMPT menu_screen_prompt_11_1;
494     GX_MENU menu_screen_mla_menu_2_1_2;
495     GX_PROMPT menu_screen_prompt_12_1;
496     GX_MENU menu_screen_mla_menu_2_2;
497     GX_ACCORDION_MENU menu_screen_mla_menu_2_2_accordion;
498     GX_MENU menu_screen_mla_menu_2_2_1;
499     GX_PROMPT menu_screen_prompt_13_1;
500     GX_MENU menu_screen_mla_menu_2_2_2;
501     GX_PROMPT menu_screen_prompt_14_1;
502     GX_MENU menu_screen_mla_menu_3;
503     GX_PROMPT menu_screen_mla_menu_3_item_1;
504     GX_PROMPT menu_screen_mla_menu_3_item_2;
505     GX_ICON menu_screen_mla_menu_3_icon;
506     GX_PROMPT menu_screen_title_2;
507     GX_TREE_VIEW menu_screen_tree_view;
508     GX_MENU menu_screen_tree_menu_1;
509     GX_PROMPT menu_screen_tree_menu_1_1;
510     GX_PROMPT menu_screen_tree_menu_1_2;
511     GX_ICON menu_screen_icon_3;
512     GX_MENU menu_screen_tree_menu_2;
513     GX_MENU menu_screen_tree_menu_2_1;
514     GX_PROMPT menu_screen_tree_menu_2_1_1;
515     GX_PROMPT menu_screen_tree_menu_2_1_2;
516     GX_ICON menu_screen_icon_6;
517     GX_MENU menu_screen_tree_menu_2_2;
518     GX_MENU menu_screen_tree_menu_2_2_1;
519     GX_PROMPT menu_screen_tree_menu_2_2_1_1;
520     GX_PROMPT menu_screen_tree_menu_2_2_1_2;
521     GX_ICON menu_screen_icon_8;
522     GX_ICON menu_screen_icon_7;
523     GX_ICON menu_screen_icon_4;
524     GX_MENU menu_screen_tree_menu_3;
525     GX_PROMPT menu_screen_tree_menu_3_1;
526     GX_ICON menu_screen_icon_5;
527     GX_SCROLLBAR menu_screen_tree_hscroll;
528     GX_SCROLLBAR menu_screen_tree_vscroll;
529     GX_PROMPT menu_screen_prompt_8;
530     GX_MENU menu_screen_menu;
531     GX_PROMPT menu_screen_prompt_10;
532     GX_ICON menu_screen_icon_9;
533     GX_PROMPT menu_screen_title_3;
534 } MENU_SCREEN_CONTROL_BLOCK;
535 
536 typedef struct SCROLL_WHEEL_SCREEN_CONTROL_BLOCK_STRUCT
537 {
538     GX_WINDOW_MEMBERS_DECLARE
539 } SCROLL_WHEEL_SCREEN_CONTROL_BLOCK;
540 
541 typedef struct SPRITE_SCREEN_CONTROL_BLOCK_STRUCT
542 {
543     GX_WINDOW_MEMBERS_DECLARE
544     GX_WINDOW sprite_screen_apple_window;
545     GX_SLIDER sprite_screen_slider_2;
546     GX_TEXT_BUTTON sprite_screen_next_button_5;
547     GX_SPRITE sprite_screen_sprite_1;
548 } SPRITE_SCREEN_CONTROL_BLOCK;
549 
550 typedef struct GAUGE_SCREEN_CONTROL_BLOCK_STRUCT
551 {
552     GX_WINDOW_MEMBERS_DECLARE
553     GX_PROMPT gauge_screen_prompt_6;
554     GX_TEXT_BUTTON gauge_screen_next_button_4;
555     GX_CIRCULAR_GAUGE gauge_screen_gauge_1;
556 } GAUGE_SCREEN_CONTROL_BLOCK;
557 
558 typedef struct POPUP_MODAL_CONTROL_BLOCK_STRUCT
559 {
560     GX_WINDOW_MEMBERS_DECLARE
561     GX_TEXT_BUTTON popup_modal_OK_button;
562     GX_TEXT_BUTTON popup_modal_cancel_button;
563     GX_MULTI_LINE_TEXT_VIEW popup_modal_text_view_2;
564     GX_WINDOW popup_modal_window_1;
565     GX_PROMPT popup_modal_prompt_5;
566 } POPUP_MODAL_CONTROL_BLOCK;
567 
568 typedef struct INDICATOR_SCREEN_CONTROL_BLOCK_STRUCT
569 {
570     GX_WINDOW_MEMBERS_DECLARE
571     GX_SLIDER indicator_screen_slider;
572     GX_SLIDER indicator_screen_slider_1;
573     GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider;
574     GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_1;
575     GX_ICON indicator_screen_icon_1;
576     GX_ICON indicator_screen_icon_2;
577     GX_PROMPT indicator_screen_slider_title;
578     GX_TEXT_BUTTON indicator_screen_next_button_3;
579     GX_PROGRESS_BAR indicator_screen_progress_bar_1;
580     GX_PIXELMAP_SLIDER indicator_screen_pixelmap_slider_2;
581     GX_RADIAL_PROGRESS_BAR indicator_screen_radial_progress_bar;
582 } INDICATOR_SCREEN_CONTROL_BLOCK;
583 
584 typedef struct TEXT_SCREEN_CONTROL_BLOCK_STRUCT
585 {
586     GX_WINDOW_MEMBERS_DECLARE
587     GX_PROMPT text_screen_prompt_1;
588     GX_PROMPT text_screen_prompt_2;
589     GX_PROMPT text_screen_prompt_3;
590     GX_PIXELMAP_PROMPT text_screen_prompt_4;
591     GX_SINGLE_LINE_TEXT_INPUT text_screen_text_input_1;
592     GX_MULTI_LINE_TEXT_VIEW text_screen_text_view_1;
593     GX_MULTI_LINE_TEXT_INPUT text_screen_text_input_2;
594     GX_TEXT_BUTTON text_screen_next_button_2;
595     GX_NUMERIC_PROMPT text_screen_numeric_prompt;
596     GX_NUMERIC_PIXELMAP_PROMPT text_screen_numeric_pixelmap_prompt;
597 } TEXT_SCREEN_CONTROL_BLOCK;
598 
599 typedef struct WINDOW_SCREEN_CONTROL_BLOCK_STRUCT
600 {
601     GX_WINDOW_MEMBERS_DECLARE
602     GX_WINDOW window_screen_window_5;
603     GX_WINDOW window_screen_window_6;
604     GX_WINDOW window_screen_window_8;
605     GX_WINDOW window_screen_scroll_frame_1;
606     GX_WINDOW window_screen_window_4;
607     GX_SCROLLBAR window_screen_hscroll_1;
608     GX_SCROLLBAR window_screen_vertical_scroll_1;
609     GX_VERTICAL_LIST window_screen_vertical_list;
610     GX_TEXT_BUTTON window_screen_button_1;
611     GX_TEXT_BUTTON window_screen_button_2;
612     GX_TEXT_BUTTON window_screen_button_3;
613     GX_TEXT_BUTTON window_screen_button_4;
614     GX_PROMPT window_screen_nested_label_1;
615     GX_PROMPT window_screen_frame_label_1;
616     GX_PROMPT window_screen_vlist_label_1;
617     GX_HORIZONTAL_LIST window_screen_horizontal_list_1;
618     GX_ICON_BUTTON window_screen_icon_button_1;
619     GX_ICON_BUTTON window_screen_icon_button_2;
620     GX_ICON_BUTTON window_screen_icon_button_3;
621     GX_ICON_BUTTON window_screen_icon_button_4;
622     GX_ICON_BUTTON window_screen_icon_button_5;
623     GX_PROMPT window_screen_hlist_label_1;
624     GX_TEXT_BUTTON window_screen_next_button_1;
625     GX_DROP_LIST window_screen_drop_list;
626     GX_PIXELMAP_BUTTON window_screen_pixelmap_button;
627     GX_PROMPT window_screen_hlist_label;
628     GX_LINE_CHART window_screen_line_chart;
629 } WINDOW_SCREEN_CONTROL_BLOCK;
630 
631 typedef struct BUTTON_SCREEN_CONTROL_BLOCK_STRUCT
632 {
633     GX_WINDOW_MEMBERS_DECLARE
634     GX_PROMPT button_screen_title_1;
635     GX_BUTTON button_screen_base_button_1;
636     GX_TEXT_BUTTON button_screen_text_button_1;
637     GX_CHECKBOX button_screen_checkbox;
638     GX_RADIO_BUTTON button_screen_radio_button1;
639     GX_PIXELMAP_BUTTON button_screen_pixelmap_button1;
640     GX_ICON button_screen_icon;
641     GX_ICON_BUTTON button_screen_icon_button_6;
642     GX_PROMPT button_screen_button_label_1;
643     GX_PROMPT button_screen_radio_label_1;
644     GX_PROMPT button_screen_pixbutton_label_1;
645     GX_PROMPT button_screen_texbutton_label_1;
646     GX_PROMPT button_screen_checkbox_label_1;
647     GX_PROMPT button_screen_iconbutton_label_1;
648     GX_PROMPT button_screen_icon_label_1;
649     GX_TEXT_BUTTON button_screen_next_button;
650     GX_MULTI_LINE_TEXT_BUTTON button_screen_multi_line_button_1;
651     GX_PROMPT button_screen_texbutton_label_2;
652     GX_NUMERIC_PROMPT button_screen_count_prompt;
653 } BUTTON_SCREEN_CONTROL_BLOCK;
654 
655 
656 /* extern statically defined control blocks                                    */
657 
658 #ifndef GUIX_STUDIO_GENERATED_FILE
659 extern ROTATE_SCREEN_CONTROL_BLOCK rotate_screen;
660 extern MENU_SCREEN_CONTROL_BLOCK menu_screen;
661 extern SPRITE_SCREEN_CONTROL_BLOCK sprite_screen;
662 extern GAUGE_SCREEN_CONTROL_BLOCK gauge_screen;
663 extern POPUP_MODAL_CONTROL_BLOCK popup_modal;
664 extern INDICATOR_SCREEN_CONTROL_BLOCK indicator_screen;
665 extern TEXT_SCREEN_CONTROL_BLOCK text_screen;
666 extern WINDOW_SCREEN_CONTROL_BLOCK window_screen;
667 extern BUTTON_SCREEN_CONTROL_BLOCK button_screen;
668 #endif
669 
670 /* Declare event process functions, draw functions, and callback functions     */
671 
672 UINT rotate_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
673 VOID pixelmap_draw(GX_WINDOW *widget);
674 UINT scroll_wheel_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
675 GX_CONST GX_CHAR *day_wheel_value_format(GX_NUMERIC_SCROLL_WHEEL *wheel, INT row);
676 UINT sprite_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
677 VOID apple_window_draw(GX_WINDOW *widget);
678 UINT gauge_event_handle(GX_WINDOW *widget, GX_EVENT *event_ptr);
679 VOID gauge_prompt_draw(GX_PROMPT *widget);
680 UINT text_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
681 VOID format_func(GX_NUMERIC_PROMPT *, INT);
682 VOID numeric_pixelmap_format_func(GX_NUMERIC_PIXELMAP_PROMPT *, INT);
683 UINT window_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
684 VOID drop_list_row_create(GX_VERTICAL_LIST *, GX_WIDGET *, INT);
685 UINT buttons_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
686 
687 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
688 
689 
690 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
691 {
692     GX_CONST GX_CHAR *name;
693     GX_CONST GX_CHAR *canvas_name;
694     GX_CONST GX_THEME **theme_table;
695     GX_CONST GX_CHAR ***language_table;
696     USHORT   theme_table_size;
697     USHORT   language_table_size;
698     UINT     string_table_size;
699     UINT     x_resolution;
700     UINT     y_resolution;
701     GX_DISPLAY *display;
702     GX_CANVAS  *canvas;
703     GX_WINDOW_ROOT *root_window;
704     GX_COLOR   *canvas_memory;
705     ULONG      canvas_memory_size;
706 } GX_STUDIO_DISPLAY_INFO;
707 
708 
709 /* Declare Studio-generated functions for creating top-level widgets           */
710 
711 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
712 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
713 UINT gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
714 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
715 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
716 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
717 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
718 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
719 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
720 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
721 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
722 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
723 UINT gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
724 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
725 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
726 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
727 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
728 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
729 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
730 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
731 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
732 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
733 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
734 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
735 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
736 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
737 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
738 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
739 UINT gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
740 UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
741 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
742 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
743 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
744 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
745 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
746 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
747 UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CONST GX_STUDIO_EVENT_PROCESS *record);
748 
749 /* Determine if a C++ compiler is being used.  If so, complete the standard
750   C conditional started above.                                                 */
751 #ifdef __cplusplus
752 }
753 #endif
754 
755 #endif                                       /* sentry                         */
756