Button.hpp 566 B

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