Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
explicit Button::Button( const CppUtils::Container::Size2<>& size, std::unique_ptr<Widget> widget = nullptr, std::function<void()> onClick = {}, Margin margin = {}, Padding padding = {}, BorderStyle borderStyle = {});
auto Button::setStyle(this auto&& self, const ButtonStyle& style) noexcept -> decltype(auto);
[[nodiscard]] auto Button::getStyle() const noexcept -> const ButtonStyle&;
auto Button::setOnClick(this auto&& self, std::function<void()> onClick) noexcept -> decltype(auto);
auto Button::draw(WritableAreaView& view) noexcept -> void override;
auto Button::onMouseEvent(const Mouse::Event& event) -> bool override;