/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2024-05-16 * Changed: 2024-05-30 * * */ #include "Button.hpp" using ls::std::event::EventListener; using ::std::string; using test::event::Button; Button::Button() : EventListener(), color("black") {} Button::~Button() noexcept = default; string Button::getColor() const { return this->color; } bool Button::isClicked() const { return this->clicked; } void Button::onChangeColorEvent() { this->color = "blue"; } void Button::onClickEvent() { this->clicked = !this->clicked; }