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

NAME

6       XtOwnSelection, XtOwnSelectionIncremental, XtDisownSelection - set
7       selection owner
8

SYNTAX

10       Boolean XtOwnSelection(Widget w, Atom selection, Time time, XtConvertS‐
11              electionProc convert_proc, XtLoseSelectionProc lose_selection,
12              XtSelectionDoneProc done_proc);
13
14       Boolean XtOwnSelectionIncremental(Widget w, Atom selection, Time time,
15              XtConvertSelectionIncrProc convert_callback, XtLoseSelectionIn‐
16              crProc lose_callback, XtSelectionDoneIncrProc done_callback,
17              XtCancelConvertSelectionProc cancel_callback, XtPointer
18              client_data);
19
20       void XtDisownSelection(Widget w, Atom selection, Time time);
21

ARGUMENTS

23       convert_proc
24                 Specifies the procedure that is to be called whenever someone
25                 requests the current value of the selection.
26
27       done_proc Specifies the procedure that is called after the requestor
28                 has received the selection or NULL if the owner is not inter‐
29                 ested in being called back.
30
31       lose_selection
32                 Specifies the procedure that is to be called whenever the
33                 widget has lost selection ownership or NULL if the owner is
34                 not interested in being called back.
35
36       selection Specifies an atom that describes the type of the selection
37                 (for example, XA_PRIMARY, XA_SECONDARY, or XA_CLIPBOARD).
38
39       time      Specifies the timestamp that indicates when the selection
40                 ownership should commence or is to be relinquished.
41
42       w         Specifies the widget that wishes to become the owner or to
43                 relinquish ownership.
44

DESCRIPTION

46       The XtOwnSelection function informs the Intrinsics selection mechanism
47       that a widget believes it owns a selection.  It returns True if the
48       widget has successfully become the owner and False otherwise.  The wid‐
49       get may fail to become the owner if some other widget has asserted own‐
50       ership at a time later than this widget.  Note that widgets can lose
51       selection ownership either because someone else asserted later owner‐
52       ship of the selection or because the widget voluntarily gave up owner‐
53       ship of the selection.  Also note that the lose_selection procedure is
54       not called if the widget fails to obtain selection ownership in the
55       first place.
56
57       The XtOwnSelectionIncremental procedure informs the Intrinsics incre‐
58       mental selection mechanism that the specified widget wishes to own the
59       selection. It returns True if the specified widget successfully becomes
60       the selection owner or False otherwise. For more information about
61       selection, target, and time, see Section 2.6 of the Inter-Client Commu‐
62       nication Conventions Manual.
63
64       A widget that becomes the selection owner using XtOwnSelection‐
65       Incremental may use XtDisownSelection to relinquish selection owner‐
66       ship.
67
68       The XtDisownSelection function informs the Intrinsics selection mecha‐
69       nism that the specified widget is to lose ownership of the selection.
70       If the widget does not currently own the selection either because it
71       lost the selection or because it never had the selection to begin with,
72       XtDisownSelection does nothing.
73
74       After a widget has called XtDisownSelection, its convert procedure is
75       not called even if a request arrives later with a timestamp during the
76       period that this widget owned the selection.  However, its done proce‐
77       dure will be called if a conversion that started before the call to
78       XtDisownSelection finishes after the call to XtDisownSelection.
79

SEE ALSO

81       XtAppGetSelectionTimeout(3), XtGetSelectionValue(3)
82       X Toolkit Intrinsics - C Language Interface
83       Xlib - C Language X Interface
84
85
86
87X Version 11                      libXt 1.1.4                XtOwnSelection(3)
Impressum