Mercurial > dwindows
diff template/dw.c @ 1429:fbaec6e5df63
Added dw_window_get_preferred_size() which attempts to determine the size the system wants for the widget. This is useful when creating nice looking layouts.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 04 Dec 2011 20:11:38 +0000 |
parents | 0512fbb08abf |
children | b9577d1f0411 |
line wrap: on
line diff
--- a/template/dw.c Sun Dec 04 19:13:10 2011 +0000 +++ b/template/dw.c Sun Dec 04 20:11:38 2011 +0000 @@ -2942,6 +2942,17 @@ } /* + * Gets the size the system thinks the widget should be. + * Parameters: + * handle: Window (widget) handle of the item to query. + * width: Width in pixels of the item or NULL if not needed. + * height: Height in pixels of the item or NULL if not needed. + */ +void API dw_window_get_preferred_size(HWND handle, int *width, int *height) +{ +} + +/* * Sets the position of a given window (widget). * Parameters: * handle: Window (widget) handle.