1XtAddCallback(3) XT FUNCTIONS XtAddCallback(3)
2
3
4
6 XtAddCallback, XtAddCallbacks, XtRemoveCallback, XtRemoveCallbacks,
7 XtRemoveAllCallbacks - add and remove callback procedures
8
10 #include <X11/Intrinsic.h>
11
12 void XtAddCallback(Widget w, const char *callback_name, XtCallbackProc
13 callback, XtPointer client_data);
14
15 void XtAddCallbacks(Widget w, const char *callback_name, XtCallbackList
16 callbacks);
17
18 void XtRemoveCallback(Widget w, const char *callback_name, XtCallback‐
19 Proc callback, XtPointer client_data);
20
21 void XtRemoveCallbacks(Widget w, const char *callback_name, XtCallback‐
22 List callbacks);
23
24 void XtRemoveAllCallbacks(Widget w, const char *callback_name);
25
27 callback Specifies the callback procedure.
28
29 callbacks Specifies the null-terminated list of callback procedures and
30 corresponding client data.
31
32 callback_name
33 Specifies the callback list to which the procedure is to be
34 appended or deleted.
35
36 client_data
37 Specifies the argument that is to be passed to the specified
38 procedure when it is invoked by XtCallbacks or NULL, or the
39 client data to match on the registered callback procedures.
40
41 w Specifies the widget.
42
44 The XtAddCallback function adds the specified callback procedure to the
45 specified widget's callback list.
46
47 The XtAddCallbacks add the specified list of callbacks to the specified
48 widget's callback list.
49
50 The XtRemoveCallback function removes a callback only if both the pro‐
51 cedure and the client data match.
52
53 The XtRemoveCallbacks function removes the specified callback proce‐
54 dures from the specified widget's callback list.
55
56 The XtRemoveAllCallbacks function removes all the callback procedures
57 from the specified widget's callback list.
58
60 XtCallCallbacks(3)
61 X Toolkit Intrinsics - C Language Interface
62 Xlib - C Language X Interface
63
64
65
66X Version 11 libXt 1.2.0 XtAddCallback(3)