Centralize legacy document canvas bridge

This commit is contained in:
2026-06-03 20:58:52 +02:00
parent d1bd4e9b46
commit 855c388027
8 changed files with 127 additions and 64 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include "app_core/document_canvas.h"
#include "app_core/document_resize.h"
#include "foundation/result.h"
class App;
namespace pp::panopainter {
[[nodiscard]] bool legacy_document_canvas_available(const App& app) noexcept;
[[nodiscard]] pp::foundation::Status execute_legacy_document_canvas_clear_plan(
App& app,
const pp::app::DocumentCanvasClearPlan& plan);
[[nodiscard]] pp::foundation::Status execute_legacy_document_resize_plan(
App& app,
const pp::app::DocumentResizePlan& plan);
} // namespace pp::panopainter