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:10 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _LINES_8BPP_SPECIFICATIONS_H_ 14 #define _LINES_8BPP_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 #if GX_PALETTE_MODE_AA_TEXT_COLORS != 8 24 #error "The symbol GX_PALETTE_MODE_AA_TEXT_COLORS does not match the setting in the Studio project." 25 #endif 26 27 /* Define widget ids */ 28 29 #define ID_LINE_WIDTH 1 30 #define ID_LINE_ANGLE 2 31 #define ID_WIDTH_DISPLAY 3 32 #define ID_ANGLE_DISPLAY 4 33 #define ID_ANTI_ALIASED 5 34 #define ID_ROUNDED 6 35 #define ID_LINE_WINDOW 7 36 #define ID_COLOR_LIST 8 37 38 39 /* Define animation ids */ 40 41 #define GX_NEXT_ANIMATION_ID 1 42 43 44 /* Define user event ids */ 45 46 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 47 48 49 /* Declare properties structures for each utilized widget type */ 50 51 typedef struct GX_STUDIO_WIDGET_STRUCT 52 { 53 GX_CHAR *widget_name; 54 USHORT widget_type; 55 USHORT widget_id; 56 #if defined(GX_WIDGET_USER_DATA) 57 INT user_data; 58 #endif 59 ULONG style; 60 ULONG status; 61 ULONG control_block_size; 62 GX_RESOURCE_ID normal_fill_color_id; 63 GX_RESOURCE_ID selected_fill_color_id; 64 GX_RESOURCE_ID disabled_fill_color_id; 65 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 66 void (*draw_function) (GX_WIDGET *); 67 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 68 GX_RECTANGLE size; 69 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 70 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 71 ULONG control_block_offset; 72 GX_CONST void *properties; 73 } GX_STUDIO_WIDGET; 74 75 typedef struct 76 { 77 GX_CONST GX_STUDIO_WIDGET *widget_information; 78 GX_WIDGET *widget; 79 } GX_STUDIO_WIDGET_ENTRY; 80 81 typedef struct 82 { 83 GX_RESOURCE_ID string_id; 84 GX_RESOURCE_ID font_id; 85 GX_RESOURCE_ID normal_text_color_id; 86 GX_RESOURCE_ID selected_text_color_id; 87 GX_RESOURCE_ID disabled_text_color_id; 88 GX_RESOURCE_ID unchecked_pixelmap_id; 89 GX_RESOURCE_ID checked_pixelmap_id; 90 GX_RESOURCE_ID unchecked_disabled_pixelmap_id; 91 GX_RESOURCE_ID checked_disabled_pixelmap_id; 92 } GX_CHECKBOX_PROPERTIES; 93 94 typedef struct 95 { 96 int tickmark_count; 97 int minval; 98 int maxval; 99 int current_val; 100 int increment; 101 GX_VALUE min_travel; 102 GX_VALUE max_travel; 103 GX_VALUE needle_width; 104 GX_VALUE needle_height; 105 GX_VALUE needle_inset; 106 GX_VALUE needle_hotspot; 107 } GX_SLIDER_PROPERTIES; 108 109 typedef struct 110 { 111 GX_RESOURCE_ID string_id; 112 GX_RESOURCE_ID font_id; 113 GX_RESOURCE_ID normal_text_color_id; 114 GX_RESOURCE_ID selected_text_color_id; 115 GX_RESOURCE_ID disabled_text_color_id; 116 } GX_PROMPT_PROPERTIES; 117 118 typedef struct 119 { 120 GX_RESOURCE_ID wallpaper_id; 121 } GX_WINDOW_PROPERTIES; 122 123 typedef struct 124 { 125 GX_RESOURCE_ID pixelmap_id; 126 GX_RESOURCE_ID wallpaper_id; 127 VOID (*callback)(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 128 int total_rows; 129 int open_height; 130 } GX_DROP_LIST_PROPERTIES; 131 132 133 /* Declare top-level control blocks */ 134 135 typedef struct MAIN_WINDOW_CONTROL_BLOCK_STRUCT 136 { 137 GX_WINDOW_MEMBERS_DECLARE 138 GX_PROMPT main_window_prompt_1; 139 GX_SLIDER main_window_line_width_slider; 140 GX_PROMPT main_window_prompt_2; 141 GX_SLIDER main_window_line_angle_slider; 142 GX_PROMPT main_window_width_display; 143 GX_PROMPT main_window_angle_display; 144 GX_CHECKBOX main_window_aa_box; 145 GX_CHECKBOX main_window_rounded_box; 146 GX_WINDOW main_window_line_window; 147 GX_PROMPT main_window_color_label; 148 GX_DROP_LIST main_window_color_list; 149 } MAIN_WINDOW_CONTROL_BLOCK; 150 151 152 /* extern statically defined control blocks */ 153 154 #ifndef GUIX_STUDIO_GENERATED_FILE 155 extern MAIN_WINDOW_CONTROL_BLOCK main_window; 156 #endif 157 158 /* Declare event process functions, draw functions, and callback functions */ 159 160 UINT main_event_handler(GX_WINDOW *widget, GX_EVENT *event_ptr); 161 VOID line_win_draw(GX_WINDOW *widget); 162 VOID drop_list_color_create(GX_VERTICAL_LIST *, GX_WIDGET *, INT); 163 164 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 165 166 167 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 168 { 169 GX_CONST GX_CHAR *name; 170 GX_CONST GX_CHAR *canvas_name; 171 GX_CONST GX_THEME **theme_table; 172 GX_CONST GX_STRING **language_table; 173 USHORT theme_table_size; 174 USHORT language_table_size; 175 UINT string_table_size; 176 UINT x_resolution; 177 UINT y_resolution; 178 GX_DISPLAY *display; 179 GX_CANVAS *canvas; 180 GX_WINDOW_ROOT *root_window; 181 GX_COLOR *canvas_memory; 182 ULONG canvas_memory_size; 183 USHORT rotation_angle; 184 } GX_STUDIO_DISPLAY_INFO; 185 186 187 /* Declare Studio-generated functions for creating top-level widgets */ 188 189 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 190 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 191 UINT gx_studio_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 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 194 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 195 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 196 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 197 198 /* Determine if a C++ compiler is being used. If so, complete the standard 199 C conditional started above. */ 200 #ifdef __cplusplus 201 } 202 #endif 203 204 #endif /* sentry */ 205