123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * 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;
- }
|