|
@@ -135,7 +135,7 @@ get_index() const {
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: ButtonHandle::output
|
|
// Function: ButtonHandle::output
|
|
|
// Access: Published
|
|
// Access: Published
|
|
|
-// Description:
|
|
|
|
|
|
|
+// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE void ButtonHandle::
|
|
INLINE void ButtonHandle::
|
|
|
output(ostream &out) const {
|
|
output(ostream &out) const {
|
|
@@ -152,3 +152,14 @@ INLINE ButtonHandle ButtonHandle::
|
|
|
none() {
|
|
none() {
|
|
|
return _none;
|
|
return _none;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: ButtonHandle::operator bool
|
|
|
|
|
+// Access: Published
|
|
|
|
|
+// Description: ButtonHandle::none() evaluates to false, everything
|
|
|
|
|
+// else evaluates to true.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE ButtonHandle::
|
|
|
|
|
+operator bool () const {
|
|
|
|
|
+ return (_index != 0);
|
|
|
|
|
+}
|