18 constexpr ButtonHandle::
19 ButtonHandle(
int index) : _index(index) {
25 INLINE
bool ButtonHandle::
27 return (_index == other._index);
33 INLINE
bool ButtonHandle::
35 return (_index != other._index);
41 INLINE
bool ButtonHandle::
43 return (_index < other._index);
49 INLINE
bool ButtonHandle::
51 return (_index <= other._index);
57 INLINE
bool ButtonHandle::
59 return (_index > other._index);
65 INLINE
bool ButtonHandle::
67 return (_index >= other._index);
77 return _index - other._index;
85 return (
size_t)_index;
92 INLINE
bool ButtonHandle::
93 has_ascii_equivalent()
const {
94 return (_index > 0 && _index < 128);
101 INLINE
char ButtonHandle::
102 get_ascii_equivalent()
const {
115 return ((*
this) == other ||
116 (other != ButtonHandle::none() &&
127 constexpr
int ButtonHandle::
135 INLINE
void ButtonHandle::
136 output(std::ostream &out)
const {
143 INLINE ButtonHandle::
144 operator bool ()
const {
145 return (_index != 0);