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

📄 pack-old.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" 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: @(#) pack-old.n 1.12 96/03/26 18:25:44'\" .so man.macros.TH pack-old n 4.0 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEpack \- Obsolete syntax for packer geometry manager.SH SYNOPSIS\fBpack after \fIsibling \fIwindow options\fR ?\fIwindow options \fR...?.sp\fBpack append \fIparent \fIwindow options\fR ?\fIwindow options \fR...?.sp\fBpack before \fIsibling \fIwindow options\fR ?\fIwindow options \fR...?.sp\fBpack unpack \fIwindow\fR.BE.SH DESCRIPTION.PP\fINote: this manual entry describes the syntax for the \fBpack\fIcommand as it existed before Tk version 3.3.Although this syntax continues to be supported for backwardcompatibility, it is obsolete and should not be used anymore.At some point in the future it may cease to be supported.\fR.PPThe packer is a geometry manager that arranges thechildren of a parent by packing them in order around the edges ofthe parent.  The first child is placed against one side ofthe window, occupying the entire span of the window along thatside.  This reduces the space remaining for other children asif the side had been moved in by the size of the first child.Then the next child is placed against one side of the remainingcavity, and so on until all children have been placed or thereis no space left in the cavity..PPThe \fBbefore\fR, \fBafter\fR, and \fBappend\fR forms of the \fBpack\fRcommand are used to insert one or more children into the packing orderfor their parent.  The \fBbefore\fR form inserts the children beforewindow \fIsibling\fR in the order;  all of the other windows must besiblings of \fIsibling\fR.  The \fBafter\fR form inserts the windowsafter \fIsibling\fR, and the \fBappend\fR form appends one or morewindows to the end of the packing order for \fIparent\fR.  If a\fIwindow\fR named in any of these commands is already packed inits parent, it is removed from its current position in the packingorder and repositioned as indicated by the command.  All of thesecommands return an empty string as result..PPThe \fBunpack\fR form of the \fBpack\fR command removes \fIwindow\fRfrom the packing order of its parent and unmaps it.  After theexecution of this command the packer will no longer manage\fIwindow\fR's geometry..PPThe placement of each child is actually a four-step process;the \fIoptions\fR argument following each \fIwindow\fR consists ofa list of one or more fields that govern the placement of thatwindow.  In the discussion below, the term \fIcavity\fR refersto the space left in a parent when a particular child is placed(i.e. all the space that wasn't claimed by earlier children inthe packing order).  The term \fIparcel\fR refers to the spaceallocated to a particular child;  this is not necessarily thesame as the child window's final geometry..PPThe first step in placing a child is to determine which side ofthe cavity it will lie against.  Any one of the following optionsmay be used to specify a side:.TP\fBtop\fRPosition the child's parcel against the top of the cavity,occupying the full width of the cavity..TP\fBbottom\fRPosition the child's parcel against the bottom of the cavity,occupying the full width of the cavity..TP\fBleft\fRPosition the child's parcel against the left side of the cavity,occupying the full height of the cavity..TP\fBright\fRPosition the child's parcel against the right side of the cavity,occupying the full height of the cavity..LPAt most one of these options should be specified for any given window.If no side is specified, then the default is \fBtop\fR..PPThe second step is to decide on a parcel for the child.  For \fBtop\fRand \fBbottom\fR windows, the desired parcel width is normally the cavitywidth and the desired parcel height is the window's requested height,as passed to \fBTk_GeometryRequest\fR. For \fBleft\fR and \fBright\fRwindows, the desired parcel height is normally the cavity height and thedesired width is the window's requested width.  However, extraspace may be requested for the window using any of the followingoptions:.TP 12\fBpadx \fInum\fRAdd \fInum\fR pixels to the window's requested width before computingthe parcel size as described above..TP 12\fBpady \fInum\fRAdd \fInum\fR pixels to the window's requested height before computingthe parcel size as described above..TP 12\fBexpand\fRThis option requests that the window's parcel absorb any extra space left overin the parent's cavity after packing all the children.The amount of space left over depends on the sizes requested by theother children, and may be zero.  If several windows have all specified\fBexpand\fR then the extra width will be divided equally among all the\fBleft\fR and \fBright\fR windows that specified \fBexpand\fR andthe extra height will be divided equally among all the \fBtop\fR and\fBbottom\fR windows that specified \fBexpand\fR..LPIf the desired width or height for a parcel is larger than the correspondingdimension of the cavity, then the cavity's dimension is used instead..PPThe third step in placing the window is to decide on the window'swidth and height.  The default is for the window to receive eitherits requested width and height or the those of the parcel, whicheveris smaller.  If the parcel is larger than the window's requestedsize, then the following options may be used to expand thewindow to partially or completely fill the parcel:.TP\fBfill\fRSet the window's size to equal the parcel size..TP\fBfillx\fRIncrease the window's width to equal the parcel's width, but retainthe window's requested height..TP\fBfilly\fRIncrease the window's height to equal the parcel's height, but retainthe window's requested width..PPThe last step is to decide the window's location within its parcel.If the window's size equals the parcel's size, then the window simplyfills the entire parcel.  If the parcel is larger than the window,then one ofthe following options may be used to specify where the window shouldbe positioned within its parcel:.TP 15\fBframe center\fRCenter the window in its parcel.  This is the default if no framingoption is specified..TP 15\fBframe n\fRPosition the window with its top edge centered on the top edge ofthe parcel..TP 15\fBframe ne\fRPosition the window with its upper-right corner at the upper-right cornerof the parcel..TP 15\fBframe e\fRPosition the window with its right edge centered on the right edge ofthe parcel..TP 15\fBframe se\fRPosition the window with its lower-right corner at the lower-right cornerof the parcel..TP 15\fBframe s\fRPosition the window with its bottom edge centered on the bottom edge ofthe parcel..TP 15\fBframe sw\fRPosition the window with its lower-left corner at the lower-left cornerof the parcel..TP 15\fBframe w\fRPosition the window with its left edge centered on the left edge ofthe parcel..TP 15\fBframe nw\fRPosition the window with its upper-left corner at the upper-left cornerof the parcel..PPThe packer manages the mapped/unmapped state of all the packedchildren windows.  It automatically maps the windows when it packsthem, and it unmaps any windows for which there was no space leftin the cavity..PPThe packer makes geometry requests on behalf of the parent windowsit manages.  For each parent window it requests a size large enoughto accommodate all the options specified by all the packed children,such that zero space would be leftover for \fBexpand\fR options..SH KEYWORDSgeometry manager, location, packer, parcel, size

⌨️ 快捷键说明

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