commit e90ffeeb671d5c93fba397f10cc041eb040471ec parent 4f43c25d634638c095ccfb98b479dfbee034c45a Author: pancake <pancake@nopcode.org> Date: Mon, 19 Apr 2010 14:54:14 +0200 some more changes Diffstat:
swk.h | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/swk.h b/swk.h @@ -41,22 +41,22 @@ void (*SwkEventCallback)(SwkEvent *e); struct SwkBox { Rect r; SwkEventCallback *e; - union { - char *text; - void *aux; - } data; + char *text; + void *data; }; typedef struct { Rect r; SwkBox *boxes; + char *title; } SwkWindow; void swk_init(); +void swk_deinit(); +int swk_loop(SwkWindow *w); +int swk_event(SwkWindow *w); void swk_button(SwkEvent *e); void swk_label(SwkEvent *e); -void swk_text(SwkEvent *e); - -void swk_deinit(); +void swk_entry(SwkEvent *e);