1XtGetSelectionValueIncremental(3)XT FUNCTIONSXtGetSelectionValueIncremental(3)
2
3
4

NAME

6       XtGetSelectionValueIncremental, XtGetSelectionValuesIncremental -
7       obtain selection values
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       void XtGetSelectionValueIncremental(Widget w, Atom selection, Atom tar‐
13              get, XtSelectionCallbackProc callback, XtPointer client_data,
14              Time time);
15
16       void XtGetSelectionValuesIncremental(Widget w, Atom selection, Atom
17              *targets, int count, XtSelectionCallbackProc callback, XtPointer
18              *client_data, Time time);
19

ARGUMENTS

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

DESCRIPTION

50       The XtGetSelectionValueIncremental function is similar to XtGetSelec‐
51       tionValue except that the selection_callback procedure will be called
52       repeatedly upon delivery of multiple segments of the selection value.
53       The end of the selection value is indicated when selection_callback is
54       called with a non-NULL value of length zero, which must still be freed
55       by the client. If the transfer of the selection is aborted in the mid‐
56       dle of a transfer (for example, because to timeout), the selec‐
57       tion_callback procedure is called with a type value equal to the sym‐
58       bolic constant XT_CONVERT_FAIL so that the requestor can dispose of the
59       partial selection value it has collected up until that point. Upon
60       receiving XT_CONVERT_FAIL, the requesting client must determine for
61       itself whether or not a partially completed transfer is meaningful.
62
63       The XtGetSelectionValuesIncremental function is similar to XtGet‐
64       SelectionValueIncremental except that it takes a list of target types
65       and a list of client data and obtains the current value of the selec‐
66       tion converted to each of the targets.  The effect is as if each target
67       were specified in a separate call to XtGetSelectionValueIncremental.
68       The callback is called once with the corresponding client data for each
69       target.  XtGetSelectionValuesIncremental does guarantee that all the
70       conversions will use the same selection value because the ownership of
71       the selection cannot change in the middle of the list, as would be when
72       calling XtGetSelectionValueIncremental repeatedly.
73

SEE ALSO

75       X Toolkit Intrinsics - C Language Interface
76       Xlib - C Language X Interface
77
78
79
80X Version 11                     libXt 1.1.5.1XtGetSelectionValueIncremental(3)
Impressum