# Copyright (c) 1990-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # =head1 NAME Tk_SetGrid, Tk_UnsetGrid - control the grid for interactive resizing =for category C Programming =head1 SYNOPSIS B<#include Etk.hE> B(I) B(I) =head1 ARGUMENTS =over 4 =item Tk_Window tkwin (in) Token for window. =item int reqWidth (in) Width in grid units that corresponds to the pixel dimension I has requested via B. =item int reqHeight (in) Height in grid units that corresponds to the pixel dimension I has requested via B. =item int widthInc (in) Width of one grid unit, in pixels. =item int heightInc (in) Height of one grid unit, in pixels. =back =head1 DESCRIPTION B turns on gridded geometry management for I's toplevel window and specifies the geometry of the grid. B is typically invoked by a widget when its B option is true. It restricts interactive resizing of I's toplevel window so that the space allocated to the toplevel is equal to its requested size plus or minus even multiples of I and I. Furthermore, the I and I values are passed to the window manager so that it can report the window's size in grid units during interactive resizes. If I's configuration changes (e.g., the size of a grid unit changes) then the widget should invoke B again with the new information. B cancels gridded geometry management for I's toplevel window. For each toplevel window there can be at most one internal window with gridding enabled. If B or B is invoked when some other window is already controlling gridding for I's toplevel, the calls for the new window have no effect. See the B documentation for additional information on gridded geometry management. =head1 KEYWORDS grid, window, window manager