Make ui::element::post const
This commit is contained in:
parent
6de32b1047
commit
4139c9b5c0
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ namespace psemek::ui
|
||||||
|
|
||||||
virtual ~element() {}
|
virtual ~element() {}
|
||||||
|
|
||||||
virtual void post(util::function<void()> f);
|
virtual void post(util::function<void()> f) const;
|
||||||
virtual void post_reshape();
|
virtual void post_reshape();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ namespace psemek::ui
|
||||||
return merged_style_;
|
return merged_style_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void element::post(util::function<void()> f)
|
void element::post(util::function<void()> f) const
|
||||||
{
|
{
|
||||||
auto l = loop();
|
auto l = loop();
|
||||||
if (l)
|
if (l)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue