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 _SHAPES_SPECIFICATIONS_H_ 14 #define _SHAPES_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_CIRCLE_SCREEN 1 26 #define ID_GRAPHICS_WINDOW 2 27 #define ID_ANTI_ALIASED 3 28 #define ID_SOLID_FILL 4 29 #define ID_PIXELMAP_FILL 5 30 #define ID_RADIUS_SLIDER 6 31 #define ID_RADIUS_PROMPT 7 32 #define ID_CIRCLE 8 33 #define ID_ARC 9 34 #define ID_PIE 10 35 #define ID_POLYGON 11 36 #define ID_ELLIPSE 12 37 #define ID_RECTANGLE 13 38 #define ID_BRUSH_WIDTH 14 39 #define ID_BRUSH_WIDTH_PROMPT 15 40 #define ID_ROUND_END 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_RESOURCE_ID unchecked_pixelmap_id; 93 GX_RESOURCE_ID checked_pixelmap_id; 94 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 95 GX_RESOURCE_ID checked_disabled_pixelmap_id; 96 } GX_CHECKBOX_PROPERTIES; 97 98 typedef struct 99 { 100 GX_RESOURCE_ID string_id; 101 GX_RESOURCE_ID font_id; 102 GX_RESOURCE_ID normal_text_color_id; 103 GX_RESOURCE_ID selected_text_color_id; 104 GX_RESOURCE_ID disabled_text_color_id; 105 GX_RESOURCE_ID off_pixelmap_id; 106 GX_RESOURCE_ID on_pixelmap_id; 107 GX_RESOURCE_ID off_disabled_pixelmap_id; 108 GX_RESOURCE_ID on_disabled_pixelmap_id; 109 } GX_RADIO_BUTTON_PROPERTIES; 110 111 typedef struct 112 { 113 int tickmark_count; 114 int minval; 115 int maxval; 116 int current_val; 117 int increment; 118 GX_VALUE min_travel; 119 GX_VALUE max_travel; 120 GX_VALUE needle_width; 121 GX_VALUE needle_height; 122 GX_VALUE needle_inset; 123 GX_VALUE needle_hotspot; 124 } GX_SLIDER_PROPERTIES; 125 126 typedef struct 127 { 128 GX_RESOURCE_ID string_id; 129 GX_RESOURCE_ID font_id; 130 GX_RESOURCE_ID normal_text_color_id; 131 GX_RESOURCE_ID selected_text_color_id; 132 GX_RESOURCE_ID disabled_text_color_id; 133 } GX_PROMPT_PROPERTIES; 134 135 typedef struct 136 { 137 GX_RESOURCE_ID wallpaper_id; 138 } GX_WINDOW_PROPERTIES; 139 140 141 /* Declare top-level control blocks */ 142 143 typedef struct MAIN_WINDOW_CONTROL_BLOCK_STRUCT 144 { 145 GX_WINDOW_MEMBERS_DECLARE 146 GX_WINDOW main_window_graphics_window; 147 GX_CHECKBOX main_window_checkbox_anti_alised; 148 GX_PROMPT main_window_prompt_4; 149 GX_CHECKBOX main_window_checkbox_fill; 150 GX_CHECKBOX main_window_checkbox_pixelmap_fill; 151 GX_PROMPT main_window_prompt_7; 152 GX_SLIDER main_window_radius_slider; 153 GX_PROMPT main_window_radius_prompt; 154 GX_WINDOW main_window_window_1; 155 GX_RADIO_BUTTON main_window_radio_button_3; 156 GX_RADIO_BUTTON main_window_radio_button_4; 157 GX_RADIO_BUTTON main_window_radio_button_5; 158 GX_RADIO_BUTTON main_window_radio_button_6; 159 GX_RADIO_BUTTON main_window_radio_button_1; 160 GX_RADIO_BUTTON main_window_radio_button_2; 161 GX_SLIDER main_window_brush_width_slider; 162 GX_PROMPT main_window_brush_width_prompt; 163 GX_PROMPT main_window_prompt_9; 164 GX_CHECKBOX main_window_checkbox_round_end; 165 } MAIN_WINDOW_CONTROL_BLOCK; 166 167 168 /* extern statically defined control blocks */ 169 170 #ifndef GUIX_STUDIO_GENERATED_FILE 171 extern MAIN_WINDOW_CONTROL_BLOCK main_window; 172 #endif 173 174 /* Declare event process functions, draw functions, and callback functions */ 175 176 UINT main_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 177 VOID graphics_draw(GX_WINDOW *widget); 178 179 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 180 181 182 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 183 { 184 GX_CONST GX_CHAR *name; 185 GX_CONST GX_CHAR *canvas_name; 186 GX_CONST GX_THEME **theme_table; 187 GX_CONST GX_STRING **language_table; 188 USHORT theme_table_size; 189 USHORT language_table_size; 190 UINT string_table_size; 191 UINT x_resolution; 192 UINT y_resolution; 193 GX_DISPLAY *display; 194 GX_CANVAS *canvas; 195 GX_WINDOW_ROOT *root_window; 196 GX_COLOR *canvas_memory; 197 ULONG canvas_memory_size; 198 USHORT rotation_angle; 199 } GX_STUDIO_DISPLAY_INFO; 200 201 202 /* Declare Studio-generated functions for creating top-level widgets */ 203 204 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 205 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 206 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 207 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 208 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 209 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 210 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 211 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 212 213 /* Determine if a C++ compiler is being used. If so, complete the standard 214 C conditional started above. */ 215 #ifdef __cplusplus 216 } 217 #endif 218 219 #endif /* sentry */ 220