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

📄 winfo.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1990-1994 The Regents of the University of California.'\" Copyright (c) 1994-1997 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: @(#) winfo.n 1.45 97/01/25 13:45:04'\" .so man.macros.TH winfo n 4.3 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEwinfo \- Return window-related information.SH SYNOPSIS\fBwinfo\fR \fIoption \fR?\fIarg arg ...\fR?.BE.SH DESCRIPTION.PPThe \fBwinfo\fR command is used to retrieve information about windowsmanaged by Tk.  It can take any of a number of different forms,depending on the \fIoption\fR argument.  The legal forms are:.TP\fBwinfo atom \fR?\fB\-displayof \fIwindow\fR? \fIname\fRReturns a decimal string giving the integer identifier for theatom whose name is \fIname\fR.  If no atom exists with the name\fIname\fR then a new one is created.If the \fB\-displayof\fR option is given then the atom is lookedup on the display of \fIwindow\fR;  otherwise it is looked up onthe display of the application's main window..TP\fBwinfo atomname \fR?\fB\-displayof \fIwindow\fR? \fIid\fRReturns the textual name for the atom whose integer identifier is\fIid\fR.If the \fB\-displayof\fR option is given then the identifier is lookedup on the display of \fIwindow\fR;  otherwise it is looked up onthe display of the application's main window.This command is the inverse of the \fBwinfo atom\fR command.It generates an error if no such atom exists..TP\fBwinfo cells \fIwindow\fRReturns a decimal string giving the number of cells in thecolor map for \fIwindow\fR..TP\fBwinfo children \fIwindow\fRReturns a list containing the path names of all the childrenof \fIwindow\fR.  The list is in stacking order, with the lowestwindow first.  Top-level windows are returned as childrenof their logical parents..TP\fBwinfo class \fIwindow\fRReturns the class name for \fIwindow\fR..TP\fBwinfo colormapfull \fIwindow\fRReturns 1 if the colormap for \fIwindow\fR is known to be full, 0otherwise.  The colormap for a window is ``known'' to be full if the lastattempt to allocate a new color on that window failed and thisapplication hasn't freed any colors in the colormap since thefailed allocation..TP\fBwinfo containing \fR?\fB\-displayof \fIwindow\fR? \fIrootX rootY\fRReturns the path name for the window containing the point givenby \fIrootX\fR and \fIrootY\fR.\fIRootX\fR and \fIrootY\fR are specified in screen units (i.e.any form acceptable to \fBTk_GetPixels\fR) in the coordinatesystem of the root window (if a virtual-root window manager is inuse then the coordinate system of the virtual root window is used).If the \fB\-displayof\fR option is given then the coordinates referto the screen containing \fIwindow\fR;  otherwise they refer to thescreen of the application's main window.If no window in this application contains the point then an emptystring is returned.In selecting the containing window, children are given higher prioritythan parents and among siblings the highest one in the stacking order ischosen..TP\fBwinfo depth \fIwindow\fRReturns a decimal string giving the depth of \fIwindow\fR (numberof bits per pixel)..TP\fBwinfo exists \fIwindow\fRReturns 1 if there exists a window named \fIwindow\fR, 0 if no suchwindow exists..TP\fBwinfo fpixels \fIwindow\fR \fInumber\fRReturns a floating-point value giving the number of pixelsin \fIwindow\fR corresponding to the distance given by \fInumber\fR.\fINumber\fR may be specified in any of the forms acceptableto \fBTk_GetScreenMM\fR, such as ``2.0c'' or ``1i''.The return value may be fractional;  for an integer value, use\fBwinfo pixels\fR..TP\fBwinfo geometry \fIwindow\fRReturns the geometry for \fIwindow\fR, in the form\fIwidth\fBx\fIheight\fB+\fIx\fB+\fIy\fR.  All dimensions arein pixels..TP\fBwinfo height \fIwindow\fRReturns a decimal string giving \fIwindow\fR's height in pixels.When a window is first created its height will be 1 pixel;  theheight will eventually be changed by a geometry manager to fulfillthe window's needs.If you need the true height immediately after creating a widget,invoke \fBupdate\fR to force the geometry manager to arrange it,or use \fBwinfo reqheight\fR to get the window's requested heightinstead of its actual height..TP\fBwinfo id \fIwindow\fR.VSReturns a hexadecimal string giving a low-level platform-specificidentifier for \fIwindow\fR.  On Unix platforms, this is the Xwindow identifier.  Under Windows, this is the WindowsHWND.  On the Macintosh the value has no meaning outside Tk..VE.TP\fBwinfo interps \fR?\fB\-displayof \fIwindow\fR?Returns a list whose members are the names of all Tcl interpreters(e.g. all Tk-based applications) currently registered for a particular display.If the \fB\-displayof\fR option is given then the return value refersto the display of \fIwindow\fR;  otherwise it refers tothe display of the application's main window..TP\fBwinfo ismapped \fIwindow\fRReturns \fB1\fR if \fIwindow\fR is currently mapped, \fB0\fR otherwise..TP\fBwinfo manager \fIwindow\fRReturns the name of the geometry manager currentlyresponsible for \fIwindow\fR, or an empty string if \fIwindow\fRisn't managed by any geometry manager.The name is usually the name of the Tcl command for the geometrymanager, such as \fBpack\fR or \fBplace\fR.If the geometry manager is a widget, such as canvases or text, thename is the widget's class command, such as \fBcanvas\fR..TP\fBwinfo name \fIwindow\fRReturns \fIwindow\fR's name (i.e. its name within its parent, as opposedto its full path name).The command \fBwinfo name .\fR will return the name of the application..TP\fBwinfo parent \fIwindow\fRReturns the path name of \fIwindow\fR's parent, or an empty stringif \fIwindow\fR is the main window of the application..TP\fBwinfo pathname \fR?\fB\-displayof \fIwindow\fR? \fIid\fRReturns the path name of the window whose X identifier is \fIid\fR.\fIId\fR must be a decimal, hexadecimal, or octal integer and mustcorrespond to a window in the invoking application.If the \fB\-displayof\fR option is given then the identifier is lookedup on the display of \fIwindow\fR;  otherwise it is looked up onthe display of the application's main window..TP\fBwinfo pixels \fIwindow\fR \fInumber\fRReturns the number of pixels in \fIwindow\fR correspondingto the distance given by \fInumber\fR.\fINumber\fR may be specified in any of the forms acceptableto \fBTk_GetPixels\fR, such as ``2.0c'' or ``1i''.The result is rounded to the nearest integer value;  for afractional result, use \fBwinfo fpixels\fR..TP\fBwinfo pointerx \fIwindow\fRIf the mouse pointer is on the same screen as \fIwindow\fR, returns thepointer's x coordinate, measured in pixels in the screen's root window.If a virtual root window is in use on the screen, the position ismeasured in the virtual root.If the mouse pointer isn't on the same screen as \fIwindow\fR then-1 is returned..TP\fBwinfo pointerxy \fIwindow\fRIf the mouse pointer is on the same screen as \fIwindow\fR, returns a listwith two elements, which are the pointer's x and y coordinates measuredin pixels in the screen's root window.If a virtual root window is in use on the screen, the positionis computed in the virtual root.If the mouse pointer isn't on the same screen as \fIwindow\fR thenboth of the returned coordinates are -1..TP\fBwinfo pointery \fIwindow\fRIf the mouse pointer is on the same screen as \fIwindow\fR, returns thepointer's y coordinate, measured in pixels in the screen's root window.If a virtual root window is in use on the screen, the positionis computed in the virtual root.If the mouse pointer isn't on the same screen as \fIwindow\fR then-1 is returned..TP\fBwinfo reqheight \fIwindow\fRReturns a decimal string giving \fIwindow\fR's requested height,in pixels.  This is the value used by \fIwindow\fR's geometrymanager to compute its geometry..TP\fBwinfo reqwidth \fIwindow\fRReturns a decimal string giving \fIwindow\fR's requested width,in pixels.  This is the value used by \fIwindow\fR's geometrymanager to compute its geometry..TP\fBwinfo rgb \fIwindow color\fRReturns a list containing three decimal values, which are thered, green, and blue intensities that correspond to \fIcolor\fR inthe window given by \fIwindow\fR.  \fIColor\fRmay be specified in any of the forms acceptable for a coloroption..TP\fBwinfo rootx \fIwindow\fRReturns a decimal string giving the x-coordinate, in the rootwindow of the screen, of theupper-left corner of \fIwindow\fR's border (or \fIwindow\fR if ithas no border)..TP\fBwinfo rooty \fIwindow\fRReturns a decimal string giving the y-coordinate, in the rootwindow of the screen, of theupper-left corner of \fIwindow\fR's border (or \fIwindow\fR if ithas no border)..TP\fBwinfo screen \fIwindow\fRReturns the name of the screen associated with \fIwindow\fR, inthe form \fIdisplayName\fR.\fIscreenIndex\fR..TP\fBwinfo screencells \fIwindow\fRReturns a decimal string giving the number of cells in the defaultcolor map for \fIwindow\fR's screen..TP\fBwinfo screendepth \fIwindow\fRReturns a decimal string giving the depth of the root windowof \fIwindow\fR's screen (number of bits per pixel)..TP\fBwinfo screenheight \fIwindow\fRReturns a decimal string giving the height of \fIwindow\fR's screen,in pixels..TP\fBwinfo screenmmheight \fIwindow\fRReturns a decimal string giving the height of \fIwindow\fR's screen,in millimeters..TP\fBwinfo screenmmwidth \fIwindow\fRReturns a decimal string giving the width of \fIwindow\fR's screen,in millimeters..TP\fBwinfo screenvisual \fIwindow\fRReturns one of the following strings to indicate the default visualclass for \fIwindow\fR's screen: \fBdirectcolor\fR, \fBgrayscale\fR,\fBpseudocolor\fR, \fBstaticcolor\fR, \fBstaticgray\fR, or\fBtruecolor\fR..TP\fBwinfo screenwidth \fIwindow\fRReturns a decimal string giving the width of \fIwindow\fR's screen,in pixels..TP\fBwinfo server \fIwindow\fRReturns a string containing information about the server for\fIwindow\fR's display.  The exact format of this string may varyfrom platform to platform.  For X servers the stringhas the form ``\fBX\fImajor\fBR\fIminor vendor vendorVersion\fR''where \fImajor\fR and \fIminor\fR are the version and revisionnumbers provided by the server (e.g., \fBX11R5\fR), \fIvendor\fRis the name of the vendor for the server, and \fIvendorRelease\fRis an integer release number provided by the server..TP\fBwinfo toplevel \fIwindow\fRReturns the path name of the top-level window containing \fIwindow\fR..TP\fBwinfo viewable \fIwindow\fRReturns 1 if \fIwindow\fR and all of its ancestors up through thenearest toplevel window are mapped.  Returns 0 if any of thesewindows are not mapped..TP\fBwinfo visual \fIwindow\fRReturns one of the following strings to indicate the visualclass for \fIwindow\fR: \fBdirectcolor\fR, \fBgrayscale\fR,\fBpseudocolor\fR, \fBstaticcolor\fR, \fBstaticgray\fR, or\fBtruecolor\fR..TP\fBwinfo visualid \fIwindow\fRReturns the X identifier for the visual for \fIwindow\fR..TP\fBwinfo visualsavailable \fIwindow\fR ?\fBincludeids\fR?Returns a list whose elements describe the visuals available for\fIwindow\fR's screen.Each element consists of a visual class followed by an integer depth.The class has the same form as returned by \fBwinfo visual\fR.The depth gives the number of bits per pixel in the visual.In addition, if the \fBincludeids\fR argument is provided, then thedepth is followed by the X identifier for the visual..TP\fBwinfo vrootheight \fIwindow\fRReturns the height of the virtual root window associated with \fIwindow\fRif there is one;  otherwise returns the height of \fIwindow\fR's screen..TP\fBwinfo vrootwidth \fIwindow\fRReturns the width of the virtual root window associated with \fIwindow\fRif there is one;  otherwise returns the width of \fIwindow\fR's screen..TP\fBwinfo vrootx \fIwindow\fRReturns the x-offset of the virtual root window associated with \fIwindow\fR,relative to the root window of its screen.This is normally either zero or negative.Returns 0 if there is no virtual root window for \fIwindow\fR..TP\fBwinfo vrooty \fIwindow\fRReturns the y-offset of the virtual root window associated with \fIwindow\fR,relative to the root window of its screen.This is normally either zero or negative.Returns 0 if there is no virtual root window for \fIwindow\fR..TP\fBwinfo width \fIwindow\fRReturns a decimal string giving \fIwindow\fR's width in pixels.When a window is first created its width will be 1 pixel;  thewidth will eventually be changed by a geometry manager to fulfillthe window's needs.If you need the true width immediately after creating a widget,invoke \fBupdate\fR to force the geometry manager to arrange it,or use \fBwinfo reqwidth\fR to get the window's requested widthinstead of its actual width..TP\fBwinfo x \fIwindow\fRReturns a decimal string giving the x-coordinate, in \fIwindow\fR'sparent, of theupper-left corner of \fIwindow\fR's border (or \fIwindow\fR if ithas no border)..TP\fBwinfo y \fIwindow\fRReturns a decimal string giving the y-coordinate, in \fIwindow\fR'sparent, of theupper-left corner of \fIwindow\fR's border (or \fIwindow\fR if ithas no border)..SH KEYWORDSatom, children, class, geometry, height, identifier, information, interpreters,mapped, parent, path name, screen, virtual root, width, window

⌨️ 快捷键说明

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