1 /* This is a small demo of the high-performance GUIX graphics framework. */ 2 3 #include <stdio.h> 4 #include "gx_api.h" 5 6 #include "demo_guix_industrial_resources.h" 7 #include "demo_guix_industrial_specifications.h" 8 9 #define ANIMATION_NONE 0 10 #define ANIMATION_ACTIVE 1 11 12 13 extern SEQUENCE_NUMBER_CONTROL_BLOCK sequence_number; 14 extern COMPLETE_WINDOW_CONTROL_BLOCK complete_window; 15 extern SEQUENCE_WINDOW_CONTROL_BLOCK sequence_window; 16 extern MAIN_SCREEN_CONTROL_BLOCK main_screen; 17 18 VOID *memory_allocate(ULONG size); 19 VOID memory_free(VOID *mem); 20 21 VOID button_indicator_attach(GX_PIXELMAP_BUTTON *button); 22 VOID screen_toggle_animation_start(GX_WINDOW *show, GX_WINDOW *hide); 23 24 VOID sequence_window_init(); 25 VOID sequence_animation_start(); 26 VOID sequence_animation_update(); 27 VOID sequence_animation_stop(); 28 29 VOID complete_window_timer_start(); 30 VOID complete_window_timer_stop(); 31 VOID complete_window_init(); 32 33 UINT string_length_get(GX_CONST GX_CHAR* input_string, UINT max_string_length);