1 /*
2     GUILIB:  An example GUI framework library for use with SDL
3 */
4 
5 /* These are return codes for widget event functions */
6 
7 #ifndef _GUI_status_h
8 #define _GUI_status_h
9 
10 typedef enum {
11 	GUI_QUIT,			/* Close the GUI */
12 	GUI_REDRAW,			/* The GUI needs to be redrawn */
13 	GUI_YUM,			/* The event was eaten by the widget */
14 	GUI_PASS			/* The event should be passed on */
15 } GUI_status;
16 
17 typedef enum {
18 	WIDGET_VISIBLE,
19 	WIDGET_HIDDEN,
20 	WIDGET_DELETED
21 } WIDGET_status;
22 
23 /* GUI idle function -- run when no events pending */
24 typedef GUI_status (*GUI_IdleProc)(void);
25 
26 #endif /* _GUI_status_h */
27