SetGrid.3
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" 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.
- '"
- '" RCS: @(#) $Id: SetGrid.3,v 1.2 1998/09/14 18:22:53 stanton Exp $
- '"
- .so man.macros
- .TH Tk_SetGrid 3 4.0 Tk "Tk Library Procedures"
- .BS
- .SH NAME
- Tk_SetGrid, Tk_UnsetGrid - control the grid for interactive resizing
- .SH SYNOPSIS
- .nf
- fB#include <tk.h>fR
- .sp
- fBTk_SetGridfR(fItkwin, reqWidth, reqHeight, widthInc, heightIncfR)
- .sp
- fBTk_UnsetGridfR(fItkwinfR)
- .SH ARGUMENTS
- .AS Tk_Window heightInc
- .AP Tk_Window tkwin in
- Token for window.
- .AP int reqWidth in
- Width in grid units that corresponds to the pixel dimension fItkwinfR
- has requested via fBTk_GeometryRequestfR.
- .AP int reqHeight in
- Height in grid units that corresponds to the pixel dimension fItkwinfR
- has requested via fBTk_GeometryRequestfR.
- .AP int widthInc in
- Width of one grid unit, in pixels.
- .AP int heightInc in
- Height of one grid unit, in pixels.
- .BE
- .SH DESCRIPTION
- .PP
- fBTk_SetGridfR turns on gridded geometry management for fItkwinfR's
- toplevel window and specifies the geometry of the grid.
- fBTk_SetGridfR is typically invoked by a widget when its fBsetGridfR
- option is true.
- It restricts interactive resizing of fItkwinfR's toplevel window so
- that the space allocated to the toplevel is equal to its requested
- size plus or minus even multiples of fIwidthIncfR and fIheightIncfR.
- Furthermore, the fIreqWidthfR and fIreqHeightfR values are
- passed to the window manager so that it can report the window's
- size in grid units during interactive resizes.
- If fItkwinfR's configuration changes (e.g., the size of a grid unit
- changes) then the widget should invoke fBTk_SetGridfR again with the new
- information.
- .PP
- fBTk_UnsetGridfR cancels gridded geometry management for
- fItkwinfR's toplevel window.
- .PP
- For each toplevel window there can be at most one internal window
- with gridding enabled.
- If fBTk_SetGridfR or fBTk_UnsetGridfR is invoked when some
- other window is already controlling gridding for fItkwinfR's
- toplevel, the calls for the new window have no effect.
- .PP
- See the fBwmfR manual entry for additional information on gridded geometry
- management.
- .SH KEYWORDS
- grid, window, window manager