Panda3D
 All Classes Functions Variables Enumerations
cPointerCallbackObject.cxx
1 // Filename: cPointerCallbackObject.cxx
2 // Created by: drose (13Mar09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "cPointerCallbackObject.h"
16 
17 TypeHandle CPointerCallbackObject::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: CPointerCallbackObject::do_callback
21 // Access: Public, Virtual
22 // Description: This method called when the callback is triggered; it
23 // *replaces* the original function. To continue
24 // performing the original function, you must call
25 // cbdata->upcall() during the callback.
26 ////////////////////////////////////////////////////////////////////
29  (*_func)(cbdata, _data);
30 }
31 
This is a generic data block that is passed along to a CallbackObject when a callback is made...
Definition: callbackData.h:32
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:85