14 #ifndef BUTTONHANDLE_H 15 #define BUTTONHANDLE_H 37 INLINE
bool operator == (
const ButtonHandle &other)
const;
38 INLINE
bool operator != (
const ButtonHandle &other)
const;
39 INLINE
bool operator < (
const ButtonHandle &other)
const;
40 INLINE
bool operator <= (
const ButtonHandle &other)
const;
41 INLINE
bool operator > (
const ButtonHandle &other)
const;
42 INLINE
bool operator >= (
const ButtonHandle &other)
const;
44 INLINE
size_t get_hash()
const;
46 std::string get_name()
const;
47 INLINE
bool has_ascii_equivalent()
const;
48 INLINE
char get_ascii_equivalent()
const;
54 constexpr
int get_index()
const;
55 INLINE
void output(std::ostream &out)
const;
58 INLINE
operator bool ()
const;
60 MAKE_PROPERTY(index, get_index);
61 MAKE_PROPERTY(name, get_name);
62 MAKE_PROPERTY2(ascii_equivalent, has_ascii_equivalent,
63 get_ascii_equivalent);
64 MAKE_PROPERTY(alias, get_alias);
73 static void init_type() {
85 INLINE std::ostream &operator << (std::ostream &out,
ButtonHandle button) {
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An STL function object class, this is intended to be used on any ordered collection of class objects ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.