1Tk_GetOption(3) Tk Library Procedures Tk_GetOption(3)
2
3
4
5______________________________________________________________________________
6
8 Tk_GetOption - retrieve an option from the option database
9
11 #include <tk.h>
12
13 Tk_Uid
14 Tk_GetOption(tkwin, name, class)
15
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
27 This procedure is invoked to retrieve an option from the database asso‐
28 ciated with tkwin's main window. If there is an option for tkwin that
29 matches the given name or class, then it is returned in the form of a
30 Tk_Uid. If multiple options match name and class, then the highest-
31 priority one is returned. If no option matches, then NULL is returned.
32
33 Tk_GetOption caches options related to tkwin so that successive calls
34 for the same tkwin will execute much more quickly than successive calls
35 for different windows.
36
38 class, name, option, retrieve
39
40
41
42Tk Tk_GetOption(3)