Add editor right-click context actions
Native and manual checks / native (ubuntu-24.04) (push) Failing after 1m54s
Native and manual checks / manual (push) Successful in 32s
Native and manual checks / native (windows-2025) (push) Canceled after 0s
Windows editor and software Vulkan / windows-graphics (push) Canceled after 0s

This commit is contained in:
Emil
2026-09-24 15:44:25 +03:00
parent 3eea1fe9f1
commit f07eb4091e
11 changed files with 733 additions and 14 deletions
+3
View File
@@ -128,6 +128,9 @@ struct Widget {
Json drag_payload;
std::string dock_area, dock_panel;
std::function<void(Widget&)> on_click, on_preview, on_commit, on_cancel;
// Called on right-button down for the nearest enabled hit widget or ancestor.
// Coordinates are drawable pixels, matching render::Event.
std::function<void(Widget&, float, float)> on_context;
std::function<void(Widget&, const Json&)> on_drop;
std::vector<std::unique_ptr<Widget>> children;
Widget* parent = nullptr;