X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Frtk_impl.h;h=34afd0f297eadf302d068bf321b4a4069993bfd0;hb=3bf187fe037df34459f04bf4e625f38afb80fcf8;hp=d9ee120318f24c7a74649223bd4b3f5390bd1278;hpb=c4a043b45ff38d532579cfdf0b6a7e3f50527559;p=retroray diff --git a/src/rtk_impl.h b/src/rtk_impl.h index d9ee120..34afd0f 100644 --- a/src/rtk_impl.h +++ b/src/rtk_impl.h @@ -2,12 +2,14 @@ #define RTK_IMPL_H_ #include -#include "inttypes.h" +#include "sizeint.h" #include "rtk.h" enum { VISIBLE = 0x001, ENABLED = 0x002, + HOVER = 0x010, + PRESS = 0x020, GEOMCHG = 0x100, DIRTY = 0x200 }; @@ -31,6 +33,7 @@ typedef struct rtk_window { typedef struct rtk_button { rtk_any any; + int mode; rtk_icon *icon; } rtk_button; @@ -41,14 +44,6 @@ typedef union rtk_widget { rtk_button bn; } rtk_widget; -typedef struct rtk_icon { - char *name; - int width, height, scanlen; - uint32_t *pixels; - - struct rtk_icon *next; -} rtk_icon; - typedef struct rtk_iconsheet { int width, height; uint32_t *pixels;