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 void XtSetValues(Widget w, ArgList args, Cardinal num_args);
12
13 void XtVaSetValues(Widget w, ...);
14
15 void XtSetSubvalues(XtPointer base, XtResourceList resources, Cardinal
16 num_resources, ArgList args, Cardinal num_args);
17
18 void XtVaSetSubvalues(XtPointer base, XtResourceList resources, Cardi‐
19 nal num_resources, ...);
20
21 void XtGetValues(Widget w, ArgList args, Cardinal num_args);
22
23 void XtVaGetValues(Widget w, ...);
24
25 void XtGetSubvalues(XtPointer base, XtResourceList resources, Cardinal
26 num_resources, ArgList args, Cardinal num_args);
27
28 void XtVaGetSubvalues(XtPointer base, XtResourceList resources, Cardi‐
29 nal num_resources, ...);
30
32 args Specifies the argument list of name/address pairs that con‐
33 tain the resource name and either the address into which the
34 resource value is to be stored or their new values.
35
36 base Specifies the base address of the subpart data structure
37 where the resources should be retrieved or written.
38
39 num_args Specifies the number of arguments in the argument list.
40
41 resources Specifies the nonwidget resource list or values.
42
43 num_resources
44 Specifies the number of resources in the resource list.
45
46 w Specifies the widget.
47
48 ... Specifies the variable argument list of name/address pairs
49 that contain the resource name and either the address into
50 which the resource value is to be stored or their new values.
51
53 The XtSetValues function starts with the resources specified for the
54 Core widget fields and proceeds down the subclass chain to the widget.
55 At each stage, it writes the new value (if specified by one of the
56 arguments) or the existing value (if no new value is specified) to a
57 new widget data record. XtSetValues then calls the set_values proce‐
58 dures for the widget in superclass-to-subclass order. If the widget
59 has any non-NULL set_values_hook fields, these are called immediately
60 after the corresponding set_values procedure. This procedure permits
61 subclasses to set nonwidget data for XtSetValues.
62
63 If the widget's parent is a subclass of constraintWidgetClass, XtSet‐
64 Values also updates the widget's constraints. It starts with the con‐
65 straint resources specified for constraintWidgetClass and proceeds down
66 the subclass chain to the parent's class. At each stage, it writes the
67 new value or the existing value to a new constraint record. It then
68 calls the constraint set_values procedures from constraintWidgetClass
69 down to the parent's class. The constraint set_values procedures are
70 called with widget arguments, as for all set_values procedures, not
71 just the constraint record arguments, so that they can make adjustments
72 to the desired values based on full information about the widget.
73
74 XtSetValues determines if a geometry request is needed by comparing the
75 current widget to the new widget. If any geometry changes are
76 required, it makes the request, and the geometry manager returns XtGe‐
77 ometryYes, XtGeometryAlmost, or XtGeometryNo. If XtGeometryYes, XtSet‐
78 Values calls the widget's resize procedure. If XtGeometryNo, XtSet‐
79 Values resets the geometry fields to their original values. If XtGeom‐
80 etryAlmost, XtSetValues calls the set_values_almost procedure, which
81 determines what should be done and writes new values for the geometry
82 fields into the new widget. XtSetValues then repeats this process,
83 deciding once more whether the geometry manager should be called.
84
85 Finally, if any of the set_values procedures returned True, XtSetValues
86 causes the widget's expose procedure to be invoked by calling the Xlib
87 XClearArea function on the widget's window.
88
89 The XtSetSubvalues function stores resources into the structure identi‐
90 fied by base.
91
92 The XtGetValues function starts with the resources specified for the
93 core widget fields and proceeds down the subclass chain to the widget.
94 The value field of a passed argument list should contain the address
95 into which to store the corresponding resource value. It is the call‐
96 er's responsibility to allocate and deallocate this storage according
97 to the size of the resource representation type used within the widget.
98
99 If the widget's parent is a subclass of constraintWidgetClass, XtGet‐
100 Values then fetches the values for any constraint resources requested.
101 It starts with the constraint resources specified for constraintWidget‐
102 Class and proceeds down to the subclass chain to the parent's con‐
103 straint resources. If the argument list contains a resource name that
104 is not found in any of the resource lists searched, the value at the
105 corresponding address is not modified. Finally, if the get_values_hook
106 procedures are non-NULL, they are called in superclass-to-subclass
107 order after all the resource values have been fetched by XtGetValues.
108 This permits a subclass to provide nonwidget resource data to XtGet‐
109 Values.
110
111 The XtGetSubvalues function obtains resource values from the structure
112 identified by base.
113
115 X Toolkit Intrinsics - C Language Interface
116 Xlib - C Language X Interface
117
118
119
120X Version 11 libXt 1.1.5 XtSetValues(3)