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): 25. 8.2022 Time (hh:mm): 18:23 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _GUIX_THERMOSTAT_SPECIFICATIONS_H_ 14 #define _GUIX_THERMOSTAT_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_MINUS_BTN 1 26 #define ID_PLUS_BTN 2 27 28 29 /* Define animation ids */ 30 31 #define GX_NEXT_ANIMATION_ID 1 32 33 34 /* Define user event ids */ 35 36 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 37 38 39 /* Declare properties structures for each utilized widget type */ 40 41 typedef struct GX_STUDIO_WIDGET_STRUCT 42 { 43 GX_CHAR *widget_name; 44 USHORT widget_type; 45 USHORT widget_id; 46 #if defined(GX_WIDGET_USER_DATA) 47 INT user_data; 48 #endif 49 ULONG style; 50 ULONG status; 51 ULONG control_block_size; 52 GX_RESOURCE_ID normal_fill_color_id; 53 GX_RESOURCE_ID selected_fill_color_id; 54 GX_RESOURCE_ID disabled_fill_color_id; 55 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 56 void (*draw_function) (GX_WIDGET *); 57 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 58 GX_RECTANGLE size; 59 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 60 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 61 ULONG control_block_offset; 62 GX_CONST void *properties; 63 } GX_STUDIO_WIDGET; 64 65 typedef struct 66 { 67 GX_CONST GX_STUDIO_WIDGET *widget_information; 68 GX_WIDGET *widget; 69 } GX_STUDIO_WIDGET_ENTRY; 70 71 typedef struct 72 { 73 GX_RESOURCE_ID normal_pixelmap_id; 74 GX_RESOURCE_ID selected_pixelmap_id; 75 GX_RESOURCE_ID disabled_pixelmap_id; 76 } GX_PIXELMAP_BUTTON_PROPERTIES; 77 78 typedef struct 79 { 80 GX_RESOURCE_ID normal_pixelmap_id; 81 GX_RESOURCE_ID selected_pixelmap_id; 82 } GX_ICON_PROPERTIES; 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_PROMPT_PROPERTIES; 92 93 typedef struct 94 { 95 GX_RESOURCE_ID wallpaper_id; 96 } GX_WINDOW_PROPERTIES; 97 98 typedef struct 99 { 100 GX_VALUE start_angle; 101 GX_VALUE animation_steps; 102 GX_VALUE animation_delay; 103 GX_VALUE needle_xpos; 104 GX_VALUE needle_ypos; 105 GX_VALUE needle_xcor; 106 GX_VALUE needle_ycor; 107 GX_RESOURCE_ID normal_pixelmap_id; 108 GX_RESOURCE_ID selected_pixelmap_id; 109 GX_RESOURCE_ID needle_pixelmap_id; 110 } GX_CIRCULAR_GAUGE_PROPERTIES; 111 112 113 /* Declare top-level control blocks */ 114 115 typedef struct THERMOMETER_SCREEN_CONTROL_BLOCK_STRUCT 116 { 117 GX_WINDOW_MEMBERS_DECLARE 118 GX_CIRCULAR_GAUGE thermometer_screen_gauge; 119 GX_PROMPT thermometer_screen_value_prompt; 120 GX_PROMPT thermometer_screen_prompt; 121 GX_PROMPT thermometer_screen_prompt_1; 122 GX_ICON thermometer_screen_icon_1; 123 GX_PIXELMAP_BUTTON thermometer_screen_minus_button; 124 GX_PIXELMAP_BUTTON thermometer_screen_plus_button; 125 } THERMOMETER_SCREEN_CONTROL_BLOCK; 126 127 128 /* extern statically defined control blocks */ 129 130 #ifndef GUIX_STUDIO_GENERATED_FILE 131 extern THERMOMETER_SCREEN_CONTROL_BLOCK thermometer_screen; 132 #endif 133 134 /* Declare event process functions, draw functions, and callback functions */ 135 136 UINT thermo_screen_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 137 VOID custom_pixelmap_button_draw(GX_PIXELMAP_BUTTON *widget); 138 139 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 140 141 142 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 143 { 144 GX_CONST GX_CHAR *name; 145 GX_CONST GX_CHAR *canvas_name; 146 GX_CONST GX_THEME **theme_table; 147 GX_CONST GX_STRING **language_table; 148 USHORT theme_table_size; 149 USHORT language_table_size; 150 UINT string_table_size; 151 UINT x_resolution; 152 UINT y_resolution; 153 GX_DISPLAY *display; 154 GX_CANVAS *canvas; 155 GX_WINDOW_ROOT *root_window; 156 GX_COLOR *canvas_memory; 157 ULONG canvas_memory_size; 158 USHORT rotation_angle; 159 } GX_STUDIO_DISPLAY_INFO; 160 161 162 /* Declare Studio-generated functions for creating top-level widgets */ 163 164 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 165 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 166 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 167 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 168 UINT gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 169 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 170 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 171 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 172 173 /* Determine if a C++ compiler is being used. If so, complete the standard 174 C conditional started above. */ 175 #ifdef __cplusplus 176 } 177 #endif 178 179 #endif /* sentry */ 180