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

📄 option.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" 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: @(#) option.n 1.10 96/03/26 18:25:08'\" .so man.macros.TH option n "" Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEoption \- Add/retrieve window options to/from the option database.SH SYNOPSIS\fBoption add \fIpattern value \fR?\fIpriority\fR?.sp\fBoption clear\fR.sp\fBoption get \fIwindow name class\fR.sp\fBoption readfile \fIfileName \fR?\fIpriority\fR?.BE.SH DESCRIPTION.PPThe \fBoption\fR command allows you to add entries to the Tk optiondatabase or to retrieve options from the database.  The \fBadd\fRform of the command adds a new option to the database.\fIPattern\fR containsthe option being specified, and consists of names and/or classesseparated by asterisks or dots, in the usual X format.  \fIValue\fRcontains a text string to associate with \fIpattern\fR;  this is thevalue that will be returned in calls to \fBTk_GetOption\fR or byinvocations of the \fBoption get\fR command.  If \fIpriority\fRis specified, it indicates the priority level for this option (seebelow for legal values);  it defaults to \fBinteractive\fR.This command always returns an empty string..PPThe \fBoption clear\fR command clears the option database.  Defaultoptions (from the\fBRESOURCE_MANAGER\fR property or the \fB.Xdefaults\fRfile) will be reloaded automatically the next time anoption is added to the database or removed from it.  This commandalways returns an empty string..PPThe \fBoption get\fR command returns the value of the optionspecified for \fIwindow\fRunder \fIname\fR and \fIclass\fR.  If several entries in the optiondatabase match \fIwindow\fR, \fIname\fR, and \fIclass\fR, thenthe command returns whichever was created with highest\fIpriority\fR level.  If there are several matchingentries at the same priority level, then it returns whichever entrywas most recently entered into the option database.  If there areno matching entries, then the empty string is returned..PPThe \fBreadfile\fR form of the command reads \fIfileName\fR,which should have the standard format for anX resource database such as \fB.Xdefaults\fR, and adds all theoptions specified in that file to the option database.  If \fIpriority\fRis specified, it indicates the priority level at which to enter theoptions;  \fIpriority\fR defaults to \fBinteractive\fR..PPThe \fIpriority\fR arguments to the \fBoption\fR command arenormally specified symbolically using one of the following values:.TP\fBwidgetDefault\fRLevel 20.  Used for default values hard-coded into widgets..TP\fBstartupFile\fRLevel 40.  Used for options specified in application-specificstartup files..TP\fBuserDefault\fRLevel 60.  Used for options specified in user-specific defaultsfiles, such as \fB.Xdefaults\fR, resource databases loaded intothe X server, or user-specific startup files..TP\fBinteractive\fRLevel 80.  Used for options specified interactively after the applicationstarts running.  If \fIpriority\fR isn't specified, it defaults tothis level..LPAny of the above keywords may be abbreviated.  In addition, prioritiesmay be specified numerically using integers between 0 and 100,inclusive.  The numeric form is probably a bad idea except for new prioritylevels other than the ones given above..SH KEYWORDSdatabase, option, priority, retrieve

⌨️ 快捷键说明

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