37 void operator = (
const Event ©);
40 INLINE
void set_name(
const std::string &name);
41 INLINE
void clear_name();
42 INLINE
bool has_name()
const;
43 INLINE
const std::string &get_name()
const;
47 int get_num_parameters()
const;
49 MAKE_SEQ(get_parameters, get_num_parameters, get_parameter);
51 bool has_receiver()
const;
54 void clear_receiver();
56 void output(std::ostream &out)
const;
58 MAKE_PROPERTY(name, get_name, set_name);
59 MAKE_SEQ_PROPERTY(parameters, get_num_parameters, get_parameter);
60 MAKE_PROPERTY2(receiver, has_receiver, get_receiver, set_receiver, clear_receiver);
74 static void init_type() {
75 TypedReferenceCount::init_type();
77 TypedReferenceCount::get_class_type());
80 return get_class_type();
82 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 INLINE std::ostream &operator << (std::ostream &out,
const Event &n);
An optional parameter associated with an event.
An abstract base class for anything that might care about receiving events.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A named event, possibly with parameters.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.