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

NAME

6       XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGet‐
7       Values, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues - obtain and
8       set widget resources
9

SYNTAX

11       #include <X11/Intrinsic.h>
12
13       void XtSetValues(Widget w, ArgList args, Cardinal num_args);
14
15       void XtVaSetValues(Widget w, ...);
16
17       void XtSetSubvalues(XtPointer base, XtResourceList resources, Cardinal
18              num_resources, ArgList args, Cardinal num_args);
19
20       void XtVaSetSubvalues(XtPointer base, XtResourceList resources, Cardi‐
21              nal num_resources, ...);
22
23       void XtGetValues(Widget w, ArgList args, Cardinal num_args);
24
25       void XtVaGetValues(Widget w, ...);
26
27       void XtGetSubvalues(XtPointer base, XtResourceList resources, Cardinal
28              num_resources, ArgList args, Cardinal num_args);
29
30       void XtVaGetSubvalues(XtPointer base, XtResourceList resources, Cardi‐
31              nal num_resources, ...);
32

ARGUMENTS

34       args      Specifies the argument list of name/address pairs that con‐
35                 tain the resource name and either the address into which the
36                 resource value is to be stored or their new values.
37
38       base      Specifies the base address of the subpart data structure
39                 where the resources should be retrieved or written.
40
41       num_args  Specifies the number of arguments in the argument list.
42
43       resources Specifies the nonwidget resource list or values.
44
45       num_resources
46                 Specifies the number of resources in the resource list.
47
48       w         Specifies the widget.
49
50       ...       Specifies the variable argument list of name/address pairs
51                 that contain the resource name and either the address into
52                 which the resource value is to be stored or their new values.
53

DESCRIPTION

55       The XtSetValues function starts with the resources specified for the
56       Core widget fields and proceeds down the subclass chain to the widget.
57       At each stage, it writes the new value (if specified by one of the
58       arguments) or the existing value (if no new value is specified) to a
59       new widget data record.  XtSetValues then calls the set_values proce‐
60       dures for the widget in superclass-to-subclass order.  If the widget
61       has any non-NULL set_values_hook fields, these are called immediately
62       after the corresponding set_values procedure.  This procedure permits
63       subclasses to set nonwidget data for XtSetValues.
64
65       If the widget's parent is a subclass of constraintWidgetClass, XtSet‐
66       Values also updates the widget's constraints.  It starts with the con‐
67       straint resources specified for constraintWidgetClass and proceeds down
68       the subclass chain to the parent's class.  At each stage, it writes the
69       new value or the existing value to a new constraint record.  It then
70       calls the constraint set_values procedures from constraintWidgetClass
71       down to the parent's class.  The constraint set_values procedures are
72       called with widget arguments, as for all set_values procedures, not
73       just the constraint record arguments, so that they can make adjustments
74       to the desired values based on full information about the widget.
75
76       XtSetValues determines if a geometry request is needed by comparing the
77       current widget to the new widget.  If any geometry changes are
78       required, it makes the request, and the geometry manager returns XtGe‐
79       ometryYes, XtGeometryAlmost, or XtGeometryNo.  If XtGeometryYes, XtSet‐
80       Values calls the widget's resize procedure.  If XtGeometryNo, XtSet‐
81       Values resets the geometry fields to their original values.  If XtGeom‐
82       etryAlmost, XtSetValues calls the set_values_almost procedure, which
83       determines what should be done and writes new values for the geometry
84       fields into the new widget.  XtSetValues then repeats this process,
85       deciding once more whether the geometry manager should be called.
86
87       Finally, if any of the set_values procedures returned True, XtSetValues
88       causes the widget's expose procedure to be invoked by calling the Xlib
89       XClearArea function on the widget's window.
90
91       The XtSetSubvalues function stores resources into the structure identi‐
92       fied by base.
93
94       The XtGetValues function starts with the resources specified for the
95       core widget fields and proceeds down the subclass chain to the widget.
96       The value field of a passed argument list should contain the address
97       into which to store the corresponding resource value.  It is the call‐
98       er's responsibility to allocate and deallocate this storage according
99       to the size of the resource representation type used within the widget.
100
101       If the widget's parent is a subclass of constraintWidgetClass, XtGet‐
102       Values then fetches the values for any constraint resources requested.
103       It starts with the constraint resources specified for constraintWidget‐
104       Class and proceeds down to the subclass chain to the parent's con‐
105       straint resources.  If the argument list contains a resource name that
106       is not found in any of the resource lists searched, the value at the
107       corresponding address is not modified.  Finally, if the get_values_hook
108       procedures are non-NULL, they are called in superclass-to-subclass
109       order after all the resource values have been fetched by XtGetValues.
110       This permits a subclass to provide nonwidget resource data to XtGet‐
111       Values.
112
113       The XtGetSubvalues function obtains resource values from the structure
114       identified by base.
115

SEE ALSO

117       X Toolkit Intrinsics - C Language Interface
118       Xlib - C Language X Interface
119
120
121
122X Version 11                      libXt 1.2.0                   XtSetValues(3)
Impressum