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:08 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _ALPHAMAP_32BPPDRIVER_SPECIFICATIONS_H_ 14 #define _ALPHAMAP_32BPPDRIVER_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 26 27 /* Define animation ids */ 28 29 #define GX_NEXT_ANIMATION_ID 1 30 31 32 /* Define user event ids */ 33 34 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 35 36 37 /* Declare properties structures for each utilized widget type */ 38 39 typedef struct GX_STUDIO_WIDGET_STRUCT 40 { 41 GX_CHAR *widget_name; 42 USHORT widget_type; 43 USHORT widget_id; 44 #if defined(GX_WIDGET_USER_DATA) 45 INT user_data; 46 #endif 47 ULONG style; 48 ULONG status; 49 ULONG control_block_size; 50 GX_RESOURCE_ID normal_fill_color_id; 51 GX_RESOURCE_ID selected_fill_color_id; 52 GX_RESOURCE_ID disabled_fill_color_id; 53 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 54 void (*draw_function) (GX_WIDGET *); 55 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 56 GX_RECTANGLE size; 57 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 58 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 59 ULONG control_block_offset; 60 GX_CONST void *properties; 61 } GX_STUDIO_WIDGET; 62 63 typedef struct 64 { 65 GX_CONST GX_STUDIO_WIDGET *widget_information; 66 GX_WIDGET *widget; 67 } GX_STUDIO_WIDGET_ENTRY; 68 69 typedef struct 70 { 71 GX_RESOURCE_ID pixelmap_id; 72 } GX_ICON_BUTTON_PROPERTIES; 73 74 typedef struct 75 { 76 GX_RESOURCE_ID normal_pixelmap_id; 77 GX_RESOURCE_ID selected_pixelmap_id; 78 GX_RESOURCE_ID disabled_pixelmap_id; 79 } GX_PIXELMAP_BUTTON_PROPERTIES; 80 81 typedef struct 82 { 83 GX_RESOURCE_ID normal_pixelmap_id; 84 GX_RESOURCE_ID selected_pixelmap_id; 85 } GX_ICON_PROPERTIES; 86 87 typedef struct 88 { 89 int min_val; 90 int max_val; 91 int current_val; 92 int increment; 93 GX_VALUE min_travel; 94 GX_VALUE max_travel; 95 GX_VALUE needle_width; 96 GX_VALUE needle_height; 97 GX_VALUE needle_inset; 98 GX_VALUE needle_hotspot; 99 GX_RESOURCE_ID lower_pixelmap; 100 GX_RESOURCE_ID upper_pixelmap; 101 GX_RESOURCE_ID needle_pixelmap; 102 } GX_PIXELMAP_SLIDER_PROPERTIES; 103 104 typedef struct 105 { 106 GX_RESOURCE_ID string_id; 107 GX_RESOURCE_ID font_id; 108 GX_RESOURCE_ID normal_text_color_id; 109 GX_RESOURCE_ID selected_text_color_id; 110 GX_RESOURCE_ID disabled_text_color_id; 111 } GX_PROMPT_PROPERTIES; 112 113 typedef struct 114 { 115 GX_RESOURCE_ID string_id; 116 GX_RESOURCE_ID font_id; 117 GX_RESOURCE_ID normal_text_color_id; 118 GX_RESOURCE_ID selected_text_color_id; 119 GX_RESOURCE_ID disabled_text_color_id; 120 GX_RESOURCE_ID left_map_id; 121 GX_RESOURCE_ID fill_map_id; 122 GX_RESOURCE_ID right_map_id; 123 GX_RESOURCE_ID selected_left_map_id; 124 GX_RESOURCE_ID selected_fill_map_id; 125 GX_RESOURCE_ID selected_right_map_id; 126 } GX_PIXELMAP_PROMPT_PROPERTIES; 127 128 typedef struct 129 { 130 GX_RESOURCE_ID wallpaper_id; 131 } GX_WINDOW_PROPERTIES; 132 133 134 /* Declare top-level control blocks */ 135 136 typedef struct WINDOW_CONTROL_BLOCK_STRUCT 137 { 138 GX_WINDOW_MEMBERS_DECLARE 139 GX_PIXELMAP_BUTTON window_pixelmap_button_1; 140 GX_ICON_BUTTON window_icon_button_1; 141 GX_ICON window_icon_2; 142 GX_PIXELMAP_PROMPT window_prompt_1; 143 GX_PIXELMAP_SLIDER window_pixelmap_slider_1; 144 GX_PROMPT window_prompt_2; 145 GX_PROMPT window_prompt_3; 146 GX_PROMPT window_prompt_4; 147 GX_PROMPT window_prompt_5; 148 } WINDOW_CONTROL_BLOCK; 149 150 151 /* extern statically defined control blocks */ 152 153 #ifndef GUIX_STUDIO_GENERATED_FILE 154 extern WINDOW_CONTROL_BLOCK window; 155 #endif 156 157 /* Declare event process functions, draw functions, and callback functions */ 158 159 VOID pic_win_draw(GX_WINDOW *widget); 160 161 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 162 163 164 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 165 { 166 GX_CONST GX_CHAR *name; 167 GX_CONST GX_CHAR *canvas_name; 168 GX_CONST GX_THEME **theme_table; 169 GX_CONST GX_STRING **language_table; 170 USHORT theme_table_size; 171 USHORT language_table_size; 172 UINT string_table_size; 173 UINT x_resolution; 174 UINT y_resolution; 175 GX_DISPLAY *display; 176 GX_CANVAS *canvas; 177 GX_WINDOW_ROOT *root_window; 178 GX_COLOR *canvas_memory; 179 ULONG canvas_memory_size; 180 USHORT rotation_angle; 181 } GX_STUDIO_DISPLAY_INFO; 182 183 184 /* Declare Studio-generated functions for creating top-level widgets */ 185 186 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 187 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 188 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 189 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 190 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 191 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 192 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 193 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 194 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 195 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 196 197 /* Determine if a C++ compiler is being used. If so, complete the standard 198 C conditional started above. */ 199 #ifdef __cplusplus 200 } 201 #endif 202 203 #endif /* sentry */ 204