1 /* This is a small demo of the high-performance GUIX graphics framework. */
2
3 #include <stdio.h>
4 #include "gx_api.h"
5 #include "focus_management_resources.h"
6 #include "focus_management_specifications.h"
7
8 /* Define the ThreadX demo thread control block and stack. */
9
10 GX_WINDOW_ROOT *root;
11
12 VOID start_guix(void);
13 extern UINT win32_graphics_driver_setup_24xrgb(GX_DISPLAY* display);
14
main(int argc,char ** argv)15 int main(int argc, char ** argv)
16 {
17 tx_kernel_enter();
18 return(0);
19 }
20
tx_application_define(void * first_unused_memory)21 VOID tx_application_define(void *first_unused_memory)
22 {
23 start_guix();
24 }
25
start_guix(void)26 VOID start_guix(void)
27 {
28 /* Initialize GUIX. */
29 gx_system_initialize();
30
31 gx_studio_display_configure(PRIMARY, win32_graphics_driver_setup_24xrgb,
32 LANGUAGE_ENGLISH, PRIMARY_THEME_1, &root);
33
34 /* create the main screen */
35 gx_studio_named_widget_create("main_screen", (GX_WIDGET *) root, GX_NULL);
36
37 gx_widget_status_add(&main_screen.main_screen_window, GX_STATUS_DEFAULT_FOCUS);
38 gx_widget_status_add(&main_screen.main_screen_prompt_3, GX_STATUS_DEFAULT_FOCUS);
39
40 /* Show the root window to make it and patients screen visible. */
41 gx_widget_show(root);
42
43 /* start the GUIX thread */
44 gx_system_start();
45 }