1XtGetApplicationResources(3)     XT FUNCTIONS     XtGetApplicationResources(3)
2
3
4

NAME

6       XtGetApplicationResources, XtVaGetApplicationResources - obtain appli‐
7       cation resources
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       void XtGetApplicationResources(Widget w, XtPointer base, XtResourceList
13              resources, Cardinal num_resources, ArgList args, Cardinal
14              num_args);
15
16       void XtVaGetApplicationResources(Widget w, XtPointer base, XtRe‐
17              sourceList resources, Cardinal num_resources, ...);
18

ARGUMENTS

20       args      Specifies the argument list to override resources obtained
21                 from the resource database.
22
23       base      Specifies the base address of the subpart data structure
24                 where the resources should be written.
25
26       num_args  Specifies the number of arguments in the argument list.
27
28       num_resources
29                 Specifies the number of resources in the resource list.
30
31       resources Specifies the resource list for the subpart.
32
33       w         Specifies the widget that wants resources for a subpart or
34                 that identifies the resource database to search.
35
36       ...       Specifies the variable arguments to override resources ob‐
37                 tained from the resource database.
38

DESCRIPTION

40       The XtGetApplicationResources function first uses the passed widget,
41       which is usually an application shell, to construct a resource name and
42       class list, Then, it retrieves the resources from the argument list,
43       the resource database, or the resource list default values.  After
44       adding base to each address, XtGetApplicationResources copies the re‐
45       sources into the address given in the resource list.  If args is NULL,
46       num_args must be zero.  However, if num_args is zero, the argument list
47       is not referenced.  The portable way to specify application resources
48       is to declare them as members of a structure and pass the address of
49       the structure as the base argument.
50

SEE ALSO

52       X Toolkit Intrinsics - C Language Interface
53       Xlib - C Language X Interface
54
55
56
57X Version 11                      libXt 1.2.1     XtGetApplicationResources(3)
Impressum