◆ PlaterShownWaiter()
| Slic3r::anonymous_namespace{PluginHostUi.cpp}::PlaterShownWaiter::PlaterShownWaiter |
( |
std::function< void(GUI::Plater *)> | fn | ) |
|
|
inlineexplicit |
455:
m_fn(std::move(fn)) {}
std::function< void(GUI::Plater *)> m_fn
Definition PluginHostUi.cpp:474
References m_fn.
◆ Notify()
| void Slic3r::anonymous_namespace{PluginHostUi.cpp}::PlaterShownWaiter::Notify |
( |
| ) |
|
|
inlineoverride |
bool try_run()
Definition PluginHostUi.cpp:458
References try_run().
◆ try_run()
| bool Slic3r::anonymous_namespace{PluginHostUi.cpp}::PlaterShownWaiter::try_run |
( |
| ) |
|
|
inline |
459 {
460 const bool closing = GUI::wxGetApp().is_closing();
462 if (!
closing && (plater ==
nullptr || !plater->IsShownOnScreen()))
463 return false;
464 Stop();
466
467 GUI::wxGetApp().CallAfter([this]() { delete this; });
468 return true;
469 }
@ Plater
Definition Shortcuts.hpp:21
Slic3r::Polygons closing(const Slic3r::Polygons &polygons, const float delta1, const float delta2, JoinType joinType, double miterLimit)
Definition ClipperUtils.cpp:670
References Slic3r::closing(), and m_fn.
Referenced by Notify().
◆ m_fn
| std::function<void(GUI::Plater*)> Slic3r::anonymous_namespace{PluginHostUi.cpp}::PlaterShownWaiter::m_fn |
|
private |
The documentation for this class was generated from the following file: