Rename ui::spawn -> ui::spawn_selector
This commit is contained in:
parent
79eceaa616
commit
183e5bb482
2 changed files with 2 additions and 8 deletions
|
|
@ -76,6 +76,6 @@ namespace psemek::ui
|
|||
std::function<void(std::optional<std::size_t>)> mouseover_callback_;
|
||||
};
|
||||
|
||||
bool spawn(element * root, std::shared_ptr<selector> selector, geom::point<float, 2> const & position, std::function<void()> on_canceled = nullptr);
|
||||
bool spawn_selector(element * root, std::shared_ptr<selector> selector, geom::point<float, 2> const & position, std::function<void()> on_canceled = nullptr);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,17 +247,11 @@ namespace psemek::ui
|
|||
: event_interceptor
|
||||
{
|
||||
bool transparent() const override { return false; }
|
||||
|
||||
~opaque_event_interceptor()
|
||||
{
|
||||
int fuck = 42;
|
||||
(void)fuck;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
bool spawn(element * root, std::shared_ptr<selector> selector, geom::point<float, 2> const & position, std::function<void()> on_canceled)
|
||||
bool spawn_selector(element * root, std::shared_ptr<selector> selector, geom::point<float, 2> const & position, std::function<void()> on_canceled)
|
||||
{
|
||||
ui::screen * screen = find_last_parent_of_type<struct screen>(root);
|
||||
if (!screen)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue