1SoCallbackList(3IV)()                                    SoCallbackList(3IV)()
2
3
4

NAME

6       SoCallbackList  —  manages  a list of callback functions and associated
7       data
8

INHERITS FROM

10       SoCallbackList
11

SYNOPSIS

13       #include <Inventor/misc/SoCallbackList.h>
14
15     typedef void        SoCallbackListCB(void *userData, void *callbackData)
16
17          Methods from class SoCallbackList:
18
19                         SoCallbackList()
20                         ~SoCallbackList()
21     void                addCallback(SoCallbackListCB  *f,  void  *userData  =
22                              NULL)
23     void                removeCallback(SoCallbackListCB  *f, void *userData =
24                              NULL)
25     void                clearCallbacks()
26     int                 getNumCallbacks() const
27     void                invokeCallbacks(void *callbackData)
28
29

DESCRIPTION

31       This class manages a list of callback functions and user data. The user
32       can add a callback function to the list, along with user data. When the
33       callback is invoked, it is passed this user data, along  with  callback
34       data  specified by the invoking routine. The type of this callback data
35       is determined by the invoking routine.
36

METHODS

38                         SoCallbackList()
39                         ~SoCallbackList()
40          Constructor and destructor.
41
42     void                addCallback(SoCallbackListCB  *f,  void  *userData  =
43                              NULL)
44     void                removeCallback(SoCallbackListCB  *f, void *userData =
45                              NULL)
46          Adds a function to or removes a function from the list  of  callback
47          functions.
48
49     void                clearCallbacks()
50          Clears all callback functions from the list.
51
52     int                 getNumCallbacks() const
53          Returns the number of callback functions in the list.
54
55     void                invokeCallbacks(void *callbackData)
56          Invokes  each  callback  function in the list, passing each function
57          the user data supplied when they were registered here, and callback‐
58          Data, the callback-specific data supplied by the caller.
59
60
61
62
63                                                         SoCallbackList(3IV)()
Impressum