#ifndef _GUI_H_ #define _GUI_H_ #define MAX_WIDGETS 6 struct Widget { unsigned short x1, y1, x2, y2; void (*on_press)(); // callback function }; void GUI_init(); void GUI_add_button(unsigned short left_x, unsigned short top_y, unsigned short width, unsigned short height, flash unsigned char* bitmap, void (*on_press)()); // scan the screen and execut callbacks if any void GUI_poll(); #endif