Panda3D
cPointerCallbackObject.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file cPointerCallbackObject.cxx
10  * @author drose
11  * @date 2009-03-13
12  */
13 
14 #include "cPointerCallbackObject.h"
15 
16 TypeHandle CPointerCallbackObject::_type_handle;
17 
18 /**
19  * This method called when the callback is triggered; it *replaces* the
20  * original function. To continue performing the original function, you must
21  * call cbdata->upcall() during the callback.
22  */
25  (*_func)(cbdata, _data);
26 }
This is a generic data block that is passed along to a CallbackObject when a callback is made.
Definition: callbackData.h:29
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void do_callback(CallbackData *cbdata)
This method called when the callback is triggered; it *replaces* the original function.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81