11 struct wt_widget *parent;
12 struct wt_widget **child; /* dynamic array */
13 int num_child, max_child;
16 wt_callback_func cb[WT_NUM_CALLBACKS];
17 void *cbcls[WT_NUM_CALLBACKS];
19 void (*draw)(struct wt_widget *w);
20 void (*click)(struct wt_widget *w);
21 void (*keypress)(struct wt_widget *w, int key);
22 void (*mbutton)(struct wt_widget *w, int bn, int st, int x, int y);
23 void (*mmotion)(struct wt_widget *w, int x, int y);
26 #endif /* WIDGET_H_ */