1XtCreateSelectionRequest(3) XT FUNCTIONS XtCreateSelectionRequest(3)
2
3
4
6 XtCreateSelectionRequest, XtSendSelectionRequest, XtCancelSelection‐
7 Request - bundle multiple selection conversion requests into a single
8 request using MULTIPLE target
9
11 #include <X11/Intrinsic.h>
12
13 void XtCreateSelectionRequest(Widget requestor, Atom selection);
14
15 void XtSendSelectionRequest(Widget requestor, Atom selection, Time
16 time);
17
18 void XtCancelSelectionRequest(Widget requestor, Atom selection);
19
21 requestor Specifies the widget making the request. Must be of class
22 Core or a subclass thereof.
23
24 selection Specifies the particular selection desired.
25
26 time Specifies the timestamp to be used in making the request.
27
29 When XtCreateSelectionRequest is called, subsequent calls to XtGetSe‐
30 lectionValue and XtGetSelectionValueIncremental with the requestor and
31 selection as specified to XtCreateSelectionRequest will be bundled into
32 a single selection conversion request with multiple targets. The
33 request is actually initiated by calling XtSendSelectionRequest.
34
35 When XtSendSelectionRequest is called with a value of requestor and
36 selection matching a previous call to XtCreateSelectionRequest, a
37 selection conversion request is actually sent to the selection owner.
38 If a single target request is queued, that request is made. If multi‐
39 ple targets are queued they are bundled into a single request with the
40 target MULTIPLE using the specified timestamp. As the conversions are
41 made, the callbacks associated with each XtGetSelectionValue and XtGet‐
42 SelectionValueIncremental are invoked in turn.
43
44 Multi-threaded applications should lock the application context before
45 calling XtCreateSelectionRequest and release the lock after calling
46 XtSendSelectionRequest to ensure that the thread assembling the request
47 is safe from interference by another thread assembling a different
48 request naming the same widget and selection.
49
50 When XtCancelSelectionRequest is called, any requests queued since the
51 last call to XtCreateSelectionRequest are cleaned up. Subsequent calls
52 to XtGetSelectionValue, XtGetSelectionValues, XtGetSelectionValueIncre‐
53 mental, and XtGetSelectionValuesIncremental will not be deferred.
54
56 X Toolkit Intrinsics - C Language Interface
57 Xlib - C Language X Interface
58
59
60
61X Version 11 libXt 1.2.0 XtCreateSelectionRequest(3)