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