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