1 .\" Copyright (c) 1993, 1994 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 .\" Except as contained in this notice, the name of the X Consortium shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
27 .ds xT X Toolkit Intrinsics \- C Language Interface
29 .ds xW X Toolkit Athena Widgets \- C Language Interface
30 .ds xL Xlib \- C Language X Interface
31 .ds xC Inter-Client Communication Conventions Manual
34 .hw XtCreate-Selection-Request XtSend-Selection-Request XtCancel-Selection-Request wid-get
41 .\".if \\n(VS>=40 .vs \\n(VSu
42 .\".if \\n(VS<=39 .vs \\n(VSp
65 .de IN \" send an index entry to the stderr
72 .\" choose appropriate monospace font
73 .\" the imagen conditional, 480,
74 .\" may be changed to L if LB is too
75 .\" heavy for your eyes...
77 .ie "\\*(.T"480" .ft L
78 .el .ie "\\*(.T"300" .ft L
79 .el .ie "\\*(.T"202" .ft PO
80 .el .ie "\\*(.T"aps" .ft CW
83 .ie \\n(VS>40 .vs \\n(VSu
91 .ie t \\$1\fB\^\\$2\^\fR\\$3
92 .el \\$1\fI\^\\$2\^\fP\\$3
95 .ie t \fB\^\\$1\^\fR\\$2
96 .el \fI\^\\$1\^\fP\\$2
101 .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
102 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1
116 . \" Note End -- doug kraft 3/85
125 .TH XtCreateSelectionRequest __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
127 XtCreateSelectionRequest, XtSendSelectionRequest, XtCancelSelectionRequest \- bundle multiple selection conversion requests into a single request using MULTIPLE target
130 void XtCreateSelectionRequest(Widget \fIrequestor\fP, Atom \fIselection\fP):
132 void XtSendSelectionRequest(Widget \fIrequestor\fP, Atom \fIselection\fP, Time
135 void XtCancelSelectionRequest(Widget \fIrequestor\fP, Atom \fIselection\fP);
137 .IP \fIrequestor\fP 1i
138 Specifies the widget making the request. Must be of class Core or a
140 .IP \fIselection\fP 1i
141 Specifies the particular selection desired.
143 Specifies the timestamp to be used in making the request.
146 .ZN XtCreateSelectionRequest
147 is called, subsequent calls to
148 .ZN XtGetSelectionValue
150 .ZN XtGetSelectionValueIncremental
151 with the requestor and selection as specified to
152 .ZN XtCreateSelectionRequest
153 will be bundled into a single selection conversion request with
154 multiple targets. The request is actually initiated by calling
155 .ZN XtSendSelectionRequest .
158 .ZN XtSendSelectionRequest
159 is called with a value of \fIrequestor\fP and \fIselection\fP matching
161 .ZN XtCreateSelectionRequest ,
162 a selection conversion request is actually sent to the selection owner.
163 If a single target request is queued, that request is made. If multiple
164 targets are queued they are bundled into a single request with the
165 target MULTIPLE using the specified timestamp. As the conversions are
166 made, the callbacks associated with each
167 .ZN XtGetSelectionValue
169 .ZN XtGetSelectionValueIncremental
172 Multi-threaded applications should lock the application context before
174 .ZN XtCreateSelectionRequest
175 and release the lock after calling
176 .ZN XtSendSelectionRequest
177 to ensure that the thread assembling the request is safe from interference
178 by another thread assembling a different request naming the same widget
182 .ZN XtCancelSelectionRequest
183 is called, any requests queued since the last call to
184 .ZN XtCreateSelectionRequest
185 are cleaned up. Subsequent calls to
186 .ZN XtGetSelectionValue ,
187 .ZN XtGetSelectionValues ,
188 .ZN XtGetSelectionValueIncremental ,
190 .ZN XtGetSelectionValuesIncremental
191 will not be deferred.