⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setgrid.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" 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.'\" '\" SCCS: @(#) SetGrid.3 1.11 96/08/27 13:21:33'\" .so man.macros.TH Tk_SetGrid 3 4.0 Tk "Tk Library Procedures".BS.SH NAMETk_SetGrid, Tk_UnsetGrid \- control the grid for interactive resizing.SH SYNOPSIS.nf\fB#include <tk.h>\fR.sp\fBTk_SetGrid\fR(\fItkwin, reqWidth, reqHeight, widthInc, heightInc\fR).sp\fBTk_UnsetGrid\fR(\fItkwin\fR).SH ARGUMENTS.AS Tk_Window heightInc.AP Tk_Window tkwin inToken for window..AP int reqWidth inWidth in grid units that corresponds to the pixel dimension \fItkwin\fRhas requested via \fBTk_GeometryRequest\fR..AP int reqHeight inHeight in grid units that corresponds to the pixel dimension \fItkwin\fRhas requested via \fBTk_GeometryRequest\fR..AP int widthInc inWidth of one grid unit, in pixels..AP int heightInc inHeight of one grid unit, in pixels..BE.SH DESCRIPTION.PP\fBTk_SetGrid\fR turns on gridded geometry management for \fItkwin\fR'stoplevel window and specifies the geometry of the grid.\fBTk_SetGrid\fR is typically invoked by a widget when its \fBsetGrid\fRoption is true.It restricts interactive resizing of \fItkwin\fR's toplevel window sothat the space allocated to the toplevel is equal to its requestedsize plus or minus even multiples of \fIwidthInc\fR and \fIheightInc\fR.Furthermore, the \fIreqWidth\fR and \fIreqHeight\fR values arepassed to the window manager so that it can report the window'ssize in grid units during interactive resizes.If \fItkwin\fR's configuration changes (e.g., the size of a grid unitchanges) then the widget should invoke \fBTk_SetGrid\fR again with the newinformation..PP\fBTk_UnsetGrid\fR cancels gridded geometry management for\fItkwin\fR's toplevel window..PPFor each toplevel window there can be at most one internal windowwith gridding enabled.If \fBTk_SetGrid\fR or \fBTk_UnsetGrid\fR is invoked when someother window is already controlling gridding for \fItkwin\fR'stoplevel, the calls for the new window have no effect..PPSee the \fBwm\fR manual entry for additional information on gridded geometrymanagement..SH KEYWORDSgrid, window, window manager

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -