15 #ifndef BUTTONHANDLE_H 16 #define BUTTONHANDLE_H 18 #include "pandabase.h" 19 #include "typeHandle.h" 20 #include "register_type.h" 31 INLINE ButtonHandle(
int index);
32 INLINE ButtonHandle(
const ButtonHandle ©);
33 ButtonHandle(
const string &name);
36 INLINE
bool operator == (
const ButtonHandle &other)
const;
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
int compare_to(
const ButtonHandle &other)
const;
43 INLINE
size_t get_hash()
const;
45 string get_name()
const;
46 INLINE
bool has_ascii_equivalent()
const;
47 INLINE
char get_ascii_equivalent()
const;
49 ButtonHandle get_alias()
const;
51 INLINE
bool matches(
const ButtonHandle &other)
const;
53 INLINE
int get_index()
const;
54 INLINE
void output(ostream &out)
const;
55 INLINE
static ButtonHandle none();
57 INLINE
operator bool ()
const;
61 static ButtonHandle _none;
67 static void init_type() {
68 register_type(_type_handle,
"ButtonHandle");
79 INLINE ostream &operator << (ostream &out,
ButtonHandle button) {
84 #include "buttonHandle.I"
An STL function object class, this is intended to be used on any ordered collection of class objects ...
TypeHandle is the identifier used to differentiate C++ class types.