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