26class EXPCL_PANDA_PUTIL ButtonHandle final {
32 INLINE ButtonHandle() =
default;
33 constexpr ButtonHandle(
int index);
34 ButtonHandle(
const std::string &name);
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;
43 INLINE
int compare_to(
const ButtonHandle &other)
const;
52 INLINE
bool matches(
const ButtonHandle &other)
const;
55 INLINE
void output(std::ostream &out)
const;
56 constexpr static ButtonHandle none() {
return ButtonHandle(0); }
58 INLINE
operator bool ()
const;
73 static void init_type() {
78 static TypeHandle _type_handle;
80friend class ButtonRegistry;
85INLINE std::ostream &operator << (std::ostream &out,
ButtonHandle button) {
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.