Panda3D
panda
src
putil
callbackObject.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 callbackObject.cxx
10
* @author drose
11
* @date 2009-03-13
12
*/
13
14
#include "
callbackObject.h
"
15
16
TypeHandle
CallbackObject::_type_handle;
17
18
19
/**
20
*
21
*/
22
void
CallbackObject::
23
output(std::ostream &out)
const
{
24
out << get_type();
25
}
26
27
/**
28
* This method called when the callback is triggered; it *replaces* the
29
* original function. To continue performing the original function, you must
30
* call cbdata->upcall() during the callback.
31
*/
32
void
CallbackObject::
33
do_callback
(
CallbackData
*) {
34
}
CallbackData
This is a generic data block that is passed along to a CallbackObject when a callback is made.
Definition:
callbackData.h:29
CallbackObject::do_callback
virtual void do_callback(CallbackData *cbdata)
This method called when the callback is triggered; it *replaces* the original function.
Definition:
callbackObject.cxx:33
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
callbackObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:06 for Panda3D by
1.8.20