libkipr  1.0.0
kipr::button::AbstractButton Class Referenceabstract

#include <button.hpp>

Inheritance diagram for kipr::button::AbstractButton:
Collaboration diagram for kipr::button::AbstractButton:

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 kipr::sensor::Sensor< bool >
virtual ~Sensor ()
 
virtual bool value () const=0
 

Constructor & Destructor Documentation

◆ ~AbstractButton()

virtual kipr::button::AbstractButton::~AbstractButton ( )
virtual

Member Function Documentation

◆ isClicked()

bool kipr::button::AbstractButton::isClicked ( ) const
inline

◆ isNotPressed()

bool kipr::button::AbstractButton::isNotPressed ( ) const
inline

◆ isPressed()

bool kipr::button::AbstractButton::isPressed ( ) const
inline

◆ setPressed()

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

Implemented in kipr::button::IdButton.

◆ waitUntilClicked()

virtual void kipr::button::AbstractButton::waitUntilClicked ( ) const
virtual

◆ waitUntilPressed()

virtual void kipr::button::AbstractButton::waitUntilPressed ( ) const
virtual

◆ waitUntilReleased()

virtual void kipr::button::AbstractButton::waitUntilReleased ( ) const
virtual

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