18 #include "pandabase.h"
19 #include "typedReferenceCount.h"
20 #include "buttonHandle.h"
21 #include "buttonRegistry.h"
35 INLINE
int get_num_buttons()
const;
38 INLINE
const string &get_mapped_button_label(
int i)
const;
41 INLINE
ButtonHandle get_mapped_button(
const string &raw_name)
const;
42 INLINE
const string &get_mapped_button_label(
ButtonHandle raw)
const;
43 INLINE
const string &get_mapped_button_label(
const string &raw_name)
const;
45 void output(ostream &out)
const;
46 void write(ostream &out,
int indent_level = 0)
const;
65 static void init_type() {
66 TypedReferenceCount::init_type();
67 register_type(_type_handle,
"ButtonMap",
68 TypedReferenceCount::get_class_type());
71 return get_class_type();
73 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
79 #include "buttonMap.I"
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.