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 _RADIAL_PROGRESS_BAR_SPECIFICATIONS_H_ 14 #define _RADIAL_PROGRESS_BAR_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_POS 1 26 #define ID_SHOW_TEXT 2 27 #define ID_SHOW_PERCENT 3 28 #define ID_TRANSPARENT 4 29 #define ID_NORMAL_WIDTH_SLIDER 5 30 #define ID_RADIUS_SLIDER 6 31 #define ID_SELECTED_WIDTH_SLIDER 7 32 #define ID_NORMAL_WIDTH_PROMPT 8 33 #define ID_SELECTED_WIDTH_PROMPT 9 34 #define ID_RADIUS_PROMPT 10 35 #define ID_ANCHOR_SLIDER 11 36 #define ID_ANCHOR_PROMPT 12 37 #define ID_ALIAS 13 38 #define ID_ROUND_END 14 39 #define ID_ALPHA_SLIDER 15 40 41 42 /* Define animation ids */ 43 44 #define GX_NEXT_ANIMATION_ID 1 45 46 47 /* Define user event ids */ 48 49 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 50 51 52 /* Declare properties structures for each utilized widget type */ 53 54 typedef struct GX_STUDIO_WIDGET_STRUCT 55 { 56 GX_CHAR *widget_name; 57 USHORT widget_type; 58 USHORT widget_id; 59 #if defined(GX_WIDGET_USER_DATA) 60 INT user_data; 61 #endif 62 ULONG style; 63 ULONG status; 64 ULONG control_block_size; 65 GX_RESOURCE_ID normal_fill_color_id; 66 GX_RESOURCE_ID selected_fill_color_id; 67 GX_RESOURCE_ID disabled_fill_color_id; 68 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 69 void (*draw_function) (GX_WIDGET *); 70 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 71 GX_RECTANGLE size; 72 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 73 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 74 ULONG control_block_offset; 75 GX_CONST void *properties; 76 } GX_STUDIO_WIDGET; 77 78 typedef struct 79 { 80 GX_CONST GX_STUDIO_WIDGET *widget_information; 81 GX_WIDGET *widget; 82 } GX_STUDIO_WIDGET_ENTRY; 83 84 typedef struct 85 { 86 GX_RESOURCE_ID string_id; 87 GX_RESOURCE_ID font_id; 88 GX_RESOURCE_ID normal_text_color_id; 89 GX_RESOURCE_ID selected_text_color_id; 90 GX_RESOURCE_ID disabled_text_color_id; 91 GX_RESOURCE_ID unchecked_pixelmap_id; 92 GX_RESOURCE_ID checked_pixelmap_id; 93 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 94 GX_RESOURCE_ID checked_disabled_pixelmap_id; 95 } GX_CHECKBOX_PROPERTIES; 96 97 typedef struct 98 { 99 GX_RESOURCE_ID normal_pixelmap_id; 100 GX_RESOURCE_ID selected_pixelmap_id; 101 } GX_ICON_PROPERTIES; 102 103 typedef struct 104 { 105 int tickmark_count; 106 int minval; 107 int maxval; 108 int current_val; 109 int increment; 110 GX_VALUE min_travel; 111 GX_VALUE max_travel; 112 GX_VALUE needle_width; 113 GX_VALUE needle_height; 114 GX_VALUE needle_inset; 115 GX_VALUE needle_hotspot; 116 } GX_SLIDER_PROPERTIES; 117 118 typedef struct 119 { 120 int min_val; 121 int max_val; 122 int current_val; 123 int increment; 124 GX_VALUE min_travel; 125 GX_VALUE max_travel; 126 GX_VALUE needle_width; 127 GX_VALUE needle_height; 128 GX_VALUE needle_inset; 129 GX_VALUE needle_hotspot; 130 GX_RESOURCE_ID lower_pixelmap; 131 GX_RESOURCE_ID upper_pixelmap; 132 GX_RESOURCE_ID needle_pixelmap; 133 } GX_PIXELMAP_SLIDER_PROPERTIES; 134 135 typedef struct 136 { 137 GX_RESOURCE_ID string_id; 138 GX_RESOURCE_ID font_id; 139 GX_RESOURCE_ID normal_text_color_id; 140 GX_RESOURCE_ID selected_text_color_id; 141 GX_RESOURCE_ID disabled_text_color_id; 142 } GX_PROMPT_PROPERTIES; 143 144 typedef struct 145 { 146 GX_RESOURCE_ID string_id; 147 GX_RESOURCE_ID font_id; 148 GX_RESOURCE_ID normal_text_color_id; 149 GX_RESOURCE_ID selected_text_color_id; 150 GX_RESOURCE_ID disabled_text_color_id; 151 VOID (*format_func)(GX_NUMERIC_PROMPT *, INT); 152 INT numeric_prompt_value; 153 } GX_NUMERIC_PROMPT_PROPERTIES; 154 155 typedef struct 156 { 157 GX_RESOURCE_ID wallpaper_id; 158 } GX_WINDOW_PROPERTIES; 159 160 161 /* Declare top-level control blocks */ 162 163 typedef struct PROGRESS_BAR_WINDOW_CONTROL_BLOCK_STRUCT 164 { 165 GX_WINDOW_MEMBERS_DECLARE 166 GX_PIXELMAP_SLIDER progress_bar_window_pixelmap_slider; 167 GX_ICON progress_bar_window_icon_3; 168 GX_ICON progress_bar_window_icon_4; 169 GX_CHECKBOX progress_bar_window_checkbox; 170 GX_CHECKBOX progress_bar_window_checkbox_1; 171 GX_CHECKBOX progress_bar_window_checkbox_2; 172 GX_SLIDER progress_bar_window_slider; 173 GX_SLIDER progress_bar_window_slider_1; 174 GX_SLIDER progress_bar_window_slider_2; 175 GX_PROMPT progress_bar_window_prompt; 176 GX_PROMPT progress_bar_window_prompt_1; 177 GX_PROMPT progress_bar_window_prompt_2; 178 GX_PROMPT progress_bar_window_normal_width_prompt; 179 GX_PROMPT progress_bar_window_selected_width_prompt; 180 GX_PROMPT progress_bar_window_radius_prompt; 181 GX_PROMPT progress_bar_window_prompt_3; 182 GX_PROMPT progress_bar_window_prompt_4; 183 GX_SLIDER progress_bar_window_slider_3; 184 GX_PROMPT progress_bar_window_anchor_prompt; 185 GX_RADIAL_PROGRESS_BAR progress_bar_window_radial_progress_bar; 186 GX_CHECKBOX progress_bar_window_checkbox_3; 187 GX_CHECKBOX progress_bar_window_checkbox_4; 188 GX_PROMPT progress_bar_window_alpha; 189 GX_SLIDER progress_bar_window_alpha_slider; 190 GX_NUMERIC_PROMPT progress_bar_window_alpha_prompt; 191 } PROGRESS_BAR_WINDOW_CONTROL_BLOCK; 192 193 194 /* extern statically defined control blocks */ 195 196 #ifndef GUIX_STUDIO_GENERATED_FILE 197 extern PROGRESS_BAR_WINDOW_CONTROL_BLOCK progress_bar_window; 198 #endif 199 200 /* Declare event process functions, draw functions, and callback functions */ 201 202 UINT window_event_handle(GX_WINDOW *widget, GX_EVENT *event_ptr); 203 VOID radial_progress_bar_draw(GX_RADIAL_PROGRESS_BAR *widget); 204 205 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 206 207 208 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 209 { 210 GX_CONST GX_CHAR *name; 211 GX_CONST GX_CHAR *canvas_name; 212 GX_CONST GX_THEME **theme_table; 213 GX_CONST GX_STRING **language_table; 214 USHORT theme_table_size; 215 USHORT language_table_size; 216 UINT string_table_size; 217 UINT x_resolution; 218 UINT y_resolution; 219 GX_DISPLAY *display; 220 GX_CANVAS *canvas; 221 GX_WINDOW_ROOT *root_window; 222 GX_COLOR *canvas_memory; 223 ULONG canvas_memory_size; 224 USHORT rotation_angle; 225 } GX_STUDIO_DISPLAY_INFO; 226 227 228 /* Declare Studio-generated functions for creating top-level widgets */ 229 230 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 231 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 232 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 233 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 234 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 235 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 236 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 237 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 238 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 239 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 240 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 241 242 /* Determine if a C++ compiler is being used. If so, complete the standard 243 C conditional started above. */ 244 #ifdef __cplusplus 245 } 246 #endif 247 248 #endif /* sentry */ 249