\f5pack slave ?slave ...? ?options? If the first argument to \f5pack is a window name (any value starting with ``.''), then the command is processed in the same way as \f5pack configure.
\f5pack configure slave ?slave ...? ?options? The arguments consist of the names of one or more slave windows followed by pairs of arguments that specify how to manage the slaves. See ``THE PACKER ALGORITHM'' below for details on how the options are used by the packer. The following options are supported:
\f5-after other Other must be the name of another window. Use its master as the master for the slaves, and insert the slaves just after other in the packing order.
\f5-anchor anchor Anchor must be a valid anchor position such as \f5n or \f5sw; it specifies where to position each slave in its parcel. Defaults to \f5center.
\f5-before other Other must be the name of another window. Use its master as the master for the slaves, and insert the slaves just before other in the packing order.
\f5-expand boolean Specifies whether the slaves should be expanded to consume extra space in their master. Boolean may have any proper boolean value, such as \f51 or \f5no. Defaults to 0.
\f5-fill style If a slave's parcel is larger than its requested dimensions, this option may be used to stretch the slave. Style must have one of the following values:
\f5none Give the slave its requested dimensions plus any internal padding requested with \f5-ipadx or \f5-ipady. This is the default.
\f5x Stretch the slave horizontally to fill the entire width of its parcel (except leave external padding as specified by \f5-padx).
\f5y Stretch the slave vertically to fill the entire height of its parcel (except leave external padding as specified by \f5-pady).
\f5both Stretch the slave both horizontally and vertically.
\f5-in other Insert the slave(s) at the end of the packing order for the master window given by other.
\f5-ipadx dist Dist specifies how much horizontal internal padding to leave on each side of the slave(s). Dist must be a valid screen distance, such as \f52 or \f5.5c. It defaults to 0.
\f5-ipady dist Dist specifies how much vertical internal padding to leave on each side of the slave(s). Dist defaults to 0.
\f5-padx dist Dist specifies how much horizontal external padding to leave on each side of the slave(s). Dist defaults to 0.
\f5-pady dist Dist specifies how much vertical external padding to leave on each side of the slave(s). Dist defaults to 0.
\f5-side side Specifies which side of the master the slave(s) will be packed against. Must be \f5left, \f5right, \f5top, or \f5bottom. Defaults to \f5top.
If no \f5-in, \f5-after or \f5-before option is specified then each of the slaves will be inserted at the end of the packing list for its parent unless it is already managed by the packer (in which case it will be left where it is). If one of these options is specified then all the slaves will be inserted at the specified point. If any of the slaves are already managed by the geometry manager then any unspecified options for them retain their previous values rather than receiving default values.
\f5pack forget slave ?slave ...? Removes each of the slaves from the packing order for its master and unmaps their windows. The slaves will no longer be managed by the packer.
\f5pack propagate master ?boolean? If boolean has a true boolean value such as \f51 or \f5on then propagation is enabled for master, which must be a window name (see ``GEOMETRY PROPAGATION'' below). If boolean has a false boolean value then propagation is disabled for master. In either of these cases an empty string is returned. If boolean is omitted then the command returns \f50 or \f51 to indicate whether propagation is currently enabled for master. Propagation is enabled by default.
\f5pack slaves master Returns a list of all of the slaves in the packing order for master. The order of the slaves in the list is the same as their order in the packing order. If master has no slaves then an empty string is returned.
The packer arranges the slaves for a master by scanning the packing list in order. At the time it processes each slave, a rectangular area within the master is still unallocated. This area is called the cavity; for the first slave it is the entire area of the master.
For each slave the packer carries out the following steps:
Once a given slave has been packed, the area of its parcel is subtracted from the cavity, leaving a smaller rectangular cavity for the next slave. If a slave doesn't use all of its parcel, the unused space in the parcel will not be used by subsequent slaves. If the cavity should become too small to meet the needs of a slave then the slave will be given whatever space is left in the cavity. If the cavity shrinks to zero size, then all remaining slaves on the packing list will be unmapped from the screen until the master window becomes large enough to hold them again.