15 #ifndef BUTTONREGISTRY_H 16 #define BUTTONREGISTRY_H 18 #include "pandabase.h" 20 #include "buttonHandle.h" 34 class EXPCL_PANDA_PUTIL RegistryNode {
45 bool register_button(
ButtonHandle &button_handle,
const string &name,
47 char ascii_equivalent =
'\0');
52 ButtonHandle find_ascii_button(
char ascii_equivalent)
const;
54 void write(ostream &out)
const;
68 static void init_global_pointer();
73 HandleRegistry _handle_registry;
76 NameRegistry _name_registry;
81 #include "buttonRegistry.I"