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:22 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _GUIX_SIMPLE_SPECIFICATIONS_H_ 14 #define _GUIX_SIMPLE_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 normal_pixelmap_id; 72 GX_RESOURCE_ID selected_pixelmap_id; 73 GX_RESOURCE_ID disabled_pixelmap_id; 74 } GX_PIXELMAP_BUTTON_PROPERTIES; 75 76 typedef struct 77 { 78 GX_RESOURCE_ID normal_pixelmap_id; 79 GX_RESOURCE_ID selected_pixelmap_id; 80 } GX_ICON_PROPERTIES; 81 82 typedef struct 83 { 84 GX_RESOURCE_ID string_id; 85 GX_RESOURCE_ID font_id; 86 GX_RESOURCE_ID normal_text_color_id; 87 GX_RESOURCE_ID selected_text_color_id; 88 GX_RESOURCE_ID disabled_text_color_id; 89 } GX_PROMPT_PROPERTIES; 90 91 typedef struct 92 { 93 GX_RESOURCE_ID wallpaper_id; 94 } GX_WINDOW_PROPERTIES; 95 96 97 /* Declare top-level control blocks */ 98 99 typedef struct SIMPLE_WINDOW_CONTROL_BLOCK_STRUCT 100 { 101 GX_WINDOW_MEMBERS_DECLARE 102 GX_ICON simple_window_prompt_border; 103 GX_PROMPT simple_window_hello; 104 GX_ICON simple_window_express_logo; 105 GX_PIXELMAP_BUTTON simple_window_simple_button; 106 GX_PROMPT simple_window_button_text; 107 } SIMPLE_WINDOW_CONTROL_BLOCK; 108 109 110 /* extern statically defined control blocks */ 111 112 #ifndef GUIX_STUDIO_GENERATED_FILE 113 extern SIMPLE_WINDOW_CONTROL_BLOCK simple_window; 114 #endif 115 116 /* Declare event process functions, draw functions, and callback functions */ 117 118 119 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 120 121 122 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 123 { 124 GX_CONST GX_CHAR *name; 125 GX_CONST GX_CHAR *canvas_name; 126 GX_CONST GX_THEME **theme_table; 127 GX_CONST GX_STRING **language_table; 128 USHORT theme_table_size; 129 USHORT language_table_size; 130 UINT string_table_size; 131 UINT x_resolution; 132 UINT y_resolution; 133 GX_DISPLAY *display; 134 GX_CANVAS *canvas; 135 GX_WINDOW_ROOT *root_window; 136 GX_COLOR *canvas_memory; 137 ULONG canvas_memory_size; 138 USHORT rotation_angle; 139 } GX_STUDIO_DISPLAY_INFO; 140 141 142 /* Declare Studio-generated functions for creating top-level widgets */ 143 144 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 145 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 146 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 147 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 148 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 149 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 150 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 151 152 /* Determine if a C++ compiler is being used. If so, complete the standard 153 C conditional started above. */ 154 #ifdef __cplusplus 155 } 156 #endif 157 158 #endif /* sentry */ 159