From 0f9b8f72c1e67fff04cf642b246b7bfcda943671 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 5 Mar 2021 14:26:41 +0300 Subject: [PATCH] Make ui::button::set_icon/set_label public --- libs/ui/include/psemek/ui/button.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ui/include/psemek/ui/button.hpp b/libs/ui/include/psemek/ui/button.hpp index 52e39de3..ef68923e 100644 --- a/libs/ui/include/psemek/ui/button.hpp +++ b/libs/ui/include/psemek/ui/button.hpp @@ -18,6 +18,9 @@ namespace psemek::ui struct image_view * icon() { return icon_.get(); } struct image_view const * icon() const { return icon_.get(); } + void set_label(std::shared_ptr label); + void set_icon(std::shared_ptr icon); + children_range children() const override; bool on_event(mouse_move const & e) override; @@ -44,9 +47,6 @@ namespace psemek::ui virtual void on_state_changed(state_t old); - void set_label(std::shared_ptr label); - void set_icon(std::shared_ptr icon); - private: state_t state_ = state_t::normal;