Button.hpp 746 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2024-05-16
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_BUTTON_HPP
  11. #define LS_STD_BUTTON_HPP
  12. #include <ls-std/ls-std-event.hpp>
  13. #include <string>
  14. namespace test::event
  15. {
  16. class Button : public ls::standard::event::EventListener
  17. {
  18. public:
  19. explicit Button();
  20. ~Button() noexcept override;
  21. [[nodiscard]] ::std::string getColor() const;
  22. [[nodiscard]] bool isClicked() const;
  23. void onChangeColorEvent();
  24. void onClickEvent();
  25. private:
  26. bool clicked{};
  27. ::std::string color{};
  28. };
  29. }
  30. #endif