Make ui::button::set_icon/set_label public
This commit is contained in:
parent
984cae76ae
commit
0f9b8f72c1
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue