Boolean XtOwnSelection(w, selection, time, convert_proc, lose_selection, done_proc) Widget w; Atom selection; Time time; XtConvertSelectionProc convert_proc; XtLoseSelectionProc lose_selection; XtSelectionDoneProc done_proc;Boolean XtOwnSelectionIncremental(w, selection, time, convert_callback, lose_callback, done_callback, cancel_callback, client_data) Widget w; Atom selection; Time time; XtConvertSelectionIncrProc convert_callback; XtLoseSelectionIncrProc lose_callback; XtSelectionDoneIncrProc done_callback; XtCancelConvertSelectionProc cancel_callback; XtPointer client_data;
void XtDisownSelection(w, selection, time) Widget w; Atom selection; Time time;
XA_PRIMARY, XA_SECONDARY, or XA_CLIPBOARD
The XtOwnSelectionInrcremental procedure informs the Intrinsics incremental selection mechanism that the specified widget wishes to own the selection. It returns True if the specified widget successfully becomes the selection owner or False otherwise. For more information about selection, target, and time, see Section 2.6 of the Inter-Client Communication Conventions Manual.
A widget that becomes the selection owner using XtOwnSelectionIncremental may use XtDisownSelection to relinquish selection ownership.
The XtDisownSelection function informs the Intrinsics selection mechanism that the specified widget is to lose ownership of the selection. If the widget does not currently own the selection either because it lost the selection or because it never had the selection to begin with, XtDisownSelection does nothing.
After a widget has called XtDisownSelection, its convert procedure is not called even if a request arrives later with a timestamp during the period that this widget owned the selection. However, its done procedure will be called if a conversion that started before the call to XtDisownSelection finishes after the call to XtDisownSelection.
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface