12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2024-05-16
- * Changed: 2024-05-30
- *
- * */
- #ifndef LS_STD_BUTTON_HPP
- #define LS_STD_BUTTON_HPP
- #include <ls-std/ls-std-event.hpp>
- #include <string>
- namespace test::event
- {
- class Button : public ls::std::event::EventListener
- {
- public:
- explicit Button();
- ~Button() noexcept override;
- [[nodiscard]] ::std::string getColor() const;
- [[nodiscard]] bool isClicked() const;
- void onChangeColorEvent();
- void onClickEvent();
- private:
- bool clicked{};
- ::std::string color{};
- };
- }
- #endif
|