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 _TEXT_ROTATION_SPECIFICATIONS_H_
14 #define _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 /* Declare event process functions, draw functions, and callback functions     */
122 
123 UINT background_win_event_process(GX_WINDOW *widget, GX_EVENT *event_ptr);
124 VOID text_window_draw(GX_WINDOW *widget);
125 VOID page_button_draw(GX_PIXELMAP_BUTTON *widget);
126 
127 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
128 
129 
130 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
131 {
132     GX_CONST GX_CHAR *name;
133     GX_CONST GX_CHAR *canvas_name;
134     GX_CONST GX_THEME **theme_table;
135     GX_CONST GX_STRING **language_table;
136     USHORT   theme_table_size;
137     USHORT   language_table_size;
138     UINT     string_table_size;
139     UINT     x_resolution;
140     UINT     y_resolution;
141     GX_DISPLAY *display;
142     GX_CANVAS  *canvas;
143     GX_WINDOW_ROOT *root_window;
144     GX_COLOR   *canvas_memory;
145     ULONG      canvas_memory_size;
146     USHORT     rotation_angle;
147 } GX_STUDIO_DISPLAY_INFO;
148 
149 
150 /* Declare Studio-generated functions for creating top-level widgets           */
151 
152 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
153 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
154 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
155 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
156 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
157 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
158 
159 /* Determine if a C++ compiler is being used.  If so, complete the standard
160   C conditional started above.                                                 */
161 #ifdef __cplusplus
162 }
163 #endif
164 
165 #endif                                       /* sentry                         */
166