Debian Codegraph @

pod/pTk/GetOption.pod

raw
1 # Copyright (c) 1990 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk_GetOption - retrieve an option from the option database
11
12 =for category C Programming
13
14 =head1 SYNOPSIS
15
16 B<#include E<lt>tk.hE<gt>>
17
18 Tk_Uid
19 B<Tk_GetOption>(I<tkwin, name, class>)
20
21 =head1 ARGUMENTS
22
23 =over 4
24
25 =item Tk_Window tkwin (in)
26
27 Token for window.
28
29 =item char *name (in)
30
31 Name of desired option.
32
33 =item char *class (in)
34
35 Class of desired option. Null means there is no class for
36 this option; do lookup based on name only.
37
38 =back
39
40 =head1 DESCRIPTION
41
42 This procedure is invoked to retrieve an option from the database
43 associated with I<tkwin>'s main window. If there is an option
44 for I<tkwin> that matches the given I<name> or I<class>,
45 then it is returned in the form of a Tk_Uid. If multiple options
46 match I<name> and I<class>, then the highest-priority one
47 is returned. If no option matches, then NULL is returned.
48
49 B<Tk_GetOption> caches options related to I<tkwin> so that
50 successive calls for the same I<tkwin> will execute much more
51 quickly than successive calls for different windows.
52
53 =head1 KEYWORDS
54
55 class, name, option, retrieve