@@ -1,7 +1,8 @@ /* * Copyright (c) 2011, 2012, Jonathan Schleifer + * Copyright (c) 2011, 2012, Dillon Aumiller * * https://webkeks.org/hg/objgui/ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -19,11 +20,14 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifdef OG_GTK -# include +#i nclude +#endif +#ifdef OG_W32 +# include #endif #import @interface OGWidget: OFObject @@ -30,12 +34,20 @@ { @public #ifdef OG_GTK GtkWidget *widget; #endif +#ifdef OG_W32 + HWND widget; +#endif } - (void)show; - (void)hide; @end +#ifdef OG_GTK extern void og_destroy(GtkWidget*, OGWidget*); +#endif +#ifdef OG_W32 +extern void og_destroy(HWND widget, OGWidget *object); +#endif