00001 #ifndef WIDGET_H 00002 #define WIDGET_H 00003 00004 struct widget 00005 { 00006 int x, y, width, height, focused; 00007 void (*draw)(struct widget *this); 00008 void (*key)(struct widget *this, int key); 00009 const char *label; 00010 void *content; 00011 }; 00012 00013 #endif 00014
1.3.6