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 XtCall-Callbacks XtHas-Callbacks XtCall-Callbacks-List wid-get
41 .\".if \\n(VS>=40 .vs \\n(VSu
42 .\".if \\n(VS<=39 .vs \\n(VSp
53 .de IN \" send an index entry to the stderr
56 .ie t \\$1\fB\^\\$2\^\fR\\$3
57 .el \\$1\fI\^\\$2\^\fP\\$3
60 .ie t \fB\^\\$1\^\fR\\$2
61 .el \fI\^\\$1\^\fP\\$2
64 .TH XtCallCallbacks __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
66 XtCallCallbacks, XtCallCallbackList, XtHasCallbacks \- process callbacks
69 void XtCallCallbacks(Widget \fIw\fP, String \fIcallback_name\fP, XtPointer
72 void XtCallCallbackList(Widget \fIw\fP, XtCallbackList \fIcallbacks\fP,
73 XtPointer \fIcall_data\fP);
75 typedef enum {XtCallbackNoList, XtCallbackHasNone, XtCallbackHasSome}
78 XtCallbackStatus XtHasCallbacks(Widget \fIw\fP, String \fIcallback_name\fP);
80 .ds Cn \ to be executed or checked
81 .IP \fIcallback_name\fP 1i
82 Specifies the callback list\*(Cn.
83 .IP \fIcall_data\fP 1i
84 Specifies a callback-list specific data value to pass to each of the callback
85 procedure in the list.
86 .IP \fIcallbacks\fP 1i
87 Specifies the callback list to be executed.
93 function calls each procedure that is registered in the specified widget's
96 If \fIcallbacks\fP is not NULL,
97 .ZN XtCallCallbackList
98 calls each of the callback procedures in the list, passing client data
99 and \fIcall_data\fP. The \fIcallbacks\fP parameter must specify the
100 contents of a widget or object resource declared with representation
106 function first checks to see if the widget has a callback list identified
108 If the callback list does not exist,
111 .ZN XtCallbackNoList .
112 If the callback list exists but is empty,
114 .ZN XtCallbackHasNone .
115 If the callback list exists and has at least one callback registered,
117 .ZN XtCallbackHasSome .
119 XtAddCallback(__libmansuffix__)