libwallaby  v24
The wallaby standard library
AbstractButton Class Referenceabstract

#include <button.hpp>

Inheritance diagram for AbstractButton:
Sensor< bool > AbstractTextButton IdButton

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
 

Constructor & Destructor Documentation

◆ ~AbstractButton()

virtual AbstractButton::~AbstractButton ( )
virtual

Member Function Documentation

◆ isClicked()

bool AbstractButton::isClicked ( ) const
inline

◆ isNotPressed()

bool AbstractButton::isNotPressed ( ) const
inline

◆ isPressed()

bool AbstractButton::isPressed ( ) const
inline

References Sensor< T >::value().

◆ setPressed()

virtual void AbstractButton::setPressed ( bool  pressed)
pure virtual

Implemented in IdButton.

◆ waitUntilClicked()

virtual void AbstractButton::waitUntilClicked ( ) const
virtual

◆ waitUntilPressed()

virtual void AbstractButton::waitUntilPressed ( ) const
virtual

◆ waitUntilReleased()

virtual void AbstractButton::waitUntilReleased ( ) const
virtual

The documentation for this class was generated from the following file: