Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1428:7826031d48ce | 1429:fbaec6e5df63 |
---|---|
2940 void API dw_window_set_size(HWND handle, ULONG width, ULONG height) | 2940 void API dw_window_set_size(HWND handle, ULONG width, ULONG height) |
2941 { | 2941 { |
2942 } | 2942 } |
2943 | 2943 |
2944 /* | 2944 /* |
2945 * Gets the size the system thinks the widget should be. | |
2946 * Parameters: | |
2947 * handle: Window (widget) handle of the item to query. | |
2948 * width: Width in pixels of the item or NULL if not needed. | |
2949 * height: Height in pixels of the item or NULL if not needed. | |
2950 */ | |
2951 void API dw_window_get_preferred_size(HWND handle, int *width, int *height) | |
2952 { | |
2953 } | |
2954 | |
2955 /* | |
2945 * Sets the position of a given window (widget). | 2956 * Sets the position of a given window (widget). |
2946 * Parameters: | 2957 * Parameters: |
2947 * handle: Window (widget) handle. | 2958 * handle: Window (widget) handle. |
2948 * x: X location from the bottom left. | 2959 * x: X location from the bottom left. |
2949 * y: Y location from the bottom left. | 2960 * y: Y location from the bottom left. |