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 _WIDGET_FIND_SPECIFICATIONS_H_
14 #define _WIDGET_FIND_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_1 1
26 #define ID_1_1 2
27 #define ID_1_1_1 3
28 #define ID_1_1_1_1 4
29 #define ID_1_1_1_2 5
30 #define ID_1_1_1_3 6
31 #define ID_2 7
32 #define ID_2_1 8
33 #define ID_2_1_1 9
34 #define ID_2_1_1_2 10
35 #define ID_2_1_1_1 11
36 #define ID_2_1_2 12
37 #define ID_3 13
38 #define ID_4 14
39 #define ID_4_1 15
40 #define ID_4_2 16
41 
42 
43 /* Define animation ids                                                        */
44 
45 #define GX_NEXT_ANIMATION_ID 1
46 
47 
48 /* Define user event ids                                                       */
49 
50 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
51 
52 
53 /* Declare properties structures for each utilized widget type                 */
54 
55 typedef struct GX_STUDIO_WIDGET_STRUCT
56 {
57    GX_CHAR *widget_name;
58    USHORT  widget_type;
59    USHORT  widget_id;
60    #if defined(GX_WIDGET_USER_DATA)
61    INT   user_data;
62    #endif
63    ULONG style;
64    ULONG status;
65    ULONG control_block_size;
66    GX_RESOURCE_ID normal_fill_color_id;
67    GX_RESOURCE_ID selected_fill_color_id;
68    GX_RESOURCE_ID disabled_fill_color_id;
69    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
70    void (*draw_function) (GX_WIDGET *);
71    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
72    GX_RECTANGLE size;
73    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
74    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
75    ULONG control_block_offset;
76    GX_CONST void *properties;
77 } GX_STUDIO_WIDGET;
78 
79 typedef struct
80 {
81     GX_CONST GX_STUDIO_WIDGET *widget_information;
82     GX_WIDGET        *widget;
83 } GX_STUDIO_WIDGET_ENTRY;
84 
85 typedef struct
86 {
87     GX_RESOURCE_ID string_id;
88     GX_RESOURCE_ID font_id;
89     GX_RESOURCE_ID normal_text_color_id;
90     GX_RESOURCE_ID selected_text_color_id;
91     GX_RESOURCE_ID disabled_text_color_id;
92 } GX_PROMPT_PROPERTIES;
93 
94 typedef struct
95 {
96     GX_RESOURCE_ID wallpaper_id;
97 } GX_WINDOW_PROPERTIES;
98 
99 
100 /* Declare top-level control blocks                                            */
101 
102 typedef struct MAIN_SCREEN_CONTROL_BLOCK_STRUCT
103 {
104     GX_WINDOW_MEMBERS_DECLARE
105     GX_WINDOW main_screen_window_1;
106     GX_WINDOW main_screen_window_1_1;
107     GX_WINDOW main_screen_window_1_1_1;
108     GX_PROMPT main_screen_prompt_1_1_1_1;
109     GX_PROMPT main_screen_prompt_1_1_1_2;
110     GX_PROMPT main_screen_prompt_1_1_1_3;
111     GX_WINDOW main_screen_window_2;
112     GX_WINDOW main_screen_window_2_1;
113     GX_WINDOW main_screen_window_2_1_1;
114     GX_PROMPT main_screen_prompt_2_1_1_2;
115     GX_PROMPT main_screen_prompt_2_1_1_1;
116     GX_WINDOW main_screen_window_2_1_2;
117     GX_WINDOW main_screen_window_3;
118     GX_WINDOW main_screen_window_4;
119     GX_PROMPT main_screen_prompt_4_1;
120     GX_PROMPT main_screen_prompt_4_2;
121 } MAIN_SCREEN_CONTROL_BLOCK;
122 
123 
124 /* extern statically defined control blocks                                    */
125 
126 #ifndef GUIX_STUDIO_GENERATED_FILE
127 extern MAIN_SCREEN_CONTROL_BLOCK main_screen;
128 #endif
129 
130 /* Declare event process functions, draw functions, and callback functions     */
131 
132 UINT main_screen_event_process(GX_WINDOW *widget, GX_EVENT *event_ptr);
133 
134 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
135 
136 
137 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
138 {
139     GX_CONST GX_CHAR *name;
140     GX_CONST GX_CHAR *canvas_name;
141     GX_CONST GX_THEME **theme_table;
142     GX_CONST GX_STRING **language_table;
143     USHORT   theme_table_size;
144     USHORT   language_table_size;
145     UINT     string_table_size;
146     UINT     x_resolution;
147     UINT     y_resolution;
148     GX_DISPLAY *display;
149     GX_CANVAS  *canvas;
150     GX_WINDOW_ROOT *root_window;
151     GX_COLOR   *canvas_memory;
152     ULONG      canvas_memory_size;
153     USHORT     rotation_angle;
154 } GX_STUDIO_DISPLAY_INFO;
155 
156 
157 /* Declare Studio-generated functions for creating top-level widgets           */
158 
159 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
160 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
161 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
162 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
163 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
164 
165 /* Determine if a C++ compiler is being used.  If so, complete the standard
166   C conditional started above.                                                 */
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 #endif                                       /* sentry                         */
172