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

📄 setclass.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1990 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: @(#) SetClass.3 1.12 96/03/26 18:18:10'\" .so man.macros.TH Tk_SetClass 3 "" Tk "Tk Library Procedures".BS.SH NAMETk_SetClass, Tk_Class \- set or retrieve a window's class.SH SYNOPSIS.nf\fB#include <tk.h>\fR.sp\fBTk_SetClass\fR(\fItkwin, class\fR).spTk_Uid\fBTk_Class\fR(\fItkwin\fR).SH ARGUMENTS.AS Tk_Window parent.AP Tk_Window tkwin inToken for window..AP char *class inNew class name for window..BE.SH DESCRIPTION.PP\fBTk_SetClass\fR is called to associate a class with a particularwindow.  The \fIclass\fR string identifies the type of thewindow;  all windows with the same general class of behavior(button, menu, etc.) should have the same class.  Byconvention all class names start with a capital letter, andthere exists a Tcl command with the same name aseach class (except all in lower-case) which can be used tocreate and manipulate windows of that class.A window's class string is initialized to NULLwhen the window is created..PPFor main windows, Tk automatically propagates the name and classto the WM_CLASS property used by window managers.  This happenseither when a main window is actually created (e.g. in\fBTk_MakeWindowExist\fR), or when \fBTk_SetClass\fRis called, whichever occurs later.  If a main window has not beenassigned a class then Tk will not set the WM_CLASS property forthe window..PP\fBTk_Class\fR is a macro that returns thecurrent value of \fItkwin\fR's class.  The value is returnedas a Tk_Uid, which may be used just like a string pointer but also hasthe properties of a unique identifier (see the manual entry for\fBTk_GetUid\fR for details).If \fItkwin\fR has not yet been given a class, then\fBTk_Class\fR will return NULL..SH KEYWORDSclass, unique identifier, window, window manager

⌨️ 快捷键说明

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