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:08                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _ALPHAMAP_16BPP_SPECIFICATIONS_H_
14 #define _ALPHAMAP_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_RADIO_BUTTON_BLUE 1
26 #define ID_RADIO_BUTTON_RED 2
27 #define ID_RADIO_BUTTON_GREEN 3
28 #define ID_SLIDER_ALPHA 4
29 #define ID_ALPHA_PROMPT 5
30 
31 
32 /* Define animation ids                                                        */
33 
34 #define GX_NEXT_ANIMATION_ID 1
35 
36 
37 /* Define user event ids                                                       */
38 
39 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
40 
41 
42 /* Declare properties structures for each utilized widget type                 */
43 
44 typedef struct GX_STUDIO_WIDGET_STRUCT
45 {
46    GX_CHAR *widget_name;
47    USHORT  widget_type;
48    USHORT  widget_id;
49    #if defined(GX_WIDGET_USER_DATA)
50    INT   user_data;
51    #endif
52    ULONG style;
53    ULONG status;
54    ULONG control_block_size;
55    GX_RESOURCE_ID normal_fill_color_id;
56    GX_RESOURCE_ID selected_fill_color_id;
57    GX_RESOURCE_ID disabled_fill_color_id;
58    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
59    void (*draw_function) (GX_WIDGET *);
60    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
61    GX_RECTANGLE size;
62    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
63    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
64    ULONG control_block_offset;
65    GX_CONST void *properties;
66 } GX_STUDIO_WIDGET;
67 
68 typedef struct
69 {
70     GX_CONST GX_STUDIO_WIDGET *widget_information;
71     GX_WIDGET        *widget;
72 } GX_STUDIO_WIDGET_ENTRY;
73 
74 typedef struct
75 {
76     GX_RESOURCE_ID string_id;
77     GX_RESOURCE_ID font_id;
78     GX_RESOURCE_ID normal_text_color_id;
79     GX_RESOURCE_ID selected_text_color_id;
80     GX_RESOURCE_ID disabled_text_color_id;
81     GX_RESOURCE_ID off_pixelmap_id;
82     GX_RESOURCE_ID on_pixelmap_id;
83     GX_RESOURCE_ID off_disabled_pixelmap_id;
84     GX_RESOURCE_ID on_disabled_pixelmap_id;
85 } GX_RADIO_BUTTON_PROPERTIES;
86 
87 typedef struct
88 {
89     int tickmark_count;
90     int minval;
91     int maxval;
92     int current_val;
93     int increment;
94     GX_VALUE min_travel;
95     GX_VALUE max_travel;
96     GX_VALUE needle_width;
97     GX_VALUE needle_height;
98     GX_VALUE needle_inset;
99     GX_VALUE needle_hotspot;
100 } GX_SLIDER_PROPERTIES;
101 
102 typedef struct
103 {
104     GX_RESOURCE_ID string_id;
105     GX_RESOURCE_ID font_id;
106     GX_RESOURCE_ID normal_text_color_id;
107     GX_RESOURCE_ID selected_text_color_id;
108     GX_RESOURCE_ID disabled_text_color_id;
109 } GX_PROMPT_PROPERTIES;
110 
111 typedef struct
112 {
113     GX_RESOURCE_ID wallpaper_id;
114 } GX_WINDOW_PROPERTIES;
115 
116 
117 /* Declare top-level control blocks                                            */
118 
119 typedef struct MAIN_WINDOW_CONTROL_BLOCK_STRUCT
120 {
121     GX_WINDOW_MEMBERS_DECLARE
122     GX_WINDOW main_window_window_1;
123     GX_PROMPT main_window_prompt_1;
124     GX_PROMPT main_window_prompt_2;
125     GX_RADIO_BUTTON main_window_radio_button_1;
126     GX_RADIO_BUTTON main_window_radio_button_2;
127     GX_RADIO_BUTTON main_window_radio_button_4;
128     GX_WINDOW main_window_window_2;
129     GX_PROMPT main_window_prompt;
130     GX_SLIDER main_window_slider_alpha;
131     GX_PROMPT main_window_prompt_alpha;
132 } MAIN_WINDOW_CONTROL_BLOCK;
133 
134 
135 /* extern statically defined control blocks                                    */
136 
137 #ifndef GUIX_STUDIO_GENERATED_FILE
138 extern MAIN_WINDOW_CONTROL_BLOCK main_window;
139 #endif
140 
141 /* Declare event process functions, draw functions, and callback functions     */
142 
143 UINT window_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
144 VOID pixelmap_wnd_draw(GX_WINDOW *widget);
145 
146 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
147 
148 
149 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
150 {
151     GX_CONST GX_CHAR *name;
152     GX_CONST GX_CHAR *canvas_name;
153     GX_CONST GX_THEME **theme_table;
154     GX_CONST GX_STRING **language_table;
155     USHORT   theme_table_size;
156     USHORT   language_table_size;
157     UINT     string_table_size;
158     UINT     x_resolution;
159     UINT     y_resolution;
160     GX_DISPLAY *display;
161     GX_CANVAS  *canvas;
162     GX_WINDOW_ROOT *root_window;
163     GX_COLOR   *canvas_memory;
164     ULONG      canvas_memory_size;
165     USHORT     rotation_angle;
166 } GX_STUDIO_DISPLAY_INFO;
167 
168 
169 /* Declare Studio-generated functions for creating top-level widgets           */
170 
171 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
172 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
173 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
174 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
175 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
176 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
177 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
178 
179 /* Determine if a C++ compiler is being used.  If so, complete the standard
180   C conditional started above.                                                 */
181 #ifdef __cplusplus
182 }
183 #endif
184 
185 #endif                                       /* sentry                         */
186