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