1XtSetValues(3) XT FUNCTIONS XtSetValues(3)
2
3
4
6 XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGet‐
7 Values, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues - obtain and
8 set widget resources
9
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
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
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 ar‐
58 guments) or the existing value (if no new value is specified) to a new
59 widget data record. XtSetValues then calls the set_values procedures
60 for the widget in superclass-to-subclass order. If the widget has any
61 non-NULL set_values_hook fields, these are called immediately after the
62 corresponding set_values procedure. This procedure permits subclasses
63 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 re‐
78 quired, it makes the request, and the geometry manager returns XtGeome‐
79 tryYes, 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, de‐
85 ciding 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
98 caller's responsibility to allocate and deallocate this storage accord‐
99 ing to the size of the resource representation type used within the
100 widget.
101
102 If the widget's parent is a subclass of constraintWidgetClass, XtGet‐
103 Values then fetches the values for any constraint resources requested.
104 It starts with the constraint resources specified for constraintWidget‐
105 Class and proceeds down to the subclass chain to the parent's con‐
106 straint resources. If the argument list contains a resource name that
107 is not found in any of the resource lists searched, the value at the
108 corresponding address is not modified. Finally, if the get_values_hook
109 procedures are non-NULL, they are called in superclass-to-subclass or‐
110 der after all the resource values have been fetched by XtGetValues.
111 This permits a subclass to provide nonwidget resource data to XtGet‐
112 Values.
113
114 The XtGetSubvalues function obtains resource values from the structure
115 identified by base.
116
118 X Toolkit Intrinsics - C Language Interface
119 Xlib - C Language X Interface
120
121
122
123X Version 11 libXt 1.2.1 XtSetValues(3)