Panda3D
panda
src
putil
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
*/
23
void
CPointerCallbackObject::
24
do_callback
(
CallbackData
*cbdata) {
25
(*_func)(cbdata, _data);
26
}
CallbackData
This is a generic data block that is passed along to a CallbackObject when a callback is made.
Definition:
callbackData.h:29
CPointerCallbackObject::do_callback
virtual void do_callback(CallbackData *cbdata)
This method called when the callback is triggered; it *replaces* the original function.
Definition:
cPointerCallbackObject.cxx:24
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
cPointerCallbackObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:06 for Panda3D by
1.8.20