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

NAME

6       XtGetSelectionValue, XtGetSelectionValues - obtain selection values
7

SYNTAX

9       void XtGetSelectionValue(Widget w, Atom selection, Atom target, XtSe‐
10              lectionCallbackProc callback, XtPointer client_data, Time time);
11
12       void XtGetSelectionValues(Widget w, Atom selection, Atom *targets, int
13              count, XtSelectionCallbackProc callback, XtPointer client_data,
14              Time time);
15

ARGUMENTS

17       callback  Specifies the callback procedure that is to be called when
18                 the selection value has been obtained.
19
20       client_data
21                 Specifies the argument that is to be passed to the specified
22                 procedure when it is called.
23
24       client_data
25                 Specifies the client data (one for each target type) that is
26                 passed to the callback procedure when it is called for that
27                 target.
28
29       count     Specifies the length of the targets and client_data lists.
30
31       selection Specifies the particular selection desired (that is, primary
32                 or secondary).
33
34       target    Specifies the type of the information that is needed about
35                 the selection.
36
37       targets   Specifies the types of information that is needed about the
38                 selection.
39
40       time      Specifies the timestamp that indicates when the selection
41                 value is desired.
42
43       w         Specifies the widget that is making the request.
44

DESCRIPTION

46       The XtGetSelectionValue function requests the value of the selection
47       that has been converted to the target type.  The specified callback
48       will be called some time after XtGetSelectionValue is called; in fact,
49       it may be called before or after XtGetSelectionValue returns.
50
51       The XtGetSelectionValues function is similar to XtGetSelectionValue
52       except that it takes a list of target types and a list of client data
53       and obtains the current value of the selection converted to each of the
54       targets.  The effect is as if each target were specified in a separate
55       call to XtGetSelectionValue.  The callback is called once with the cor‐
56       responding client data for each target.  XtGetSelectionValues does
57       guarantee that all the conversions will use the same selection value
58       because the ownership of the selection cannot change in the middle of
59       the list, as would be when calling XtGetSelectionValue repeatedly.
60

SEE ALSO

62       XtAppGetSelectionTimeout(3), XtOwnSelection(3)
63       X Toolkit Intrinsics - C Language Interface
64       Xlib - C Language X Interface
65
66
67
68X Version 11                      libXt 1.1.4           XtGetSelectionValue(3)
Impressum