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

📄 windowid.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1990-1993 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: @(#) WindowId.3 1.16 97/01/29 08:50:10'\" .so man.macros.TH Tk_WindowId 3 "" Tk "Tk Library Procedures".BS.SH NAMETk_WindowId, Tk_Parent, Tk_Display, Tk_DisplayName, Tk_ScreenNumber, Tk_Screen, Tk_X, Tk_Y, Tk_Width, Tk_Height, Tk_Changes, Tk_Attributes, Tk_IsMapped, Tk_IsTopLevel, Tk_ReqWidth, Tk_ReqHeight, Tk_InternalBorderWidth, Tk_Visual, Tk_Depth, Tk_Colormap  \- retrieve information from Tk's local data structure.SH SYNOPSIS.nf\fB#include <tk.h>\fR.spWindow\fBTk_WindowId\fR(\fItkwin\fR).spTk_Window\fBTk_Parent\fR(\fItkwin\fR).spDisplay *\fBTk_Display\fR(\fItkwin\fR).spchar *\fBTk_DisplayName\fR(\fItkwin\fR).spint\fBTk_ScreenNumber\fR(\fItkwin\fR).spScreen *\fBTk_Screen\fR(\fItkwin\fR).spint\fBTk_X\fR(\fItkwin\fR).spint\fBTk_Y\fR(\fItkwin\fR).spint\fBTk_Width\fR(\fItkwin\fR).spint\fBTk_Height\fR(\fItkwin\fR).spXWindowChanges *\fBTk_Changes\fR(\fItkwin\fR).spXSetWindowAttributes *\fBTk_Attributes\fR(\fItkwin\fR).spint\fBTk_IsMapped\fR(\fItkwin\fR).spint\fBTk_IsTopLevel\fR(\fItkwin\fR).spint\fBTk_ReqWidth\fR(\fItkwin\fR).spint\fBTk_ReqHeight\fR(\fItkwin\fR).spint\fBTk_InternalBorderWidth\fR(\fItkwin\fR).spVisual *\fBTk_Visual\fR(\fItkwin\fR).spint\fBTk_Depth\fR(\fItkwin\fR).spColormap\fBTk_Colormap\fR(\fItkwin\fR).SH ARGUMENTS.AS Tk_Window tkwin.AP Tk_Window tkwin inToken for window..BE.SH DESCRIPTION.PP\fBTk_WindowID\fR and the other names listed above areall macros that return fields from Tk's local data structurefor \fItkwin\fR.  None of these macros requires anyinteraction with the server;  it is safe to assume thatall are fast..PP\fBTk_WindowId\fR returns the X identifier for \fItkwin\fR,or \fBNULL\fR if no X window has been created for \fItkwin\fRyet..PP\fBTk_Parent\fR returns Tk's token for the logical parent of\fItkwin\fR.  The parent is the token that was specified when\fItkwin\fR was created, or NULL for main windows..PP\fBTk_Display\fR returns a pointer to the Xlib display structurecorresponding to \fItkwin\fR.  \fBTk_DisplayName\fR returns anASCII string identifying \fItkwin\fR's display.  \fBTk_ScreenNumber\fRreturns the index of \fItkwin\fR's screen among all the screensof \fItkwin\fR's display.  \fBTk_Screen\fR returns a pointer tothe Xlib structure corresponding to \fItkwin\fR's screen..PP\fBTk_X\fR, \fBTk_Y\fR, \fBTk_Width\fR, and \fBTk_Height\fRreturn information about \fItkwin's\fR location within itsparent and its size.  The location information refers to theupper-left pixel in the window, or its border if there is one.The width and height information refers to the interior sizeof the window, not including any border.  \fBTk_Changes\fRreturns a pointer to a structure containing all of the aboveinformation plus a few other fields.  \fBTk_Attributes\fRreturns a pointer to an XSetWindowAttributes structure describingall of the attributes of the \fItkwin\fR's window, such as backgroundpixmap, event mask, and so on (Tk keeps track of all this informationas it is changed by the application).  Note: it is essential thatapplications use Tk procedures like \fBTk_ResizeWindow\fR insteadof X procedures like \fBXResizeWindow\fR, so that Tk can keep itsdata structures up-to-date..PP\fBTk_IsMapped\fR returns a non-zero value if \fItkwin\fRis mapped and zero if \fItkwin\fR isn't mapped..PP\fBTk_IsTopLevel\fR returns a non-zero value if \fItkwin\fRis a top-level window (its X parent is the root window of thescreen) and zero if \fItkwin\fR isn't a top-level window..PP\fBTk_ReqWidth\fR and \fBTk_ReqHeight\fR return information aboutthe window's requested size.  These values correspond to the lastcall to \fBTk_GeometryRequest\fR for \fItkwin\fR..PP\fBTk_InternalBorderWidth\fR returns the width of internal borderthat has been requested for \fItkwin\fR, or 0 if no internal borderwas requested.  The return value is simply the last value passedto \fBTk_SetInternalBorder\fR for \fItkwin\fR..PP\fBTk_Visual\fR, \fBTk_Depth\fR, and \fBTk_Colormap\fR returninformation about the visual characteristics of a window.\fBTk_Visual\fR returns the visual type forthe window, \fBTk_Depth\fR returns the number of bits per pixel,and \fBTk_Colormap\fR returns the currentcolormap for the window.  The visual characteristics arenormally set from the defaults for the window's screen, butthey may be overridden by calling \fBTk_SetWindowVisual\fR..SH KEYWORDSattributes, colormap, depth, display, height, geometry manager,identifier, mapped, requested size, screen, top-level,visual, width, window, x, y

⌨️ 快捷键说明

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