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 _PIXELMAPS_565RGB_SPECIFICATIONS_H_
14 #define _PIXELMAPS_565RGB_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_PIC_WINDOW 1
26 #define ID_ALPHA 2
27 #define ID_COMPRESSED 3
28 #define ID_565RGB_MAPS 4
29 #define ID_4444ARGB_MAPS 5
30 #define ID_PALETTE_MAPS 6
31 #define ID_BRUSH_ALPHA_SLIDER 7
32 #define ID_BRUSH_ALPHA_PROMPT 8
33 
34 
35 /* Define animation ids                                                        */
36 
37 #define GX_NEXT_ANIMATION_ID 1
38 
39 
40 /* Define user event ids                                                       */
41 
42 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
43 
44 
45 /* Declare properties structures for each utilized widget type                 */
46 
47 typedef struct GX_STUDIO_WIDGET_STRUCT
48 {
49    GX_CHAR *widget_name;
50    USHORT  widget_type;
51    USHORT  widget_id;
52    #if defined(GX_WIDGET_USER_DATA)
53    INT   user_data;
54    #endif
55    ULONG style;
56    ULONG status;
57    ULONG control_block_size;
58    GX_RESOURCE_ID normal_fill_color_id;
59    GX_RESOURCE_ID selected_fill_color_id;
60    GX_RESOURCE_ID disabled_fill_color_id;
61    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
62    void (*draw_function) (GX_WIDGET *);
63    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
64    GX_RECTANGLE size;
65    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
66    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
67    ULONG control_block_offset;
68    GX_CONST void *properties;
69 } GX_STUDIO_WIDGET;
70 
71 typedef struct
72 {
73     GX_CONST GX_STUDIO_WIDGET *widget_information;
74     GX_WIDGET        *widget;
75 } GX_STUDIO_WIDGET_ENTRY;
76 
77 typedef struct
78 {
79     GX_RESOURCE_ID string_id;
80     GX_RESOURCE_ID font_id;
81     GX_RESOURCE_ID normal_text_color_id;
82     GX_RESOURCE_ID selected_text_color_id;
83     GX_RESOURCE_ID disabled_text_color_id;
84 } GX_TEXT_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_RESOURCE_ID unchecked_pixelmap_id;
94     GX_RESOURCE_ID checked_pixelmap_id;
95     GX_RESOURCE_ID unchecked_disabled_pixelmap_id;
96     GX_RESOURCE_ID checked_disabled_pixelmap_id;
97 } GX_CHECKBOX_PROPERTIES;
98 
99 typedef struct
100 {
101     GX_RESOURCE_ID string_id;
102     GX_RESOURCE_ID font_id;
103     GX_RESOURCE_ID normal_text_color_id;
104     GX_RESOURCE_ID selected_text_color_id;
105     GX_RESOURCE_ID disabled_text_color_id;
106     GX_RESOURCE_ID off_pixelmap_id;
107     GX_RESOURCE_ID on_pixelmap_id;
108     GX_RESOURCE_ID off_disabled_pixelmap_id;
109     GX_RESOURCE_ID on_disabled_pixelmap_id;
110 } GX_RADIO_BUTTON_PROPERTIES;
111 
112 typedef struct
113 {
114     int tickmark_count;
115     int minval;
116     int maxval;
117     int current_val;
118     int increment;
119     GX_VALUE min_travel;
120     GX_VALUE max_travel;
121     GX_VALUE needle_width;
122     GX_VALUE needle_height;
123     GX_VALUE needle_inset;
124     GX_VALUE needle_hotspot;
125 } GX_SLIDER_PROPERTIES;
126 
127 typedef struct
128 {
129     GX_RESOURCE_ID string_id;
130     GX_RESOURCE_ID font_id;
131     GX_RESOURCE_ID normal_text_color_id;
132     GX_RESOURCE_ID selected_text_color_id;
133     GX_RESOURCE_ID disabled_text_color_id;
134 } GX_PROMPT_PROPERTIES;
135 
136 typedef struct
137 {
138     GX_RESOURCE_ID wallpaper_id;
139 } GX_WINDOW_PROPERTIES;
140 
141 typedef struct
142 {
143     GX_RESOURCE_ID string_id;
144     GX_RESOURCE_ID font_id;
145     GX_RESOURCE_ID normal_text_color_id;
146     GX_RESOURCE_ID selected_text_color_id;
147     GX_RESOURCE_ID disabled_text_color_id;
148     GX_UBYTE       whitespace;
149     GX_BYTE        line_space;
150 } GX_ML_TEXT_VIEW_PROPERTIES;
151 
152 
153 /* Declare top-level control blocks                                            */
154 
155 typedef struct MAIN_WINDOW_CONTROL_BLOCK_STRUCT
156 {
157     GX_WINDOW_MEMBERS_DECLARE
158     GX_WINDOW main_window_pic_window;
159     GX_WINDOW main_window_window_1;
160     GX_PROMPT main_window_prompt;
161     GX_TEXT_BUTTON main_window_button;
162     GX_PROGRESS_BAR main_window_progress_bar;
163     GX_MULTI_LINE_TEXT_VIEW main_window_text_view;
164     GX_PROMPT main_window_prompt_1;
165     GX_CHECKBOX main_window_alpha_box;
166     GX_CHECKBOX main_window_compressed_box;
167     GX_WINDOW main_window_window;
168     GX_RADIO_BUTTON main_window_radio_button;
169     GX_RADIO_BUTTON main_window_radio_button_1;
170     GX_RADIO_BUTTON main_window_radio_button_2;
171     GX_PROMPT main_window_prompt_11_2;
172     GX_PROMPT main_window_prompt_11;
173     GX_SLIDER main_window_brush_alpha_slider_1;
174     GX_PROMPT main_window_prompt_12_1;
175     GX_PROMPT main_window_prompt_11_1;
176 } MAIN_WINDOW_CONTROL_BLOCK;
177 
178 
179 /* extern statically defined control blocks                                    */
180 
181 #ifndef GUIX_STUDIO_GENERATED_FILE
182 extern MAIN_WINDOW_CONTROL_BLOCK main_window;
183 #endif
184 
185 /* Declare event process functions, draw functions, and callback functions     */
186 
187 UINT main_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr);
188 VOID pic_win_draw(GX_WINDOW *widget);
189 
190 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
191 
192 
193 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
194 {
195     GX_CONST GX_CHAR *name;
196     GX_CONST GX_CHAR *canvas_name;
197     GX_CONST GX_THEME **theme_table;
198     GX_CONST GX_STRING **language_table;
199     USHORT   theme_table_size;
200     USHORT   language_table_size;
201     UINT     string_table_size;
202     UINT     x_resolution;
203     UINT     y_resolution;
204     GX_DISPLAY *display;
205     GX_CANVAS  *canvas;
206     GX_WINDOW_ROOT *root_window;
207     GX_COLOR   *canvas_memory;
208     ULONG      canvas_memory_size;
209     USHORT     rotation_angle;
210 } GX_STUDIO_DISPLAY_INFO;
211 
212 
213 /* Declare Studio-generated functions for creating top-level widgets           */
214 
215 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
216 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
217 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
218 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
219 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
220 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
221 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
222 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
223 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
224 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
225 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
226 
227 /* Determine if a C++ compiler is being used.  If so, complete the standard
228   C conditional started above.                                                 */
229 #ifdef __cplusplus
230 }
231 #endif
232 
233 #endif                                       /* sentry                         */
234