# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1324404313 0 # Node ID e0212278f794818d76ebb4f663115531bba009d1 # Parent cd3d7e341467af0d9621d11e16ab226379e68c3b Added dw_window_set_gravity() to the template and readme. diff -r cd3d7e341467 -r e0212278f794 readme --- a/readme Tue Dec 20 16:31:04 2011 +0000 +++ b/readme Tue Dec 20 18:05:13 2011 +0000 @@ -38,6 +38,9 @@ Added support for -1 size parameter to the dw_box_pack*() functions to automatically figure out a suggested size for many controls. Added automatic window redraw support for OS/2, Windows and Mac. +Added dw_window_set_gravity() for enhanced window placement. +Added automatic window border detection on GTK. + This eliminates the need for the DW_BORDER_* environment variables. Added Open Watcom compiler support for OS/2. Added pseudo transparent background widget support on Windows and OS/2. If you set the background color of a widget to DW_RGB_TRANSPARENT... diff -r cd3d7e341467 -r e0212278f794 template/dw.c --- a/template/dw.c Tue Dec 20 16:31:04 2011 +0000 +++ b/template/dw.c Tue Dec 20 18:05:13 2011 +0000 @@ -2781,6 +2781,18 @@ } /* + * Sets the gravity of a given window (widget). + * Gravity controls which corner of the screen and window the position is relative to. + * Parameters: + * handle: Window (widget) handle. + * horz: DW_GRAV_LEFT (default), DW_GRAV_RIGHT or DW_GRAV_CENTER. + * vert: DW_GRAV_TOP (default), DW_GRAV_BOTTOM or DW_GRAV_CENTER. + */ +void API dw_window_set_gravity(HWND handle, int horz, int vert) +{ +} + +/* * Sets the position of a given window (widget). * Parameters: * handle: Window (widget) handle.