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