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:11                        */
10 /*******************************************************************************/
11 
12 
13 #ifndef _SPRITE_16BPP_SPECIFICATIONS_H_
14 #define _SPRITE_16BPP_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_ALPHA_SLIDER 1
26 #define ID_ALPHA_DISPLAY 2
27 
28 
29 /* Define animation ids                                                        */
30 
31 #define GX_NEXT_ANIMATION_ID 1
32 
33 
34 /* Define user event ids                                                       */
35 
36 #define GX_NEXT_USER_EVENT_ID GX_FIRST_USER_EVENT
37 
38 
39 /* Declare properties structures for each utilized widget type                 */
40 
41 typedef struct GX_STUDIO_WIDGET_STRUCT
42 {
43    GX_CHAR *widget_name;
44    USHORT  widget_type;
45    USHORT  widget_id;
46    #if defined(GX_WIDGET_USER_DATA)
47    INT   user_data;
48    #endif
49    ULONG style;
50    ULONG status;
51    ULONG control_block_size;
52    GX_RESOURCE_ID normal_fill_color_id;
53    GX_RESOURCE_ID selected_fill_color_id;
54    GX_RESOURCE_ID disabled_fill_color_id;
55    UINT (*create_function) (GX_CONST struct GX_STUDIO_WIDGET_STRUCT *, GX_WIDGET *, GX_WIDGET *);
56    void (*draw_function) (GX_WIDGET *);
57    UINT (*event_function) (GX_WIDGET *, GX_EVENT *);
58    GX_RECTANGLE size;
59    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *next_widget;
60    GX_CONST struct GX_STUDIO_WIDGET_STRUCT *child_widget;
61    ULONG control_block_offset;
62    GX_CONST void *properties;
63 } GX_STUDIO_WIDGET;
64 
65 typedef struct
66 {
67     GX_CONST GX_STUDIO_WIDGET *widget_information;
68     GX_WIDGET        *widget;
69 } GX_STUDIO_WIDGET_ENTRY;
70 
71 typedef struct
72 {
73     int tickmark_count;
74     int minval;
75     int maxval;
76     int current_val;
77     int increment;
78     GX_VALUE min_travel;
79     GX_VALUE max_travel;
80     GX_VALUE needle_width;
81     GX_VALUE needle_height;
82     GX_VALUE needle_inset;
83     GX_VALUE needle_hotspot;
84 } GX_SLIDER_PROPERTIES;
85 
86 typedef struct
87 {
88     GX_RESOURCE_ID string_id;
89     GX_RESOURCE_ID font_id;
90     GX_RESOURCE_ID normal_text_color_id;
91     GX_RESOURCE_ID selected_text_color_id;
92     GX_RESOURCE_ID disabled_text_color_id;
93 } GX_PROMPT_PROPERTIES;
94 
95 typedef struct
96 {
97     GX_RESOURCE_ID wallpaper_id;
98 } GX_WINDOW_PROPERTIES;
99 
100 
101 /* Declare top-level control blocks                                            */
102 
103 typedef struct MAIN_WINDOW_CONTROL_BLOCK_STRUCT
104 {
105     GX_WINDOW_MEMBERS_DECLARE
106     GX_WINDOW main_window_AppleWindow;
107     GX_PROMPT main_window_alpha_label;
108     GX_SLIDER main_window_alpha_slider;
109     GX_PROMPT main_window_alpha_display;
110 } MAIN_WINDOW_CONTROL_BLOCK;
111 
112 
113 /* extern statically defined control blocks                                    */
114 
115 #ifndef GUIX_STUDIO_GENERATED_FILE
116 extern MAIN_WINDOW_CONTROL_BLOCK main_window;
117 #endif
118 
119 /* Declare event process functions, draw functions, and callback functions     */
120 
121 UINT MainWindowEventProcess(GX_WINDOW *widget, GX_EVENT *event_ptr);
122 VOID AppleWindowDraw(GX_WINDOW *widget);
123 
124 /* Declare the GX_STUDIO_DISPLAY_INFO structure                                */
125 
126 
127 typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
128 {
129     GX_CONST GX_CHAR *name;
130     GX_CONST GX_CHAR *canvas_name;
131     GX_CONST GX_THEME **theme_table;
132     GX_CONST GX_STRING **language_table;
133     USHORT   theme_table_size;
134     USHORT   language_table_size;
135     UINT     string_table_size;
136     UINT     x_resolution;
137     UINT     y_resolution;
138     GX_DISPLAY *display;
139     GX_CANVAS  *canvas;
140     GX_WINDOW_ROOT *root_window;
141     GX_COLOR   *canvas_memory;
142     ULONG      canvas_memory_size;
143     USHORT     rotation_angle;
144 } GX_STUDIO_DISPLAY_INFO;
145 
146 
147 /* Declare Studio-generated functions for creating top-level widgets           */
148 
149 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
150 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
151 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
152 GX_WIDGET *gx_studio_widget_create(GX_BYTE *storage, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
153 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget);
154 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root);
155 
156 /* Determine if a C++ compiler is being used.  If so, complete the standard
157   C conditional started above.                                                 */
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif                                       /* sentry                         */
163