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

📄 wm.n

📁 linux系统下的音频通信
💻 N
📖 第 1 页 / 共 2 页
字号:
'\"'\" Copyright (c) 1991-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: @(#) wm.n 1.37 96/10/14 11:07:58'\" .so man.macros.TH wm n 4.3 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEwm \- Communicate with window manager.SH SYNOPSIS\fBwm\fR \fIoption window \fR?\fIargs\fR?.BE.SH DESCRIPTION.PPThe \fBwm\fR command is used to interact with window managers inorder to control such things as the title for a window, its geometry,or the increments in terms of which it may be resized.  The \fBwm\fRcommand can take any of a number of different forms, depending onthe \fIoption\fR argument.  All of the forms expect at least oneadditional argument, \fIwindow\fR, which must be the path name of atop-level window..PPThe legal forms for the \fBwm\fR command are:.TP\fBwm aspect \fIwindow\fR ?\fIminNumer minDenom maxNumer maxDenom\fR?If \fIminNumer\fR, \fIminDenom\fR, \fImaxNumer\fR, and \fImaxDenom\fRare all specified, then they will be passed to the window managerand the window manager should use them to enforce a range ofacceptable aspect ratios for \fIwindow\fR.  The aspect ratio of\fIwindow\fR (width/length) will be constrained to liebetween \fIminNumer\fR/\fIminDenom\fR and \fImaxNumer\fR/\fImaxDenom\fR.If \fIminNumer\fR etc. are all specified as empty strings, thenany existing aspect ratio restrictions are removed.If \fIminNumer\fR etc. are specified, then the command returns anempty string.  Otherwise, it returnsa Tcl list containing four elements, which are the current valuesof \fIminNumer\fR, \fIminDenom\fR, \fImaxNumer\fR, and \fImaxDenom\fR(if no aspect restrictions are in effect, then an empty string isreturned)..TP\fBwm client \fIwindow\fR ?\fIname\fR?If \fIname\fR is specified, this command stores \fIname\fR (whichshould be the name ofthe host on which the application is executing) in \fIwindow\fR's\fBWM_CLIENT_MACHINE\fR property for use by the window manager orsession manager.The command returns an empty string in this case.If \fIname\fR isn't specified, the command returns the last nameset in a \fBwm client\fR command for \fIwindow\fR.If \fIname\fR is specified as an empty string, the command deletes the\fBWM_CLIENT_MACHINE\fR property from \fIwindow\fR..TP\fBwm colormapwindows \fIwindow\fR ?\fIwindowList\fR?This command is used to manipulate the \fBWM_COLORMAP_WINDOWS\fRproperty, which provides information to the window managers aboutwindows that have private colormaps.If \fIwindowList\fR isn't specified, the command returns a listwhose elements are the names of the windows in the \fBWM_COLORMAP_WINDOWS\fRproperty.If \fIwindowList\fR is specified, it consists of a list of windowpath names;  the command overwrites the \fBWM_COLORMAP_WINDOWS\fRproperty with the given windows and returns an empty string.The \fBWM_COLORMAP_WINDOWS\fR property should normally contain alist of the internal windows within \fIwindow\fR whose colormaps differfrom their parents.The order of the windows in the property indicates a priority order:the window manager will attempt to install as many colormaps as possiblefrom the head of this list when \fIwindow\fR gets the colormap focus.If \fIwindow\fR is not included among the windows in \fIwindowList\fR,Tk implicitly adds it at the end of the \fBWM_COLORMAP_WINDOWS\fRproperty, so that its colormap is lowest in priority.If \fBwm colormapwindows\fR is not invoked, Tk will automatically setthe property for each top-level window to all the internal windowswhose colormaps differ from their parents, followed by the top-levelitself;  the order of the internal windows is undefined.See the ICCCM documentation for more information on the\fBWM_COLORMAP_WINDOWS\fR property..TP\fBwm command \fIwindow\fR ?\fIvalue\fR?If \fIvalue\fR is specified, this command stores \fIvalue\fR in \fIwindow\fR's\fBWM_COMMAND\fR property for use by the window manager orsession manager and returns an empty string.\fIValue\fR must have proper list structure;  the elements shouldcontain the words of the command used to invoke the application.If \fIvalue\fR isn't specified then the command returns the last valueset in a \fBwm command\fR command for \fIwindow\fR.If \fIvalue\fR is specified as an empty string, the commanddeletes the \fBWM_COMMAND\fR property from \fIwindow\fR..TP\fBwm deiconify \fIwindow\fRArrange for \fIwindow\fR to be displayed in normal (non-iconified) form.This is done by mapping the window.  If the window has never beenmapped then this command will not map the window, but it will ensurethat when the window is first mapped it will be displayedin de-iconified form.  Returns an empty string..TP\fBwm focusmodel \fIwindow\fR ?\fBactive\fR|\fBpassive\fR?If \fBactive\fR or \fBpassive\fR is supplied as an optional argumentto the command, then it specifies the focus model for \fIwindow\fR.In this case the command returns an empty string.  If no additionalargument is supplied, then the command returns the current focusmodel for \fIwindow\fR.An \fBactive\fR focus model means that \fIwindow\fR will claim theinput focus for itself or its descendants, even at times whenthe focus is currently in some other application.  \fBPassive\fR means that\fIwindow\fR will never claim the focus for itself:  the window managershould give the focus to \fIwindow\fR at appropriate times.  However,once the focus has been given to \fIwindow\fR or one of its descendants,the application may re-assign the focus among \fIwindow\fR's descendants.The focus model defaults to \fBpassive\fR, and Tk's \fBfocus\fR commandassumes a passive model of focusing..TP\fBwm frame \fIwindow\fR.VSIf \fIwindow\fR has been reparented by the window manager into adecorative frame, the command returns the platform specific windowidentifier for the outermost frame that contains \fIwindow\fR (thewindow whose parent is the root or virtual root).  If \fIwindow\fRhasn't been reparented by the window manager then the command returnsthe platform specific window identifier for \fIwindow\fR..VE.TP\fBwm geometry \fIwindow\fR ?\fInewGeometry\fR?If \fInewGeometry\fR is specified, then the geometry of \fIwindow\fRis changed and an empty string is returned.  Otherwise the currentgeometry for \fIwindow\fR is returned (this is the most recentgeometry specified either by manual resizing orin a \fBwm geometry\fR command).  \fINewGeometry\fR hasthe form \fB=\fIwidth\fBx\fIheight\fB\(+-\fIx\fB\(+-\fIy\fR, whereany of \fB=\fR, \fIwidth\fBx\fIheight\fR, or \fB\(+-\fIx\fB\(+-\fIy\fRmay be omitted.  \fIWidth\fR and \fIheight\fR are positive integersspecifying the desired dimensions of \fIwindow\fR.  If \fIwindow\fRis gridded (see GRIDDED GEOMETRY MANAGEMENT below) then the dimensionsare specified in grid units;  otherwise they are specified in pixelunits.  \fIX\fR and \fIy\fR specify the desired location of\fIwindow\fR on the screen, in pixels.If \fIx\fR is preceded by \fB+\fR, it specifiesthe number of pixels between the left edge of the screen and the leftedge of \fIwindow\fR's border;  if preceded by \fB\-\fR then\fIx\fR specifies the number of pixelsbetween the right edge of the screen and the right edge of \fIwindow\fR'sborder.  If \fIy\fR is preceded by \fB+\fR then it specifies thenumber of pixels between the top of the screen and the topof \fIwindow\fR's border;  if \fIy\fR is preceded by \fB\-\fR thenit specifies the number of pixels between the bottom of \fIwindow\fR'sborder and the bottom of the screen.If \fInewGeometry\fR is specified as an empty string then anyexisting user-specified geometry for \fIwindow\fR is cancelled, andthe window will revert to the size requested internally by itswidgets..TP\fBwm grid \fIwindow\fR ?\fIbaseWidth baseHeight widthInc heightInc\fR?This command indicates that \fIwindow\fR is to be managed as agridded window.It also specifies the relationship between grid units and pixel units.\fIBaseWidth\fR and \fIbaseHeight\fR specify the number of gridunits corresponding to the pixel dimensions requested internallyby \fIwindow\fR using \fBTk_GeometryRequest\fR.  \fIWidthInc\fRand \fIheightInc\fR specify the number of pixels in each horizontaland vertical grid unit.These four values determine a range of acceptable sizes for\fIwindow\fR, corresponding to grid-based widths and heightsthat are non-negative integers.Tk will pass this information to the window manager;  duringmanual resizing, the window manager will restrict the window's sizeto one of these acceptable sizes.Furthermore, during manual resizing the window manager will displaythe window's current size in terms of grid units rather than pixels.If \fIbaseWidth\fR etc. are all specified as empty strings, then\fIwindow\fR will no longer be managed as a gridded window.  If\fIbaseWidth\fR etc. are specified then the return value is anempty string.Otherwise the return value is a Tcl list containingfour elements corresponding to the current \fIbaseWidth\fR,\fIbaseHeight\fR, \fIwidthInc\fR, and \fIheightInc\fR;  if\fIwindow\fR is not currently gridded, then an empty stringis returned.Note: this command should not be needed very often, since the\fBTk_SetGrid\fR library procedure and the \fBsetGrid\fR optionprovide easier access to the same functionality..TP\fBwm group \fIwindow\fR ?\fIpathName\fR?If \fIpathName\fR is specified, it gives the path name for the leader ofa group of related windows.  The window manager may use this information,for example, to unmap all of the windows in a group when the group'sleader is iconified.  \fIPathName\fR may be specified as an empty string toremove \fIwindow\fR from any group association.  If \fIpathName\fR isspecified then the command returns an empty string;  otherwise itreturns the path name of \fIwindow\fR's current group leader, or an emptystring if \fIwindow\fR isn't part of any group..TP\fBwm iconbitmap \fIwindow\fR ?\fIbitmap\fR?If \fIbitmap\fR is specified, then it names a bitmap in the standardforms accepted by Tk (see the \fBTk_GetBitmap\fR manual entry for details).This bitmap is passed to the window manager to be displayed in\fIwindow\fR's icon, and the command returns an empty string.  Ifan empty string is specified for \fIbitmap\fR, then any current iconbitmap is cancelled for \fIwindow\fR.If \fIbitmap\fR is specified then the command returns an empty string.Otherwise it returns the name ofthe current icon bitmap associated with \fIwindow\fR, or an emptystring if \fIwindow\fR has no icon bitmap..TP\fBwm iconify \fIwindow\fRArrange for \fIwindow\fR to be iconified.  It \fIwindow\fR hasn'tyet been mapped for the first time, this command will arrange forit to appear in the iconified state when it is eventually mapped..TP\fBwm iconmask \fIwindow\fR ?\fIbitmap\fR?If \fIbitmap\fR is specified, then it names a bitmap in the standardforms accepted by Tk (see the \fBTk_GetBitmap\fR manual entry for details).This bitmap is passed to the window manager to be used as a maskin conjunction with the \fBiconbitmap\fR option:  where the maskhas zeroes no icon will be displayed;  where it has ones, the bitsfrom the icon bitmap will be displayed.  Ifan empty string is specified for \fIbitmap\fR then any current iconmask is cancelled for \fIwindow\fR (this is equivalent to specifyinga bitmap of all ones).  If \fIbitmap\fR is specifiedthen the command returns an empty string.  Otherwise itreturns the name of the current icon mask associated with\fIwindow\fR, or an empty string if no mask is in effect..TP\fBwm iconname \fIwindow\fR ?\fInewName\fR?If \fInewName\fR is specified, then it is passed to the windowmanager;  the window manager should display \fInewName\fR insidethe icon associated with \fIwindow\fR.  In this case an emptystring is returned as result.  If \fInewName\fR isn't specifiedthen the command returns the current icon name for \fIwindow\fR,or an empty string if no icon name has been specified (in thiscase the window manager will normally display the window's title,as specified with the \fBwm title\fR command)..TP\fBwm iconposition \fIwindow\fR ?\fIx y\fR?If \fIx\fR and \fIy\fR are specified, they are passed to the windowmanager as a hint about where to position the icon for \fIwindow\fR.In this case an empty string is returned.  If \fIx\fR and \fIy\fR arespecified as empty strings then any existing icon position hint is cancelled.If neither \fIx\fR nor \fIy\fR is specified, then the command returnsa Tcl list containing two values, which are the current icon positionhints (if no hints are in effect then an empty string is returned)..TP\fBwm iconwindow \fIwindow\fR ?\fIpathName\fR?If \fIpathName\fR is specified, it is the path name for a window touse as icon for \fIwindow\fR: when \fIwindow\fR is iconified then\fIpathName\fR will be mapped to serve as icon, and when \fIwindow\fR

⌨️ 快捷键说明

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