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.1.12.0                                              */
9 /*  Date (dd.mm.yyyy): 25. 8.2022   Time (hh:mm): 18:43                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _DEMO_GUIX_BINRES_SPECIFICATIONS_H_
14 #define _DEMO_GUIX_BINRES_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_VERTICAL_SCROLLBAR 1
26 #define ID_HORIZONTAL_SCROLLBAR 2
27 #define ID_THEME_1 3
28 #define ID_THEME_2 4
29 #define ID_ENGLISH 5
30 #define ID_SPANISH 6
31 
32 
33 /* Define animation ids                                                        */
34 
35 #define GX_NEXT_ANIMATION_ID 1
36 
37 
38 /* Define user event ids                                                       */
39 
40 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
41 
42 
43 /* Declare properties structures for each utilized widget type                 */
44 
45 typedef struct GX_STUDIO_WIDGET_STRUCT
46 {
47    GX_CHAR *widget_name;
48    USHORT  widget_type;
49    USHORT  widget_id;
50    #if defined(GX_WIDGET_USER_DATA)
51    INT   user_data;
52    #endif
53    ULONG style;
54    ULONG status;
55    ULONG control_block_size;
56    GX_RESOURCE_ID normal_fill_color_id;
57    GX_RESOURCE_ID selected_fill_color_id;
58    GX_RESOURCE_ID disabled_fill_color_id;
59    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
60    void (*draw_function) (GX_WIDGET *);
61    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
62    GX_RECTANGLE size;
63    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
64    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
65    ULONG control_block_offset;
66    GX_CONST void *properties;
67 } GX_STUDIO_WIDGET;
68 
69 typedef struct
70 {
71     GX_CONST GX_STUDIO_WIDGET *widget_information;
72     GX_WIDGET        *widget;
73 } GX_STUDIO_WIDGET_ENTRY;
74 
75 typedef struct
76 {
77     GX_RESOURCE_ID string_id;
78     GX_RESOURCE_ID font_id;
79     GX_RESOURCE_ID normal_text_color_id;
80     GX_RESOURCE_ID selected_text_color_id;
81     GX_RESOURCE_ID disabled_text_color_id;
82     GX_RESOURCE_ID off_pixelmap_id;
83     GX_RESOURCE_ID on_pixelmap_id;
84     GX_RESOURCE_ID off_disabled_pixelmap_id;
85     GX_RESOURCE_ID on_disabled_pixelmap_id;
86 } GX_RADIO_BUTTON_PROPERTIES;
87 
88 typedef struct
89 {
90     GX_RESOURCE_ID normal_pixelmap_id;
91     GX_RESOURCE_ID selected_pixelmap_id;
92     GX_RESOURCE_ID disabled_pixelmap_id;
93 } GX_PIXELMAP_BUTTON_PROPERTIES;
94 
95 typedef struct
96 {
97     GX_RESOURCE_ID normal_pixelmap_id;
98     GX_RESOURCE_ID selected_pixelmap_id;
99 } GX_ICON_PROPERTIES;
100 
101 typedef struct
102 {
103     GX_RESOURCE_ID string_id;
104     GX_RESOURCE_ID font_id;
105     GX_RESOURCE_ID normal_text_color_id;
106     GX_RESOURCE_ID selected_text_color_id;
107     GX_RESOURCE_ID disabled_text_color_id;
108 } GX_PROMPT_PROPERTIES;
109 
110 typedef struct
111 {
112     GX_RESOURCE_ID wallpaper_id;
113 } GX_WINDOW_PROPERTIES;
114 
115 
116 /* Declare top-level control blocks                                            */
117 
118 typedef struct SIMPLE_WINDOW_CONTROL_BLOCK_STRUCT
119 {
120     GX_WINDOW_MEMBERS_DECLARE
121     GX_PIXELMAP_BUTTON simple_window_simple_button;
122     GX_PROMPT simple_window_button_text;
123     GX_WINDOW simple_window_scroll_frame;
124     GX_WINDOW simple_window_window;
125     GX_SCROLLBAR simple_window_vertical_scroll;
126     GX_SCROLLBAR simple_window_hscroll;
127     GX_WINDOW simple_window_window_theme_setting;
128     GX_RADIO_BUTTON simple_window_radio_button_theme_1;
129     GX_PROMPT simple_window_prompt_Themes;
130     GX_RADIO_BUTTON simple_window_radio_button_theme_2;
131     GX_WINDOW simple_window_window_language_setting;
132     GX_RADIO_BUTTON simple_window_radio_button_English;
133     GX_PROMPT simple_window_prompt_Languages;
134     GX_RADIO_BUTTON simple_window_radio_button_Chinese;
135     GX_ICON simple_window_logo;
136 } SIMPLE_WINDOW_CONTROL_BLOCK;
137 
138 
139 /* extern statically defined control blocks                                    */
140 
141 #ifndef GUIX_STUDIO_GENERATED_FILE
142 extern SIMPLE_WINDOW_CONTROL_BLOCK simple_window;
143 #endif
144 
145 /* Declare event process functions, draw functions, and callback functions     */
146 
147 UINT simple_window_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
148 
149 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
150 
151 
152 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
153 {
154     GX_CONST GX_CHAR *name;
155     GX_CONST GX_CHAR *canvas_name;
156     GX_CONST GX_THEME **theme_table;
157     GX_CONST GX_STRING **language_table;
158     USHORT   theme_table_size;
159     USHORT   language_table_size;
160     UINT     string_table_size;
161     UINT     x_resolution;
162     UINT     y_resolution;
163     GX_DISPLAY *display;
164     GX_CANVAS  *canvas;
165     GX_WINDOW_ROOT *root_window;
166     GX_COLOR   *canvas_memory;
167     ULONG      canvas_memory_size;
168     USHORT     rotation_angle;
169 } GX_STUDIO_DISPLAY_INFO;
170 
171 
172 /* Declare Studio-generated functions for creating top-level widgets           */
173 
174 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
175 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
176 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
177 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
178 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
179 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
180 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
181 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
182 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
183 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
184 
185 /* Determine if a C++ compiler is being used.  If so, complete the standard
186   C conditional started above.                                                 */
187 #ifdef __cplusplus
188 }
189 #endif
190 
191 #endif                                       /* sentry                         */
192