1Tk_GetOption(3)              Tk Library Procedures             Tk_GetOption(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_GetOption - retrieve an option from the option database
9

SYNOPSIS

11       #include <tk.h>
12
13       Tk_Uid
14       Tk_GetOption(tkwin, name, class)
15

ARGUMENTS

17       Tk_Window tkwin (in)           Token for window.
18
19       const char *name (in)          Name of desired option.
20
21       const char *class (in)         Class  of  desired  option.   Null means
22                                      there is no class for this  option;   do
23                                      lookup based on name only.
24_________________________________________________________________
25
26

DESCRIPTION

28       This procedure is invoked to retrieve an option from the database asso‐
29       ciated with tkwin's main window.  If there is an option for tkwin  that
30       matches  the  given name or class, then it is returned in the form of a
31       Tk_Uid.  If multiple options match name and class,  then  the  highest-
32       priority one is returned.  If no option matches, then NULL is returned.
33
34       Tk_GetOption  caches  options related to tkwin so that successive calls
35       for the same tkwin will execute much more quickly than successive calls
36       for different windows.
37
38

KEYWORDS

40       class, name, option, retrieve
41
42
43
44Tk                                                             Tk_GetOption(3)
Impressum