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:12 */ 10 /*******************************************************************************/ 11 12 13 #ifndef _SYNERGY_TEXT_ROTATION_SPECIFICATIONS_H_ 14 #define _SYNERGY_TEXT_ROTATION_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_SCREEN_BASE 1 26 #define ID_HOME 2 27 #define TEXT_WIN_8BPP 3 28 #define TEXT_WIN_4BPP 4 29 #define TEXT_WIN_1BPP 5 30 #define DYNAMIC_TEXT_WINDOW 6 31 #define ID_BUTTON1 7 32 #define ID_BUTTON2 8 33 #define ID_BUTTON3 9 34 35 36 /* Define animation ids */ 37 38 #define GX_NEXT_ANIMATION_ID 1 39 40 41 /* Define user event ids */ 42 43 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT 44 45 46 /* Declare properties structures for each utilized widget type */ 47 48 typedef struct GX_STUDIO_WIDGET_STRUCT 49 { 50 GX_CHAR *widget_name; 51 USHORT widget_type; 52 USHORT widget_id; 53 #if defined(GX_WIDGET_USER_DATA) 54 INT user_data; 55 #endif 56 ULONG style; 57 ULONG status; 58 ULONG control_block_size; 59 GX_RESOURCE_ID normal_fill_color_id; 60 GX_RESOURCE_ID selected_fill_color_id; 61 GX_RESOURCE_ID disabled_fill_color_id; 62 UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *); 63 void (*draw_function) (GX_WIDGET *); 64 UINT (*event_function) (GX_WIDGET *, GX_EVENT *); 65 GX_RECTANGLE size; 66 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget; 67 GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget; 68 ULONG control_block_offset; 69 GX_CONST void *properties; 70 } GX_STUDIO_WIDGET; 71 72 typedef struct 73 { 74 GX_CONST GX_STUDIO_WIDGET *widget_information; 75 GX_WIDGET *widget; 76 } GX_STUDIO_WIDGET_ENTRY; 77 78 typedef struct 79 { 80 GX_RESOURCE_ID normal_pixelmap_id; 81 GX_RESOURCE_ID selected_pixelmap_id; 82 GX_RESOURCE_ID disabled_pixelmap_id; 83 } GX_PIXELMAP_BUTTON_PROPERTIES; 84 85 typedef struct 86 { 87 GX_RESOURCE_ID normal_pixelmap_id; 88 GX_RESOURCE_ID selected_pixelmap_id; 89 } GX_ICON_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 SCREEN_BASE_CONTROL_BLOCK_STRUCT 100 { 101 GX_WINDOW_MEMBERS_DECLARE 102 GX_ICON screen_base_guix_icon; 103 GX_ICON screen_base_express_icon; 104 GX_ICON screen_base_home_icon; 105 GX_WINDOW screen_base_text_window; 106 GX_WINDOW screen_base_text_window_4bpp; 107 GX_WINDOW screen_base_text_window_1bpp; 108 GX_WINDOW screen_base_dynamic_text_window; 109 GX_PIXELMAP_BUTTON screen_base_patients_button; 110 GX_PIXELMAP_BUTTON screen_base_meds_button; 111 GX_PIXELMAP_BUTTON screen_base_vitals_button; 112 } SCREEN_BASE_CONTROL_BLOCK; 113 114 115 /* extern statically defined control blocks */ 116 117 #ifndef GUIX_STUDIO_GENERATED_FILE 118 extern SCREEN_BASE_CONTROL_BLOCK screen_base; 119 #endif 120 121 /* Prototype Dave2D display driver specific functions */ 122 123 UINT _gx_synergy_display_driver_setup(GX_DISPLAY *display); 124 #if defined(GX_TARGET_WIN32) || defined(GX_TARGET_LINUX) 125 UINT win32_dave2d_graphics_driver_setup_24xrgb(GX_DISPLAY *display); 126 #else 127 VOID _gx_display_driver_32argb_setup(GX_DISPLAY *display, VOID *aux_data, 128 VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas, 129 GX_RECTANGLE *dirty_area)); 130 VOID _gx_dave2d_horizontal_pattern_line_draw_888(GX_DRAW_CONTEXT *context, INT xstart, INT xend, INT ypos); 131 VOID _gx_dave2d_vertical_pattern_line_draw_888(GX_DRAW_CONTEXT *context, INT ystart, INT yend, INT xpos); 132 VOID _gx_dave2d_pixel_write_888(GX_DRAW_CONTEXT *context, INT x, INT y, GX_COLOR color); 133 VOID _gx_dave2d_pixel_blend_888(GX_DRAW_CONTEXT *context, INT x, INT y, GX_COLOR fcolor, GX_UBYTE alpha); 134 VOID _gx_dave2d_drawing_initiate(GX_DISPLAY *display, GX_CANVAS *canvas); 135 VOID _gx_dave2d_drawing_complete(GX_DISPLAY *display, GX_CANVAS *canvas); 136 VOID _gx_dave2d_horizontal_line(GX_DRAW_CONTEXT *context, 137 INT xstart, INT xend, INT ypos, INT width, GX_COLOR color); 138 VOID _gx_dave2d_vertical_line(GX_DRAW_CONTEXT *context, 139 INT ystart, INT yend, INT xpos, INT width, GX_COLOR color); 140 VOID _gx_dave2d_canvas_copy(GX_CANVAS *canvas, GX_CANVAS *composite); 141 VOID _gx_dave2d_canvas_blend(GX_CANVAS *canvas, GX_CANVAS *composite); 142 VOID _gx_dave2d_simple_line_draw(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, INT xend, INT yend); 143 VOID _gx_dave2d_simple_wide_line(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, 144 INT xend, INT yend); 145 VOID _gx_dave2d_aliased_line(GX_DRAW_CONTEXT *context, INT xstart, INT ystart, INT xend, INT yend); 146 VOID _gx_dave2d_aliased_wide_line(GX_DRAW_CONTEXT *context, INT xstart, 147 INT ystart, INT xend, INT yend); 148 VOID _gx_dave2d_pixelmap_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 149 VOID _gx_dave2d_horizontal_pixelmap_line_draw(GX_DRAW_CONTEXT *context, INT xstart, INT xend, INT y, GX_FILL_PIXELMAP_INFO *info); 150 VOID _gx_dave2d_pixelmap_blend(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, 151 GX_PIXELMAP *pixelmap, GX_UBYTE alpha); 152 VOID _gx_dave2d_polygon_draw(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 153 VOID _gx_dave2d_polygon_fill(GX_DRAW_CONTEXT *context, GX_POINT *vertex, INT num); 154 VOID _gx_dave2d_block_move(GX_DRAW_CONTEXT *context, 155 GX_RECTANGLE *block, INT xshift, INT yshift); 156 VOID _gx_dave2d_alphamap_draw(GX_DRAW_CONTEXT *context, INT xpos, INT ypos, GX_PIXELMAP *pixelmap); 157 VOID _gx_dave2d_compressed_glyph_8bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 158 VOID _gx_dave2d_raw_glyph_8bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 159 VOID _gx_dave2d_compressed_glyph_4bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 160 VOID _gx_dave2d_raw_glyph_4bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 161 VOID _gx_dave2d_compressed_glyph_1bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 162 VOID _gx_dave2d_raw_glyph_1bit_draw(GX_DRAW_CONTEXT *context, GX_RECTANGLE *draw_area, GX_POINT *map_offset, const GX_GLYPH *glyph); 163 VOID _gx_dave2d_buffer_toggle(GX_CANVAS *canvas, GX_RECTANGLE *dirty); 164 #if defined(GX_ARC_DRAWING_SUPPORT) 165 VOID _gx_dave2d_aliased_circle_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 166 VOID _gx_dave2d_circle_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 167 VOID _gx_dave2d_circle_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r); 168 VOID _gx_dave2d_pie_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 169 VOID _gx_dave2d_aliased_arc_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 170 VOID _gx_dave2d_arc_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 171 VOID _gx_dave2d_arc_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, UINT r, INT start_angle, INT end_angle); 172 VOID _gx_dave2d_aliased_ellipse_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 173 VOID _gx_dave2d_ellipse_draw(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 174 VOID _gx_dave2d_ellipse_fill(GX_DRAW_CONTEXT *context, INT xcenter, INT ycenter, INT a, INT b); 175 #endif 176 VOID _gx_synergy_jpeg_draw (GX_DRAW_CONTEXT *p_context, INT x, INT y, GX_PIXELMAP *p_pixelmap); 177 178 #endif 179 180 /* Declare event process functions, draw functions, and callback functions */ 181 182 UINT background_win_event_process(GX_WINDOW *widget, GX_EVENT *event_ptr); 183 VOID text_window_draw(GX_WINDOW *widget); 184 VOID page_button_draw(GX_PIXELMAP_BUTTON *widget); 185 186 /* Declare the GX_STUDIO_DISPLAY_INFO structure */ 187 188 189 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT 190 { 191 GX_CONST GX_CHAR *name; 192 GX_CONST GX_CHAR *canvas_name; 193 GX_CONST GX_THEME **theme_table; 194 GX_CONST GX_STRING **language_table; 195 USHORT theme_table_size; 196 USHORT language_table_size; 197 UINT string_table_size; 198 UINT x_resolution; 199 UINT y_resolution; 200 GX_DISPLAY *display; 201 GX_CANVAS *canvas; 202 GX_WINDOW_ROOT *root_window; 203 GX_COLOR *canvas_memory; 204 ULONG canvas_memory_size; 205 USHORT rotation_angle; 206 } GX_STUDIO_DISPLAY_INFO; 207 208 209 /* Declare Studio-generated functions for creating top-level widgets */ 210 211 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 212 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 213 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent); 214 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); 215 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget); 216 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root); 217 218 /* Determine if a C++ compiler is being used. If so, complete the standard 219 C conditional started above. */ 220 #ifdef __cplusplus 221 } 222 #endif 223 224 #endif /* sentry */ 225