1XtGetSelectionValue(3) XT FUNCTIONS XtGetSelectionValue(3)
2
3
4
6 XtGetSelectionValue, XtGetSelectionValues - obtain selection values
7
9 #include <X11/Intrinsic.h>
10
11 void XtGetSelectionValue(Widget w, Atom selection, Atom target, XtSe‐
12 lectionCallbackProc callback, XtPointer client_data, Time time);
13
14 void XtGetSelectionValues(Widget w, Atom selection, Atom *targets, int
15 count, XtSelectionCallbackProc callback, XtPointer *client_data,
16 Time time);
17
19 callback Specifies the callback procedure that is to be called when
20 the selection value has been obtained.
21
22 client_data
23 Specifies the argument that is to be passed to the specified
24 procedure when it is called.
25
26 client_data
27 Specifies the client data (one for each target type) that is
28 passed to the callback procedure when it is called for that
29 target.
30
31 count Specifies the length of the targets and client_data lists.
32
33 selection Specifies the particular selection desired (that is, primary
34 or secondary).
35
36 target Specifies the type of the information that is needed about
37 the selection.
38
39 targets Specifies the types of information that is needed about the
40 selection.
41
42 time Specifies the timestamp that indicates when the selection
43 value is desired.
44
45 w Specifies the widget that is making the request.
46
48 The XtGetSelectionValue function requests the value of the selection
49 that has been converted to the target type. The specified callback
50 will be called some time after XtGetSelectionValue is called; in fact,
51 it may be called before or after XtGetSelectionValue returns.
52
53 The XtGetSelectionValues function is similar to XtGetSelectionValue
54 except that it takes a list of target types and a list of client data
55 and obtains the current value of the selection converted to each of the
56 targets. The effect is as if each target were specified in a separate
57 call to XtGetSelectionValue. The callback is called once with the cor‐
58 responding client data for each target. XtGetSelectionValues does
59 guarantee that all the conversions will use the same selection value
60 because the ownership of the selection cannot change in the middle of
61 the list, as would be when calling XtGetSelectionValue repeatedly.
62
64 XtAppGetSelectionTimeout(3), XtOwnSelection(3)
65 X Toolkit Intrinsics - C Language Interface
66 Xlib - C Language X Interface
67
68
69
70X Version 11 libXt 1.1.5.1 XtGetSelectionValue(3)