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 _NON_LINEAR_ANIMATION_SPECIFICATIONS_H_
14 #define _NON_LINEAR_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_LINEAR 1
26 #define ID_BACK_EASE_IN 2
27 #define ID_BACK_EASE_OUT 3
28 #define ID_BACK_EASE_IN_OUT 4
29 #define ID_BOUNCE_EASE_IN 5
30 #define ID_BOUNCE_EASE_OUT 6
31 #define ID_BOUNCE_EASE_IN_OUT 7
32 #define ID_CIRC_EASE_IN 8
33 #define ID_CIRC_EASE_OUT 9
34 #define ID_CIRC_EASE_IN_OUT 10
35 #define ID_CUBIC_EASE_IN 11
36 #define ID_CUBIC_EASE_OUT 12
37 #define ID_CUBIC_EASE_IN_OUT 13
38 #define ID_ELASTIC_EASE_IN 14
39 #define ID_ELASTIC_EASE_OUT 15
40 #define ID_ELASTIC_EASE_IN_OUT 16
41 #define ID_EXPO_EASE_IN 17
42 #define ID_EXPO_EASE_OUT 18
43 #define ID_EXPO_EASE_IN_OUT 19
44 #define ID_QUAD_EASE_IN 20
45 #define ID_QUAD_EASE_OUT 21
46 #define ID_QUAD_EASE_IN_OUT 22
47 #define ID_QUART_EASE_IN 23
48 #define ID_QUART_EASE_OUT 24
49 #define ID_QUART_EASE_IN_OUT 25
50 #define ID_QUINT_EASE_IN 26
51 #define ID_QUINT_EASE_OUT 27
52 #define ID_QUINT_EASE_IN_OUT 28
53 #define ID_SINE_EASE_IN 29
54 #define ID_SINE_EASE_OUT 30
55 #define ID_SINE_EASE_IN_OUT 31
56 #define ID_ANIMATION_START 32
57 
58 
59 /* Define animation ids                                                        */
60 
61 #define GX_NEXT_ANIMATION_ID 1
62 
63 
64 /* Define user event ids                                                       */
65 
66 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
67 
68 
69 /* Declare properties structures for each utilized widget type                 */
70 
71 typedef struct GX_STUDIO_WIDGET_STRUCT
72 {
73    GX_CHAR *widget_name;
74    USHORT  widget_type;
75    USHORT  widget_id;
76    #if defined(GX_WIDGET_USER_DATA)
77    INT   user_data;
78    #endif
79    ULONG style;
80    ULONG status;
81    ULONG control_block_size;
82    GX_RESOURCE_ID normal_fill_color_id;
83    GX_RESOURCE_ID selected_fill_color_id;
84    GX_RESOURCE_ID disabled_fill_color_id;
85    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
86    void (*draw_function) (GX_WIDGET *);
87    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
88    GX_RECTANGLE size;
89    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
90    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
91    ULONG control_block_offset;
92    GX_CONST void *properties;
93 } GX_STUDIO_WIDGET;
94 
95 typedef struct
96 {
97     GX_CONST GX_STUDIO_WIDGET *widget_information;
98     GX_WIDGET        *widget;
99 } GX_STUDIO_WIDGET_ENTRY;
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_TEXT_BUTTON_PROPERTIES;
109 
110 typedef struct
111 {
112     GX_RESOURCE_ID string_id;
113     GX_RESOURCE_ID font_id;
114     GX_RESOURCE_ID normal_text_color_id;
115     GX_RESOURCE_ID selected_text_color_id;
116     GX_RESOURCE_ID disabled_text_color_id;
117     GX_RESOURCE_ID off_pixelmap_id;
118     GX_RESOURCE_ID on_pixelmap_id;
119     GX_RESOURCE_ID off_disabled_pixelmap_id;
120     GX_RESOURCE_ID on_disabled_pixelmap_id;
121 } GX_RADIO_BUTTON_PROPERTIES;
122 
123 typedef struct
124 {
125     GX_RESOURCE_ID pixelmap_id;
126 } GX_ICON_BUTTON_PROPERTIES;
127 
128 typedef struct
129 {
130     GX_RESOURCE_ID string_id;
131     GX_RESOURCE_ID font_id;
132     GX_RESOURCE_ID normal_text_color_id;
133     GX_RESOURCE_ID selected_text_color_id;
134     GX_RESOURCE_ID disabled_text_color_id;
135 } GX_PROMPT_PROPERTIES;
136 
137 typedef struct
138 {
139     GX_RESOURCE_ID wallpaper_id;
140 } GX_WINDOW_PROPERTIES;
141 
142 
143 /* Declare top-level control blocks                                            */
144 
145 typedef struct MAIN_SCREEN_CONTROL_BLOCK_STRUCT
146 {
147     GX_WINDOW_MEMBERS_DECLARE
148     GX_PROMPT main_screen_title;
149     GX_RADIO_BUTTON main_screen_radio_button;
150     GX_RADIO_BUTTON main_screen_radio_button_1;
151     GX_RADIO_BUTTON main_screen_radio_button_2;
152     GX_RADIO_BUTTON main_screen_radio_button_3;
153     GX_RADIO_BUTTON main_screen_radio_button_4;
154     GX_RADIO_BUTTON main_screen_radio_button_5;
155     GX_RADIO_BUTTON main_screen_radio_button_6;
156     GX_RADIO_BUTTON main_screen_radio_button_7;
157     GX_RADIO_BUTTON main_screen_radio_button_8;
158     GX_RADIO_BUTTON main_screen_radio_button_9;
159     GX_RADIO_BUTTON main_screen_radio_button_11;
160     GX_RADIO_BUTTON main_screen_radio_button_12;
161     GX_RADIO_BUTTON main_screen_radio_button_13;
162     GX_RADIO_BUTTON main_screen_radio_button_14;
163     GX_RADIO_BUTTON main_screen_radio_button_15;
164     GX_RADIO_BUTTON main_screen_radio_button_16;
165     GX_RADIO_BUTTON main_screen_radio_button_17;
166     GX_RADIO_BUTTON main_screen_radio_button_18;
167     GX_RADIO_BUTTON main_screen_radio_button_19;
168     GX_RADIO_BUTTON main_screen_radio_button_21;
169     GX_RADIO_BUTTON main_screen_radio_button_22;
170     GX_RADIO_BUTTON main_screen_radio_button_23;
171     GX_RADIO_BUTTON main_screen_radio_button_24;
172     GX_RADIO_BUTTON main_screen_radio_button_25;
173     GX_RADIO_BUTTON main_screen_radio_button_26;
174     GX_RADIO_BUTTON main_screen_radio_button_27;
175     GX_RADIO_BUTTON main_screen_radio_button_28;
176     GX_RADIO_BUTTON main_screen_radio_button_29;
177     GX_RADIO_BUTTON main_screen_radio_button_21_1;
178     GX_RADIO_BUTTON main_screen_radio_button_22_1;
179     GX_RADIO_BUTTON main_screen_radio_button_23_1;
180     GX_TEXT_BUTTON main_screen_button;
181     GX_ICON_BUTTON main_screen_icon_button;
182     GX_LINE_CHART main_screen_line_chart;
183 } MAIN_SCREEN_CONTROL_BLOCK;
184 
185 
186 /* extern statically defined control blocks                                    */
187 
188 #ifndef GUIX_STUDIO_GENERATED_FILE
189 extern MAIN_SCREEN_CONTROL_BLOCK main_screen;
190 #endif
191 
192 /* Declare event process functions, draw functions, and callback functions     */
193 
194 UINT main_screen_event_process(GX_WINDOW *widget, GX_EVENT *event_ptr);
195 
196 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
197 
198 
199 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
200 {
201     GX_CONST GX_CHAR *name;
202     GX_CONST GX_CHAR *canvas_name;
203     GX_CONST GX_THEME **theme_table;
204     GX_CONST GX_STRING **language_table;
205     USHORT   theme_table_size;
206     USHORT   language_table_size;
207     UINT     string_table_size;
208     UINT     x_resolution;
209     UINT     y_resolution;
210     GX_DISPLAY *display;
211     GX_CANVAS  *canvas;
212     GX_WINDOW_ROOT *root_window;
213     GX_COLOR   *canvas_memory;
214     ULONG      canvas_memory_size;
215     USHORT     rotation_angle;
216 } GX_STUDIO_DISPLAY_INFO;
217 
218 
219 /* Declare Studio-generated functions for creating top-level widgets           */
220 
221 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
222 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
223 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
224 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
225 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
226 UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
227 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
228 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
229 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
230 
231 /* Determine if a C++ compiler is being used.  If so, complete the standard
232   C conditional started above.                                                 */
233 #ifdef __cplusplus
234 }
235 #endif
236 
237 #endif                                       /* sentry                         */
238