/* main example code 
The main function will create the widget GUI, and display the widgets to the screen. It will then enter a message loop converting touch events from the screen into touch events for the Widget Toolkit module.  */
int main(void)
/* main example code 
The main function will create the widget GUI, and display the widgets to the screen. It will then enter a message loop converting touch events from the screen into touch events for the Widget Toolkit module.  */
int main(void)
{
	board_init();
	sysclk_init();
	membag_init();
	gfx_init();
	touch_interface_init();
	win_init();
	setup_gui_root_window();
	if (app_widget_launch() == false) {
		show_out_of_memory_error();
		for (;;);
	}
	while (true) {
		struct win_pointer_event win_touch_event;
		while (touch_interface_read(&win_touch_event)) {
			win_queue_pointer_event(&win_touch_event);
		}
		win_process_events();
	}
}