25 if (_button_map.find(index) != _button_map.end()) {
31 bnode._raw = raw_button;
32 bnode._mapped = button;
34 _button_map[index] = bnode;
35 _buttons.push_back(&_button_map[index]);
42 output(std::ostream &out)
const {
50 write(std::ostream &out,
int indent_level)
const {
55 for (it = _buttons.begin(); it != _buttons.end(); ++it) {
58 indent(out, indent_level + 2)
59 << bn->_raw <<
" -> " << bn->_mapped <<
" \"" << bn->_label <<
"\"\n";
This is our own Panda specialization on the default STL vector.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.