@@ -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,12 +20,29 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "OGWidget.h" + +#ifdef OG_W32 +typedef struct s_OGBoxChild +{ + HWND hwnd; + BOOL expand; + BOOL fill; + int padding; + int originalSize; + float currentSize; + struct s_OGBoxChild *next; +} OGBoxChild; +#endif @interface OGBox: OGWidget +#ifdef OG_W32 +{ OGBoxChild *firstBorn; } +- (void)resizeChildren; +#endif + box; - (void)appendChild: (OGWidget*)child expand: (BOOL)expand fill: (BOOL)fill padding: (float)padding;