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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user