swk

static widget kit
git clone git://git.suckless.org/swk
Log | Files | Refs | README | LICENSE

commit 4f43c25d634638c095ccfb98b479dfbee034c45a
parent ac66f86cc2920edc995e72cbcc978e7b58ebc19e
Author: Anselm R Garbe <anselm@garbe.us>
Date:   Sun, 18 Apr 2010 22:36:28 +0100

result of our discussion today
Diffstat:
swk.h | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/swk.h b/swk.h @@ -41,7 +41,10 @@ void (*SwkEventCallback)(SwkEvent *e); struct SwkBox { Rect r; SwkEventCallback *e; - void *data; + union { + char *text; + void *aux; + } data; }; typedef struct { @@ -52,5 +55,8 @@ typedef struct { void swk_init(); +void swk_button(SwkEvent *e); +void swk_label(SwkEvent *e); +void swk_text(SwkEvent *e); void swk_deinit();