changeset 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 cd3d7e341467
children d76a36c9cff1
files readme template/dw.c
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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...
--- 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.