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

📄 grid.n

📁 linux系统下的音频通信
💻 N
📖 第 1 页 / 共 2 页
字号:
\fImaster\fR is the slave's master..TP\fBgrid location \fImaster x y\fRGiven  \fIx\fP and \fIy\fP values in screen units relative to the master window, the column and row number at that \fIx\fP and \fIy\fP location is returned.For locations that are above or to the left of the grid, \fB-1\fP is returned..TP\fBgrid propagate \fImaster\fR ?\fIboolean\fR?If \fIboolean\fR has a true boolean value such as \fB1\fR or \fBon\fRthen propagation is enabled for \fImaster\fR, which must be a windowname (see ``GEOMETRY PROPAGATION'' below).If \fIboolean\fR has a false boolean value then propagation isdisabled for \fImaster\fR.In either of these cases an empty string is returned.If \fIboolean\fR is omitted then the command returns \fB0\fR or\fB1\fR to indicate whether propagation is currently enabledfor \fImaster\fR.Propagation is enabled by default..TP\fBgrid rowconfigure \fImaster index \fR?\fI\-option value...\fR?Query or set the row properties of the \fIindex\fP row of the geometry master, \fImaster\fP.The valid options are \fB\-minsize\fP, \fB\-weight\fP and \fB-pad\fP..VSIf one or more options are provided, then \fIindex\fP may be given as a list of row indeces to which the configuration options will operate on..VEThe \fB\-minsize\fP option sets the minimum size, in screen units,that will be permitted for this row.The \fB\-weight\fP option (an integer value)sets the relative weight for apportioningany extra spaces amongrows.A weight of zero (0) indicates the row will not deviate from its requestedsize.  A row whose weight is two will grow at twice the rate as a rowof weight one when extra space is allocated to the layout.The \fB-pad\fP option specifies the number of screen units that will beadded to the largest window contained completely in that row when thegrid geometry manager requests a size from the containing window.If only an option is specified, with no value,the current value of that option is returned.If only the master window and index is specified, all the current settingsare returned in an list of "-option value" pairs..TP\fBgrid remove \fIslave \fR?\fIslave ...\fR?Removes each of the \fIslave\fRs from grid for itsmaster and unmaps their windows.The slaves will no longer be managed by the grid geometry manager.However, the configuration options for that window are remembered,so that if theslave is managed once more by the grid geometry manager, the previousvalues are retained..TP\fBgrid size \fImaster\fRReturns the size of the grid (in columns then rows) for \fImaster\fP.The size is determined either by the \fIslave\fP occupying the largestrow or column, or the largest column or row with a \fBminsize\fP, \fBweight\fP, or \fBpad\fP that is non-zero..TP\fBgrid slaves \fImaster\fR ?\fI\-option value\fR?If no options are supplied, a list of all of the slaves in \fImaster\fRare returned, most recently manages first.\fIOption\fP can be either \fB\-row\fP or \fB\-column\fP whichcauses only the slaves in the row (or column) specified by \fIvalue\fPto be returned..SH "RELATIVE PLACEMENT".PPThe \fBgrid\fP command contains a limited set of capabilities thatpermit layouts to be created without specifying the row and column information for each slave.  This permits slaves to be rearranged, added, or removed without the need to explicitly specify row andcolumn information.When no column or row information is specified for a \fIslave\fP, default values are chosen for\fBcolumn\fP, \fBrow\fP, \fBcolumnspan\fP and \fBrowspan\fPat the time the \fIslave\fP is managed. The values are chosenbased upon the current layout of the grid, the position of the \fIslave\fPrelative to other \fIslave\fPs in the same grid command, and the presenceof the characters \fB\-\fP, \fB^\fP, and \fB^\fP in \fBgrid\fPcommand where \fIslave\fP names are normally expected..RS.TP\fB\-\fPThis increases the columnspan of the \fIslave\fP to the left.  Several\fB\-\fP's in a row will successively increase the columnspan. A \fB\-\fPmay not follow a \fB^\fP or a \fBx\fP..TP\fBx\fPThis leaves an empty column between the \fIslave\fP on the left andthe \fIslave\fP on the right..TP\fB^\fPThis extends the \fBrowspan\fP of the \fIslave\fP above the \fB^\fP'sin the grid.  The number of \fB^\fP's in a row must match the number ofcolumns spanned by the \fIslave\fP above it..RE.SH "THE GRID ALGORITHM".PPThe grid geometry manager lays out its slaves in three steps.In the first step, the minimum size needed to fit all of the slavesis computed, then (if propagation is turned on), a request is madeof the master window to become that size.In the second step, the requested size is compared against the actual sizeof the master.  If the sizes are different, then spaces is added to or takenaway from the layout as needed.For the final step, each slave is positioned in its row(s) and column(s)based on the setting of its \fIsticky\fP flag..PPTo compute the minimum size of a layout, the grid geometry managerfirst looks at all slaves whose columnspan and rowspan values are one,and computes the nominal size of each row or column to be either the\fIminsize\fP for that row or column, or the sum of the \fIpad\fPdingplus the size of the largest slave, whichever is greater.  Then theslaves whose rowspans or columnspans are greater than one areexamined.  If a group of rows or columns need to be increased in sizein order to accommodate these slaves, then extra space is added to eachrow or column in the group according to its \fIweight\fP.  For eachgroup whose weights are all zero, the additional space is apportionedequally..PPFor masters whose size is larger than the requested layout, the additionalspace is apportioned according to the row and column weights.  If all ofthe weights are zero, the layout is centered within its master.For masters whose size is smaller than the requested layout, space is takenaway from columns and rows according to their weights.  However, once a column or row shrinks to its minsize, its weight is taken to be zero.If more space needs to be removed from a layout than would be permitted, aswhen all the rows or columns are at there minimum sizes, the layout isclipped on the bottom and right..SH "GEOMETRY PROPAGATION".PPThe grid geometry manager normally computes how large a master must be tojust exactly meet the needs of its slaves, and it sets therequested width and height of the master to these dimensions.This causes geometry information to propagate up through awindow hierarchy to a top-level window so that the entiresub-tree sizes itself to fit the needs of the leaf windows.However, the \fBgrid propagate\fR command may be used toturn off propagation for one or more masters.If propagation is disabled then grid will not setthe requested width and height of the master window.This may be useful if, for example, you wish for a masterwindow to have a fixed size that you specify..SH "RESTRICTIONS ON MASTER WINDOWS".PPThe master for each slave must either be the slave's parent(the default) or a descendant of the slave's parent.This restriction is necessary to guarantee that theslave can be placed over any part of its master that isvisible without danger of the slave being clipped by its parent.In addition, all slaves in one call to \fBgrid\fP must have the same master..SH "STACKING ORDER".PPIf the master for a slave is not its parent then you must make surethat the slave is higher in the stacking order than the master.Otherwise the master will obscure the slave and it will appear asif the slave hasn't been managed correctly.The easiest way to make sure the slave is higher than the master isto create the master window first:  the most recently created windowwill be highest in the stacking order..SH CREDITS.PPThe \fBgrid\fP command is based on ideas taken from the \fIGridBag\fPgeometry manager written by Doug. Stein, and the \fBblt_table\fR geometrymanager, written by George Howlett..SH KEYWORDSgeometry manager, location, grid, cell, propagation, size, pack

⌨️ 快捷键说明

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