The base class for all buttons. More...
#include <button.hpp>
Public Member Functions | |
| virtual | ~AbstractButton () |
| virtual void | setPressed (bool pressed)=0 |
| bool | isPressed () const |
| bool | isNotPressed () const |
| bool | isClicked () const |
| virtual void | waitUntilReleased () const |
| virtual void | waitUntilPressed () const |
| virtual void | waitUntilClicked () const |
Public Member Functions inherited from Sensor< bool > | |
| virtual | ~Sensor () |
| virtual bool | value () const =0 |
The base class for all buttons.
Provides several convenience methods for working with buttons
|
virtual |
|
inline |
Gets the current state of the butten (pressed or not pressed.)
|
inline |
|
inline |
References Sensor< T >::value().
|
pure virtual |
Implemented in IdButton.
|
virtual |
Blocks until the button is clicked.
|
virtual |
Blocks until the button is pressed. Returns immeadiately if the button is pressed.
|
virtual |
Blocks until the button is released. Returns immeadiately if the button is not pressed.