Centralize retained menu popup attachment

This commit is contained in:
2026-06-06 10:37:14 +02:00
parent 65c7716d62
commit 5ff2992c0e
7 changed files with 128 additions and 63 deletions

View File

@@ -6,6 +6,7 @@
class App;
class Node;
class NodePopupMenu;
namespace pp::panopainter {
@@ -15,6 +16,13 @@ void initialize_legacy_overlay_node(App& app, Node& node);
App& app,
const std::shared_ptr<Node>& node) noexcept;
[[nodiscard]] pp::foundation::Result<std::shared_ptr<NodePopupMenu>> add_legacy_popup_menu(
App& app,
const char* template_id,
float x,
float y,
float rtl_anchor_width) noexcept;
template <class T>
std::shared_ptr<T> make_legacy_overlay_node(App& app)
{