aboutsummaryrefslogtreecommitdiff
path: root/src/ui/workspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/workspace.h')
-rw-r--r--src/ui/workspace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/workspace.h b/src/ui/workspace.h
index 804d5a8..d86614a 100644
--- a/src/ui/workspace.h
+++ b/src/ui/workspace.h
@@ -1,6 +1,7 @@
#pragma once
#include "rendering/view.h"
+#include "rendering/export_config.h"
#include <string>
namespace Donut
@@ -18,6 +19,9 @@ namespace Donut
virtual auto set_ui_scale(float scale) -> void = 0;
virtual auto get_window_size(int& w, int& h) const -> void = 0;
virtual auto is_fullscreen() const -> bool = 0;
+ // Renders the requested channels off-screen and writes PNGs; returns the
+ // number of files written (0 on failure).
+ virtual auto export_frame(const ExportConfig& cfg) -> int = 0;
};
// What a workspace gets each frame to build its panels. `scene` is mutable —