Mercurial > dwindows
comparison template/dw.c @ 1475:e0212278f794
Added dw_window_set_gravity() to the template and readme.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 20 Dec 2011 18:05:13 +0000 |
parents | b9577d1f0411 |
children | 4a9c574d5c17 |
comparison
equal
deleted
inserted
replaced
1474:cd3d7e341467 | 1475:e0212278f794 |
---|---|
2779 void API dw_window_get_preferred_size(HWND handle, int *width, int *height) | 2779 void API dw_window_get_preferred_size(HWND handle, int *width, int *height) |
2780 { | 2780 { |
2781 } | 2781 } |
2782 | 2782 |
2783 /* | 2783 /* |
2784 * Sets the gravity of a given window (widget). | |
2785 * Gravity controls which corner of the screen and window the position is relative to. | |
2786 * Parameters: | |
2787 * handle: Window (widget) handle. | |
2788 * horz: DW_GRAV_LEFT (default), DW_GRAV_RIGHT or DW_GRAV_CENTER. | |
2789 * vert: DW_GRAV_TOP (default), DW_GRAV_BOTTOM or DW_GRAV_CENTER. | |
2790 */ | |
2791 void API dw_window_set_gravity(HWND handle, int horz, int vert) | |
2792 { | |
2793 } | |
2794 | |
2795 /* | |
2784 * Sets the position of a given window (widget). | 2796 * Sets the position of a given window (widget). |
2785 * Parameters: | 2797 * Parameters: |
2786 * handle: Window (widget) handle. | 2798 * handle: Window (widget) handle. |
2787 * x: X location from the bottom left. | 2799 * x: X location from the bottom left. |
2788 * y: Y location from the bottom left. | 2800 * y: Y location from the bottom left. |