libwallaby  v24
The wallaby standard library
IdButton Class Reference

#include <button.hpp>

Inheritance diagram for IdButton:
AbstractTextButton AbstractButton Sensor< bool >

Public Member Functions

 IdButton (const Button::Type::Id &id, const char *defaultText)
 
 ~IdButton ()
 
virtual void setText (const char *text)
 
virtual const char * text () const
 
virtual bool isTextDirty () const
 
virtual void setPressed (bool pressed)
 
virtual bool value () const
 
virtual void resetText ()
 
- Public Member Functions inherited from AbstractTextButton
virtual ~AbstractTextButton ()
 
- Public Member Functions inherited from AbstractButton
virtual ~AbstractButton ()
 
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 ()
 

Constructor & Destructor Documentation

◆ IdButton()

IdButton::IdButton ( const Button::Type::Id id,
const char *  defaultText 
)

◆ ~IdButton()

IdButton::~IdButton ( )

Member Function Documentation

◆ isTextDirty()

virtual bool IdButton::isTextDirty ( ) const
virtual

Implements AbstractTextButton.

◆ resetText()

virtual void IdButton::resetText ( )
virtual

Implements AbstractTextButton.

◆ setPressed()

virtual void IdButton::setPressed ( bool  pressed)
virtual

Implements AbstractButton.

◆ setText()

virtual void IdButton::setText ( const char *  text)
virtual

Implements AbstractTextButton.

◆ text()

virtual const char* IdButton::text ( ) const
virtual

Implements AbstractTextButton.

◆ value()

virtual bool IdButton::value ( ) const
virtual

Implements Sensor< bool >.


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