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