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:12                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _OVERLAP_SPECIFICATIONS_H_
14 #define _OVERLAP_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_W_POPUP 1
26 #define IDB_CLOSE 2
27 #define ID_W_MAIN 3
28 #define ID_BTN_11 4
29 #define ID_BTN_12 5
30 #define ID_BTN_1 6
31 #define ID_BTN_4 7
32 #define ID_BTN_9 8
33 #define ID_BTN_8 9
34 #define ID_BTN_3 10
35 #define ID_BTN_14 11
36 #define ID_BTN_13 12
37 
38 
39 /* Define animation ids                                                        */
40 
41 #define GX_NEXT_ANIMATION_ID 1
42 
43 
44 /* Define user event ids                                                       */
45 
46 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
47 
48 
49 /* Declare properties structures for each utilized widget type                 */
50 
51 typedef struct GX_STUDIO_WIDGET_STRUCT
52 {
53    GX_CHAR *widget_name;
54    USHORT  widget_type;
55    USHORT  widget_id;
56    #if defined(GX_WIDGET_USER_DATA)
57    INT   user_data;
58    #endif
59    ULONG style;
60    ULONG status;
61    ULONG control_block_size;
62    GX_RESOURCE_ID normal_fill_color_id;
63    GX_RESOURCE_ID selected_fill_color_id;
64    GX_RESOURCE_ID disabled_fill_color_id;
65    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
66    void (*draw_function) (GX_WIDGET *);
67    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
68    GX_RECTANGLE size;
69    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
70    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
71    ULONG control_block_offset;
72    GX_CONST void *properties;
73 } GX_STUDIO_WIDGET;
74 
75 typedef struct
76 {
77     GX_CONST GX_STUDIO_WIDGET *widget_information;
78     GX_WIDGET        *widget;
79 } GX_STUDIO_WIDGET_ENTRY;
80 
81 typedef struct
82 {
83     GX_RESOURCE_ID pixelmap_id;
84 } GX_ICON_BUTTON_PROPERTIES;
85 
86 typedef struct
87 {
88     GX_RESOURCE_ID string_id;
89     GX_RESOURCE_ID font_id;
90     GX_RESOURCE_ID normal_text_color_id;
91     GX_RESOURCE_ID selected_text_color_id;
92     GX_RESOURCE_ID disabled_text_color_id;
93 } GX_PROMPT_PROPERTIES;
94 
95 typedef struct
96 {
97     GX_RESOURCE_ID wallpaper_id;
98 } GX_WINDOW_PROPERTIES;
99 
100 
101 /* Declare top-level control blocks                                            */
102 
103 typedef struct W_POPUP_CONTROL_BLOCK_STRUCT
104 {
105     GX_WINDOW_MEMBERS_DECLARE
106     GX_PROMPT w_popup_prompt;
107     GX_ICON_BUTTON w_popup_icon_button;
108 } W_POPUP_CONTROL_BLOCK;
109 
110 typedef struct W_MAIN_CONTROL_BLOCK_STRUCT
111 {
112     GX_WINDOW_MEMBERS_DECLARE
113     GX_BUTTON w_main_btn_11;
114     GX_BUTTON w_main_btn_12;
115     GX_WINDOW w_main_window;
116     GX_BUTTON w_main_btn_1;
117     GX_BUTTON w_main_btn_4;
118     GX_BUTTON w_main_btn_9;
119     GX_BUTTON w_main_btn;
120     GX_BUTTON w_main_btn_3;
121     GX_BUTTON w_main_btn_2;
122     GX_PROMPT w_main_counter;
123     GX_WINDOW w_main_window_1;
124     GX_BUTTON w_main_btn_14;
125     GX_BUTTON w_main_btn_13;
126     GX_PROMPT w_main_counter2;
127 } W_MAIN_CONTROL_BLOCK;
128 
129 
130 /* extern statically defined control blocks                                    */
131 
132 #ifndef GUIX_STUDIO_GENERATED_FILE
133 extern W_POPUP_CONTROL_BLOCK w_popup;
134 extern W_MAIN_CONTROL_BLOCK w_main;
135 #endif
136 
137 /* Declare event process functions, draw functions, and callback functions     */
138 
139 UINT popup_events(GX_WINDOW *widget, GX_EVENT *event_ptr);
140 UINT w_main_event(GX_WINDOW *widget, GX_EVENT *event_ptr);
141 
142 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
143 
144 
145 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
146 {
147     GX_CONST GX_CHAR *name;
148     GX_CONST GX_CHAR *canvas_name;
149     GX_CONST GX_THEME **theme_table;
150     GX_CONST GX_STRING **language_table;
151     USHORT   theme_table_size;
152     USHORT   language_table_size;
153     UINT     string_table_size;
154     UINT     x_resolution;
155     UINT     y_resolution;
156     GX_DISPLAY *display;
157     GX_CANVAS  *canvas;
158     GX_WINDOW_ROOT *root_window;
159     GX_COLOR   *canvas_memory;
160     ULONG      canvas_memory_size;
161     USHORT     rotation_angle;
162 } GX_STUDIO_DISPLAY_INFO;
163 
164 
165 /* Declare Studio-generated functions for creating top-level widgets           */
166 
167 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
168 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
169 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
170 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
171 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
172 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
173 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
174 
175 /* Determine if a C++ compiler is being used.  If so, complete the standard
176   C conditional started above.                                                 */
177 #ifdef __cplusplus
178 }
179 #endif
180 
181 #endif                                       /* sentry                         */
182