Make ui::button::set_icon/set_label public

This commit is contained in:
Nikita Lisitsa 2021-03-05 14:26:41 +03:00
parent 984cae76ae
commit 0f9b8f72c1

View file

@ -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<struct label> label);
void set_icon(std::shared_ptr<image_view> 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<struct label> label);
void set_icon(std::shared_ptr<image_view> icon);
private:
state_t state_ = state_t::normal;