Centralize legacy canvas tool bridge

This commit is contained in:
2026-06-04 11:59:20 +02:00
parent 22bbc93b43
commit c3d85074ac
8 changed files with 273 additions and 209 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include "app_core/canvas_hotkey.h"
#include "app_core/canvas_tool_ui.h"
#include "foundation/result.h"
class App;
class Node;
namespace pp::panopainter {
[[nodiscard]] pp::foundation::Status execute_legacy_canvas_tool_plan(
App& app,
const pp::app::CanvasToolPlan& plan,
Node* toolbar_button = nullptr);
[[nodiscard]] pp::foundation::Status execute_legacy_canvas_input_tool_plan(
const pp::app::CanvasToolPlan& plan);
[[nodiscard]] pp::foundation::Status execute_legacy_canvas_hotkey_plan(
const pp::app::CanvasHotkeyPlan& plan);
} // namespace pp::panopainter