15 #ifndef CALLBACKOBJECT_H
16 #define CALLBACKOBJECT_H
18 #include "pandabase.h"
19 #include "typedReferenceCount.h"
36 ALLOC_DELETED_CHAIN(CallbackObject);
39 virtual void output(ostream &out)
const;
41 EXTENSION(
static PT(CallbackObject) make(PyObject *
function));
50 static void init_type() {
51 TypedReferenceCount::init_type();
52 register_type(_type_handle,
"CallbackObject",
53 TypedReferenceCount::get_class_type());
56 return get_class_type();
58 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 inline ostream &operator << (ostream &out,
const CallbackObject &cbo) {
69 #include "callbackObject.I"
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
This is a generic data block that is passed along to a CallbackObject when a callback is made...
This is a generic object that can be assigned to a callback at various points in the rendering proces...
TypeHandle is the identifier used to differentiate C++ class types.