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 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "two_displays_MAIN_DISPLAY_resources.h"
16 #include "two_displays_SECONDARY_resources.h"
17 #include "two_displays_specifications.h"
18
19 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
20 MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK MAIN_DISPLAY_main_window;
21 SECONDARY_MAIN_WINDOW_CONTROL_BLOCK SECONDARY_main_window;
22 GX_DISPLAY MAIN_DISPLAY_control_block;
23 GX_WINDOW_ROOT MAIN_DISPLAY_root_window;
24 GX_CANVAS MAIN_DISPLAY_canvas_control_block;
25 ULONG MAIN_DISPLAY_canvas_memory[38400];
26
27 GX_DISPLAY SECONDARY_control_block;
28 GX_WINDOW_ROOT SECONDARY_root_window;
29 GX_CANVAS SECONDARY_canvas_control_block;
30 ULONG SECONDARY_canvas_memory[38400];
31
32 extern GX_CONST GX_THEME *MAIN_DISPLAY_theme_table[];
33 extern GX_CONST GX_STRING *MAIN_DISPLAY_language_table[];
34 extern GX_CONST GX_THEME *SECONDARY_theme_table[];
35 extern GX_CONST GX_STRING *SECONDARY_language_table[];
36
37 GX_STUDIO_DISPLAY_INFO two_displays_display_table[2] =
38 {
39 {
40 "MAIN_DISPLAY",
41 "MAIN_DISPLAY_canvas",
42 MAIN_DISPLAY_theme_table,
43 MAIN_DISPLAY_language_table,
44 MAIN_DISPLAY_THEME_TABLE_SIZE,
45 MAIN_DISPLAY_LANGUAGE_TABLE_SIZE,
46 MAIN_DISPLAY_STRING_TABLE_SIZE,
47 320, /* x resolution */
48 240, /* y resolution */
49 &MAIN_DISPLAY_control_block,
50 &MAIN_DISPLAY_canvas_control_block,
51 &MAIN_DISPLAY_root_window,
52 MAIN_DISPLAY_canvas_memory, /* canvas memory area */
53 153600, /* canvas memory size in bytes */
54 0 /* rotation angle */
55 },
56 {
57 "SECONDARY",
58 "SECONDARY_canvas",
59 SECONDARY_theme_table,
60 SECONDARY_language_table,
61 SECONDARY_THEME_TABLE_SIZE,
62 SECONDARY_LANGUAGE_TABLE_SIZE,
63 SECONDARY_STRING_TABLE_SIZE,
64 320, /* x resolution */
65 240, /* y resolution */
66 &SECONDARY_control_block,
67 &SECONDARY_canvas_control_block,
68 &SECONDARY_root_window,
69 SECONDARY_canvas_memory, /* canvas memory area */
70 153600, /* canvas memory size in bytes */
71 0 /* rotation angle */
72 }
73 };
74
75
gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)76 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
77 {
78 UINT status;
79 GX_ICON_BUTTON *button = (GX_ICON_BUTTON *) control_block;
80 GX_ICON_BUTTON_PROPERTIES *props = (GX_ICON_BUTTON_PROPERTIES *) info->properties;
81 status = gx_icon_button_create(button, info->widget_name, parent, props->pixelmap_id, info->style, info->widget_id, &info->size);
82 return status;
83 }
84
gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)85 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
86 {
87 UINT status;
88 GX_ICON *icon = (GX_ICON *) control_block;
89 GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
90 status = gx_icon_create(icon, info->widget_name, parent, props->normal_pixelmap_id, info->style, info->widget_id, info->size.gx_rectangle_left, info->size.gx_rectangle_top);
91 if (props->selected_pixelmap_id)
92 {
93 gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
94 }
95 else
96 {
97 gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
98 }
99 return status;
100 }
101
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)102 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
103 {
104 UINT status;
105 GX_PROMPT *prompt = (GX_PROMPT *) control_block;
106 GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
107 status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
108 if (status == GX_SUCCESS)
109 {
110 gx_prompt_font_set(prompt, props->font_id);
111 #if defined(GUIX_5_4_0_COMPATIBILITY)
112 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
113 #else
114 gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
115 #endif
116 }
117 return status;
118 }
119
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)120 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
121 {
122 UINT status;
123 GX_WINDOW *window = (GX_WINDOW *) control_block;
124 GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
125 status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
126 if (status == GX_SUCCESS)
127 {
128 if (props->wallpaper_id)
129 {
130 gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
131 }
132 }
133 return status;
134 }
135 GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_properties =
136 {
137 0 /* wallpaper pixelmap id */
138 };
139 GX_ICON_PROPERTIES MAIN_DISPLAY_main_window_icon_1_properties =
140 {
141 GX_PIXELMAP_ID_MAIN_DISPLAY_HOME, /* normal pixelmap id */
142 0 /* selected pixelmap id */
143 };
144 GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_prompt_properties =
145 {
146 GX_STRING_ID_MAIN_DISPLAY_STRING_2, /* string id */
147 GX_FONT_ID_PROMPT, /* font id */
148 GX_COLOR_ID_TEXT, /* normal text color */
149 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
150 GX_COLOR_ID_TEXT /* disabled text color */
151 };
152
153 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_prompt_define =
154 {
155 "prompt",
156 GX_TYPE_PROMPT, /* widget type */
157 GX_ID_NONE, /* widget id */
158 #if defined(GX_WIDGET_USER_DATA)
159 0, /* user data */
160 #endif
161 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
162 0, /* status flags */
163 sizeof(GX_PROMPT), /* control block size */
164 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
165 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
166 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
167 gx_studio_prompt_create, /* create function */
168 GX_NULL, /* drawing function override */
169 GX_NULL, /* event function override */
170 {111, 42, 205, 59}, /* widget size */
171 GX_NULL, /* no next widget */
172 GX_NULL, /* no child widgets */
173 offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_prompt), /* control block */
174 (void *) &MAIN_DISPLAY_main_window_prompt_properties /* extended properties */
175 };
176
177 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_1_define =
178 {
179 "icon_1",
180 GX_TYPE_ICON, /* widget type */
181 GX_ID_NONE, /* widget id */
182 #if defined(GX_WIDGET_USER_DATA)
183 0, /* user data */
184 #endif
185 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP, /* style flags */
186 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
187 sizeof(GX_ICON), /* control block size */
188 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
189 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
190 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
191 gx_studio_icon_create, /* create function */
192 GX_NULL, /* drawing function override */
193 GX_NULL, /* event function override */
194 {137, 88, 176, 127}, /* widget size */
195 &MAIN_DISPLAY_main_window_prompt_define, /* next widget definition */
196 GX_NULL, /* no child widgets */
197 offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_1), /* control block */
198 (void *) &MAIN_DISPLAY_main_window_icon_1_properties /* extended properties */
199 };
200
201 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_define =
202 {
203 "MAIN_DISPLAY_main_window",
204 GX_TYPE_WINDOW, /* widget type */
205 GX_ID_NONE, /* widget id */
206 #if defined(GX_WIDGET_USER_DATA)
207 0, /* user data */
208 #endif
209 GX_STYLE_BORDER_THIN, /* style flags */
210 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
211 sizeof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK), /* control block size */
212 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
213 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
214 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
215 gx_studio_window_create, /* create function */
216 GX_NULL, /* drawing function override */
217 GX_NULL, /* event function override */
218 {24, 18, 290, 197}, /* widget size */
219 GX_NULL, /* next widget */
220 &MAIN_DISPLAY_main_window_icon_1_define, /* child widget */
221 0, /* control block */
222 (void *) &MAIN_DISPLAY_main_window_properties /* extended properties */
223 };
224 GX_WINDOW_PROPERTIES SECONDARY_main_window_properties =
225 {
226 0 /* wallpaper pixelmap id */
227 };
228 GX_ICON_BUTTON_PROPERTIES SECONDARY_main_window_icon_button_1_properties =
229 {
230 GX_PIXELMAP_ID_SECONDARY_I_PATIENTLIST_LG /* pixelmap id */
231 };
232 GX_PROMPT_PROPERTIES SECONDARY_main_window_prompt_properties =
233 {
234 GX_STRING_ID_SECONDARY_STRING_2, /* string id */
235 GX_FONT_ID_PROMPT, /* font id */
236 GX_COLOR_ID_TEXT, /* normal text color */
237 GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
238 GX_COLOR_ID_TEXT /* disabled text color */
239 };
240
241 GX_CONST GX_STUDIO_WIDGET SECONDARY_main_window_prompt_define =
242 {
243 "prompt",
244 GX_TYPE_PROMPT, /* widget type */
245 GX_ID_NONE, /* widget id */
246 #if defined(GX_WIDGET_USER_DATA)
247 0, /* user data */
248 #endif
249 GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */
250 0, /* status flags */
251 sizeof(GX_PROMPT), /* control block size */
252 GX_COLOR_ID_WIDGET_FILL, /* normal color id */
253 GX_COLOR_ID_SELECTED_FILL, /* selected color id */
254 GX_COLOR_ID_WIDGET_FILL, /* disabled color id */
255 gx_studio_prompt_create, /* create function */
256 GX_NULL, /* drawing function override */
257 GX_NULL, /* event function override */
258 {71, 106, 150, 123}, /* widget size */
259 GX_NULL, /* no next widget */
260 GX_NULL, /* no child widgets */
261 offsetof(SECONDARY_MAIN_WINDOW_CONTROL_BLOCK, SECONDARY_main_window_prompt), /* control block */
262 (void *) &SECONDARY_main_window_prompt_properties /* extended properties */
263 };
264
265 GX_CONST GX_STUDIO_WIDGET SECONDARY_main_window_icon_button_1_define =
266 {
267 "icon_button_1",
268 GX_TYPE_ICON_BUTTON, /* widget type */
269 GX_ID_NONE, /* widget id */
270 #if defined(GX_WIDGET_USER_DATA)
271 0, /* user data */
272 #endif
273 GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */
274 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
275 sizeof(GX_ICON_BUTTON), /* control block size */
276 GX_COLOR_ID_BTN_LOWER, /* normal color id */
277 GX_COLOR_ID_BTN_UPPER, /* selected color id */
278 GX_COLOR_ID_BTN_LOWER, /* disabled color id */
279 gx_studio_icon_button_create, /* create function */
280 GX_NULL, /* drawing function override */
281 GX_NULL, /* event function override */
282 {87, 37, 128, 78}, /* widget size */
283 &SECONDARY_main_window_prompt_define, /* next widget definition */
284 GX_NULL, /* no child widgets */
285 offsetof(SECONDARY_MAIN_WINDOW_CONTROL_BLOCK, SECONDARY_main_window_icon_button_1), /* control block */
286 (void *) &SECONDARY_main_window_icon_button_1_properties /* extended properties */
287 };
288
289 GX_CONST GX_STUDIO_WIDGET SECONDARY_main_window_define =
290 {
291 "SECONDARY_main_window",
292 GX_TYPE_WINDOW, /* widget type */
293 GX_ID_NONE, /* widget id */
294 #if defined(GX_WIDGET_USER_DATA)
295 0, /* user data */
296 #endif
297 GX_STYLE_BORDER_THIN, /* style flags */
298 GX_STATUS_ACCEPTS_FOCUS, /* status flags */
299 sizeof(SECONDARY_MAIN_WINDOW_CONTROL_BLOCK), /* control block size */
300 GX_COLOR_ID_WINDOW_FILL, /* normal color id */
301 GX_COLOR_ID_WINDOW_FILL, /* selected color id */
302 GX_COLOR_ID_WINDOW_FILL, /* disabled color id */
303 gx_studio_window_create, /* create function */
304 GX_NULL, /* drawing function override */
305 GX_NULL, /* event function override */
306 {37, 19, 185, 217}, /* widget size */
307 GX_NULL, /* next widget */
308 &SECONDARY_main_window_icon_button_1_define, /* child widget */
309 0, /* control block */
310 (void *) &SECONDARY_main_window_properties /* extended properties */
311 };
312 GX_CONST GX_STUDIO_WIDGET_ENTRY two_displays_widget_table[] =
313 {
314 { &MAIN_DISPLAY_main_window_define, (GX_WIDGET *) &MAIN_DISPLAY_main_window },
315 { &SECONDARY_main_window_define, (GX_WIDGET *) &SECONDARY_main_window },
316 {GX_NULL, GX_NULL}
317 };
318
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)319 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
320 {
321 UINT status = GX_SUCCESS;
322 GX_WIDGET *widget = GX_NULL;
323 GX_VALUE list_count = 0;
324 GX_VALUE list_total_count = 0;
325
326 if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
327 {
328 list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
329 }
330
331 while(definition && status == GX_SUCCESS)
332 {
333 if (definition->create_function)
334 {
335 if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
336 {
337 status = gx_widget_allocate(&widget, definition->control_block_size);
338 if (status != GX_SUCCESS)
339 {
340 return GX_NULL;
341 }
342 }
343 else
344 {
345 if (control == GX_NULL)
346 {
347 return GX_NULL;
348 }
349 widget = (GX_WIDGET *) (control + definition->control_block_offset);
350 }
351
352 status = definition->create_function(definition, widget, parent);
353
354 if(list_count < list_total_count)
355 {
356 gx_menu_insert((GX_MENU *)parent, widget);
357 ((GX_MENU *)parent)->gx_menu_list_total_count--;
358 list_count++;
359 }
360
361 if (status == GX_SUCCESS)
362 {
363 if (definition->widget_type != GX_TYPE_TEMPLATE)
364 {
365 #if defined(GUIX_5_4_0_COMPATIBILITY)
366 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
367 #else
368 gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
369 #endif
370 }
371
372 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
373 {
374 gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
375 }
376
377 if (definition->draw_function)
378 {
379 gx_widget_draw_set(widget, definition->draw_function);
380 }
381 if (definition->event_function)
382 {
383 gx_widget_event_process_set(widget, definition->event_function);
384 }
385
386 #if defined(GX_WIDGET_USER_DATA)
387 widget->gx_widget_user_data = definition->user_data;
388 #endif
389
390 if (definition->child_widget)
391 {
392 gx_studio_nested_widget_create(control, definition->child_widget, widget);
393 }
394 }
395 definition = definition->next_widget;
396 }
397 }
398 return widget;
399 }
400
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)401 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
402 {
403 GX_WIDGET *widget;
404 widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
405
406 if (parent && widget)
407 {
408 gx_widget_attach(parent, widget);
409 }
410 return widget;
411 }
412
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)413 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
414 {
415 UINT status = GX_FAILURE;
416 GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = two_displays_widget_table;
417 GX_WIDGET *widget = GX_NULL;
418
419 while(entry->widget_information)
420 {
421 if (!strcmp(name, entry->widget_information->widget_name))
422 {
423 widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
424 if (widget)
425 {
426 status = GX_SUCCESS;
427 }
428 break;
429 }
430 entry++;
431 }
432
433 if (new_widget)
434 {
435 *new_widget = widget;
436 }
437 return status;
438 }
439
440
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)441 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
442 GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
443 {
444 GX_CONST GX_THEME *theme_ptr;
445 GX_RECTANGLE size;
446
447 GX_STUDIO_DISPLAY_INFO *display_info = &two_displays_display_table[display];
448
449
450 /* create the requested display */
451
452 gx_display_create(display_info->display,
453 display_info->name,
454 driver,
455 (GX_VALUE) display_info->x_resolution,
456 (GX_VALUE) display_info->y_resolution);
457
458
459 /* install the request theme */
460
461 if(display_info->theme_table)
462 {
463 theme_ptr = display_info->theme_table[theme];
464 if(theme_ptr)
465 {
466 gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
467
468 /* install the color palette if required */
469 if (display_info->display->gx_display_driver_palette_set &&
470 theme_ptr->theme_palette != NULL)
471 {
472 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
473 }
474
475 gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
476 gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
477 gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
478 gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
479 }
480 }
481
482 /* Install the language table. */
483
484 if(display_info->language_table)
485 {
486 gx_display_language_table_set_ext(display_info->display, display_info->language_table, (GX_UBYTE) display_info->language_table_size, display_info->string_table_size);
487 gx_display_active_language_set(display_info->display, language);
488 }
489
490 /* Set screen rotation angle. */
491
492 display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
493
494 /* create the canvas for this display */
495
496 gx_canvas_create(display_info->canvas,
497 display_info->canvas_name,
498 display_info->display,
499 GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
500 display_info->x_resolution,
501 display_info->y_resolution,
502 display_info->canvas_memory,
503 display_info->canvas_memory_size);
504
505 /* Create the root window for this canvas */
506
507 gx_utility_rectangle_define(&size,
508 0, 0,
509 (GX_VALUE) (display_info->x_resolution - 1),
510 (GX_VALUE) (display_info->y_resolution - 1));
511
512 gx_window_root_create(display_info->root_window,
513 display_info->name,
514 display_info->canvas, GX_STYLE_NONE, 0, &size);
515 if (return_root)
516 {
517 *return_root = display_info->root_window;
518 }
519 return GX_SUCCESS;
520 }
521 #undef GUIX_STUDIO_GENERATED_FILE
522