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.1.12.0 */ 9 /* Date (dd.mm.yyyy): 30. 8.2022 Time (hh:mm): 15:21 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _GUIX_CALCULATOR_SPECIFICATIONS_H_ 14 #define _GUIX_CALCULATOR_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_CALCULATOR_RESULT 1 26 #define ID_CALCULATOR_SEVEN 2 27 #define ID_CALCULATOR_EIGHT 3 28 #define ID_CALCULATOR_NINE 4 29 #define ID_CALCULATOR_DIVIDE 5 30 #define ID_CALCULATOR_MULTI 6 31 #define ID_CALCULATOR_MINUS 7 32 #define ID_CALCULATOR_PLUS 8 33 #define ID_CALCULATOR_PERCENT 9 34 #define ID_CALCULATOR_DOT 10 35 #define ID_CALCULATOR_FIVE 11 36 #define ID_CALCULATOR_TWO 12 37 #define ID_CALCULATOR_SIX 13 38 #define ID_CALCULATOR_THREE 14 39 #define ID_CALCULATOR_ZERO 15 40 #define ID_CALCULATOR_ONE 16 41 #define ID_CALCULATOR_FOUR 17 42 #define ID_CALCULATOR_C 18 43 #define ID_CALCULATOR_MC 19 44 #define ID_CALCULATOR_MR 20 45 #define ID_CALCULATOR_DEL 21 46 47 48 /* Define animation ids */ 49 50 #define GX_NEXT_ANIMATION_ID 1 51 52 53 /* Define user event ids */ 54 55 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 56 57 58 /* Declare properties structures for each utilized widget type */ 59 60 typedef struct GX_STUDIO_WIDGET_STRUCT 61 { 62 GX_CHAR *widget_name; 63 USHORT widget_type; 64 USHORT widget_id; 65 #if defined(GX_WIDGET_USER_DATA) 66 INT user_data; 67 #endif 68 ULONG style; 69 ULONG status; 70 ULONG control_block_size; 71 GX_RESOURCE_ID normal_fill_color_id; 72 GX_RESOURCE_ID selected_fill_color_id; 73 GX_RESOURCE_ID disabled_fill_color_id; 74 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 75 void (*draw_function) (GX_WIDGET *); 76 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 77 GX_RECTANGLE size; 78 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 79 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 80 ULONG control_block_offset; 81 GX_CONST void *properties; 82 } GX_STUDIO_WIDGET; 83 84 typedef struct 85 { 86 GX_CONST GX_STUDIO_WIDGET *widget_information; 87 GX_WIDGET *widget; 88 } GX_STUDIO_WIDGET_ENTRY; 89 90 typedef struct 91 { 92 GX_RESOURCE_ID normal_pixelmap_id; 93 GX_RESOURCE_ID selected_pixelmap_id; 94 GX_RESOURCE_ID disabled_pixelmap_id; 95 } GX_PIXELMAP_BUTTON_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 GX_RESOURCE_ID wallpaper_id; 106 } GX_WINDOW_PROPERTIES; 107 108 typedef struct 109 { 110 GX_RESOURCE_ID string_id; 111 GX_RESOURCE_ID font_id; 112 GX_RESOURCE_ID normal_text_color_id; 113 GX_RESOURCE_ID selected_text_color_id; 114 GX_RESOURCE_ID disabled_text_color_id; 115 GX_RESOURCE_ID readonly_fill_color_id; 116 GX_RESOURCE_ID readonly_text_color_id; 117 GX_CHAR *buffer; 118 UINT buffer_size; 119 } GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES; 120 121 122 /* Declare top-level control blocks */ 123 124 typedef struct FRAME_CONTROL_BLOCK_STRUCT 125 { 126 GX_WINDOW_MEMBERS_DECLARE 127 GX_ICON frame_icon_1; 128 GX_WINDOW frame_calculator; 129 GX_PIXELMAP_BUTTON frame_pixelmap_button_result; 130 GX_PIXELMAP_BUTTON frame_pixelmap_button_19; 131 GX_PIXELMAP_BUTTON frame_pixelmap_button_10; 132 GX_PIXELMAP_BUTTON frame_pixelmap_button_11; 133 GX_PIXELMAP_BUTTON frame_pixelmap_button_divide; 134 GX_PIXELMAP_BUTTON frame_pixelmap_button_multi; 135 GX_PIXELMAP_BUTTON frame_pixelmap_button_minus; 136 GX_PIXELMAP_BUTTON frame_pixelmap_button_plus; 137 GX_PIXELMAP_BUTTON frame_pixelmap_button_percent; 138 GX_PIXELMAP_BUTTON frame_pixelmap_button_dot; 139 GX_PIXELMAP_BUTTON frame_pixelmap_button_12; 140 GX_PIXELMAP_BUTTON frame_pixelmap_button_13; 141 GX_PIXELMAP_BUTTON frame_pixelmap_button_14; 142 GX_PIXELMAP_BUTTON frame_pixelmap_button_15; 143 GX_PIXELMAP_BUTTON frame_pixelmap_button_16; 144 GX_PIXELMAP_BUTTON frame_pixelmap_button_17; 145 GX_PIXELMAP_BUTTON frame_pixelmap_button_18; 146 GX_PIXELMAP_BUTTON frame_pixelmap_button_c; 147 GX_PIXELMAP_BUTTON frame_pixelmap_button_mc; 148 GX_PIXELMAP_BUTTON frame_pixelmap_button_mr; 149 GX_PIXELMAP_BUTTON frame_pixelmap_button_del; 150 GX_WINDOW frame_text_bg_win_2; 151 GX_SINGLE_LINE_TEXT_INPUT frame_display_result; 152 } FRAME_CONTROL_BLOCK; 153 154 155 /* extern statically defined control blocks */ 156 157 #ifndef GUIX_STUDIO_GENERATED_FILE 158 extern FRAME_CONTROL_BLOCK frame; 159 #endif 160 161 /* Declare event process functions, draw functions, and callback functions */ 162 163 UINT calculator_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 164 VOID custom_pixelmap_button_draw(GX_PIXELMAP_BUTTON *widget); 165 166 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 167 168 169 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 170 { 171 GX_CONST GX_CHAR *name; 172 GX_CONST GX_CHAR *canvas_name; 173 GX_CONST GX_THEME **theme_table; 174 GX_CONST GX_STRING **language_table; 175 USHORT theme_table_size; 176 USHORT language_table_size; 177 UINT string_table_size; 178 UINT x_resolution; 179 UINT y_resolution; 180 GX_DISPLAY *display; 181 GX_CANVAS *canvas; 182 GX_WINDOW_ROOT *root_window; 183 GX_COLOR *canvas_memory; 184 ULONG canvas_memory_size; 185 USHORT rotation_angle; 186 } GX_STUDIO_DISPLAY_INFO; 187 188 189 /* Declare Studio-generated functions for creating top-level widgets */ 190 191 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 192 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 193 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 194 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 195 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 196 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 197 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 198 199 /* Determine if a C++ compiler is being used. If so, complete the standard 200 C conditional started above. */ 201 #ifdef __cplusplus 202 } 203 #endif 204 205 #endif /* sentry */ 206