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:11                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _SCREEN_DRAG_ANIMATION_SPECIFICATIONS_H_
14 #define _SCREEN_DRAG_ANIMATION_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_MESSAGE 1
26 #define ID_WEATHER 2
27 #define ID_CALCULATOR 3
28 #define ID_HEALTHY 4
29 #define ID_GAMES 5
30 #define ID_CLOCK 6
31 #define ID_CONTACTS 7
32 #define ID_ABOUT 8
33 #define ID_MAP 9
34 #define ID_SETTINGS 10
35 #define ID_SCREEN_DRAG_WRAP 11
36 #define ID_V_ANIMATION_COUNT 12
37 #define ID_H_ANIMATION_COUNT 13
38 #define ID_EASING_FUNCTION_DROP_LIST 14
39 
40 
41 /* Define animation ids                                                        */
42 
43 #define GX_NEXT_ANIMATION_ID 1
44 
45 
46 /* Define user event ids                                                       */
47 
48 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
49 
50 
51 /* Declare properties structures for each utilized widget type                 */
52 
53 typedef struct GX_STUDIO_WIDGET_STRUCT
54 {
55    GX_CHAR *widget_name;
56    USHORT  widget_type;
57    USHORT  widget_id;
58    #if defined(GX_WIDGET_USER_DATA)
59    INT   user_data;
60    #endif
61    ULONG style;
62    ULONG status;
63    ULONG control_block_size;
64    GX_RESOURCE_ID normal_fill_color_id;
65    GX_RESOURCE_ID selected_fill_color_id;
66    GX_RESOURCE_ID disabled_fill_color_id;
67    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
68    void (*draw_function) (GX_WIDGET *);
69    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
70    GX_RECTANGLE size;
71    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
72    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
73    ULONG control_block_offset;
74    GX_CONST void *properties;
75 } GX_STUDIO_WIDGET;
76 
77 typedef struct
78 {
79     GX_CONST GX_STUDIO_WIDGET *widget_information;
80     GX_WIDGET        *widget;
81 } GX_STUDIO_WIDGET_ENTRY;
82 
83 typedef struct
84 {
85     GX_RESOURCE_ID string_id;
86     GX_RESOURCE_ID font_id;
87     GX_RESOURCE_ID normal_text_color_id;
88     GX_RESOURCE_ID selected_text_color_id;
89     GX_RESOURCE_ID disabled_text_color_id;
90     GX_RESOURCE_ID unchecked_pixelmap_id;
91     GX_RESOURCE_ID checked_pixelmap_id;
92     GX_RESOURCE_ID unchecked_disabled_pixelmap_id;
93     GX_RESOURCE_ID checked_disabled_pixelmap_id;
94 } GX_CHECKBOX_PROPERTIES;
95 
96 typedef struct
97 {
98     GX_RESOURCE_ID normal_pixelmap_id;
99     GX_RESOURCE_ID selected_pixelmap_id;
100     GX_RESOURCE_ID disabled_pixelmap_id;
101 } GX_PIXELMAP_BUTTON_PROPERTIES;
102 
103 typedef struct
104 {
105     GX_RESOURCE_ID string_id;
106     GX_RESOURCE_ID font_id;
107     GX_RESOURCE_ID normal_text_color_id;
108     GX_RESOURCE_ID selected_text_color_id;
109     GX_RESOURCE_ID disabled_text_color_id;
110 } GX_PROMPT_PROPERTIES;
111 
112 typedef struct
113 {
114     GX_RESOURCE_ID string_id;
115     GX_RESOURCE_ID font_id;
116     GX_RESOURCE_ID normal_text_color_id;
117     GX_RESOURCE_ID selected_text_color_id;
118     GX_RESOURCE_ID disabled_text_color_id;
119     VOID (*format_func)(GX_NUMERIC_PROMPT *, INT);
120     INT            numeric_prompt_value;
121 } GX_NUMERIC_PROMPT_PROPERTIES;
122 
123 typedef struct
124 {
125     GX_RESOURCE_ID wallpaper_id;
126 } GX_WINDOW_PROPERTIES;
127 
128 typedef struct
129 {
130     GX_RESOURCE_ID pixelmap_id;
131     GX_RESOURCE_ID wallpaper_id;
132     VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT);
133     int total_rows;
134     int open_height;
135 } GX_DROP_LIST_PROPERTIES;
136 
137 
138 /* Declare top-level control blocks                                            */
139 
140 typedef struct V_MENU_WINDOW_3_CONTROL_BLOCK_STRUCT
141 {
142     GX_WINDOW_MEMBERS_DECLARE
143     GX_PIXELMAP_BUTTON v_menu_window_3_message_3;
144     GX_PIXELMAP_BUTTON v_menu_window_3_weather_3;
145 } V_MENU_WINDOW_3_CONTROL_BLOCK;
146 
147 typedef struct V_MENU_WINDOW_2_CONTROL_BLOCK_STRUCT
148 {
149     GX_WINDOW_MEMBERS_DECLARE
150     GX_PIXELMAP_BUTTON v_menu_window_2_message_2;
151     GX_PIXELMAP_BUTTON v_menu_window_2_weather_2;
152     GX_PIXELMAP_BUTTON v_menu_window_2_calculator_2;
153     GX_PIXELMAP_BUTTON v_menu_window_2_healthy_2;
154 } V_MENU_WINDOW_2_CONTROL_BLOCK;
155 
156 typedef struct H_MENU_WINDOW_2_CONTROL_BLOCK_STRUCT
157 {
158     GX_WINDOW_MEMBERS_DECLARE
159     GX_PIXELMAP_BUTTON h_menu_window_2_games;
160     GX_PIXELMAP_BUTTON h_menu_window_2_clock;
161     GX_PIXELMAP_BUTTON h_menu_window_2_contacts;
162     GX_PIXELMAP_BUTTON h_menu_window_2_about;
163 } H_MENU_WINDOW_2_CONTROL_BLOCK;
164 
165 typedef struct H_MENU_WINDOW_3_CONTROL_BLOCK_STRUCT
166 {
167     GX_WINDOW_MEMBERS_DECLARE
168     GX_PIXELMAP_BUTTON h_menu_window_3_map_1;
169     GX_PIXELMAP_BUTTON h_menu_window_3_settings_1;
170 } H_MENU_WINDOW_3_CONTROL_BLOCK;
171 
172 typedef struct MAIN_SCREEN_CONTROL_BLOCK_STRUCT
173 {
174     GX_WINDOW_MEMBERS_DECLARE
175     GX_WINDOW main_screen_h_menu_window;
176     GX_WINDOW main_screen_h_menu_window_1;
177     GX_PIXELMAP_BUTTON main_screen_message;
178     GX_PIXELMAP_BUTTON main_screen_weather;
179     GX_PIXELMAP_BUTTON main_screen_calculator;
180     GX_PIXELMAP_BUTTON main_screen_healthy;
181     GX_WINDOW main_screen_v_menu_window;
182     GX_WINDOW main_screen_v_menu_window_1;
183     GX_PIXELMAP_BUTTON main_screen_message_1;
184     GX_PIXELMAP_BUTTON main_screen_weather_1;
185     GX_PIXELMAP_BUTTON main_screen_calculator_1;
186     GX_PIXELMAP_BUTTON main_screen_healthy_1;
187     GX_PROMPT main_screen_prompt;
188     GX_CHECKBOX main_screen_checkbox;
189     GX_NUMERIC_PROMPT main_screen_v_animation_count_prompt;
190     GX_NUMERIC_PROMPT main_screen_h_animation_count_prompt;
191     GX_DROP_LIST main_screen_easing_function_drop_list;
192     GX_PIXELMAP_BUTTON main_screen_drop_list_button;
193     GX_PIXELMAP_BUTTON main_screen_pixelmap_button;
194     GX_PROMPT main_screen_prompt_1;
195 } MAIN_SCREEN_CONTROL_BLOCK;
196 
197 
198 /* extern statically defined control blocks                                    */
199 
200 #ifndef GUIX_STUDIO_GENERATED_FILE
201 extern V_MENU_WINDOW_3_CONTROL_BLOCK v_menu_window_3;
202 extern V_MENU_WINDOW_2_CONTROL_BLOCK v_menu_window_2;
203 extern H_MENU_WINDOW_2_CONTROL_BLOCK h_menu_window_2;
204 extern H_MENU_WINDOW_3_CONTROL_BLOCK h_menu_window_3;
205 extern MAIN_SCREEN_CONTROL_BLOCK main_screen;
206 #endif
207 
208 /* Declare event process functions, draw functions, and callback functions     */
209 
210 UINT main_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
211 UINT h_menu_window_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
212 UINT v_menu_window_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
213 
214 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
215 
216 
217 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
218 {
219     GX_CONST GX_CHAR *name;
220     GX_CONST GX_CHAR *canvas_name;
221     GX_CONST GX_THEME **theme_table;
222     GX_CONST GX_STRING **language_table;
223     USHORT   theme_table_size;
224     USHORT   language_table_size;
225     UINT     string_table_size;
226     UINT     x_resolution;
227     UINT     y_resolution;
228     GX_DISPLAY *display;
229     GX_CANVAS  *canvas;
230     GX_WINDOW_ROOT *root_window;
231     GX_COLOR   *canvas_memory;
232     ULONG      canvas_memory_size;
233     USHORT     rotation_angle;
234 } GX_STUDIO_DISPLAY_INFO;
235 
236 
237 /* Declare Studio-generated functions for creating top-level widgets           */
238 
239 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
240 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
241 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
242 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
243 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
244 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
245 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
246 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
247 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
248 
249 /* Determine if a C++ compiler is being used.  If so, complete the standard
250   C conditional started above.                                                 */
251 #ifdef __cplusplus
252 }
253 #endif
254 
255 #endif                                       /* sentry                         */
256