Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::EditorShell Class Reference

Stateful advanced editor frontend shell. Owns all long-lived GUI/editor orchestration state. More...

#include "donner/editor/EditorShell.h"

Public Member Functions

 EditorShell (gui::EditorWindow &window, EditorShellOptions options)
bool valid () const
void runFrame ()
std::optional< float > nextIdleWakeSeconds () const
 Return the next idle-loop wake interval needed for throttled UI work.
const ViewportStateviewportForReadback () const
 Current render-pane viewport. Exposed for replay/readback harnesses that need to crop the presented framebuffer to the canvas region.
void overrideViewportForReplay (const ViewportState &viewport)
 Override the viewport from a recorded replay frame before rendering.
std::optional< std::string > selectedElementLabelForReadback () const
 Current selection label for replay/readback harnesses.
LayerInspectorStatusReadback layerInspectorStatusForReadback () const
 Current layer-inspector freshness status for replay/readback harnesses.
AsyncRendererasyncRendererForReplay ()
 Async renderer access for replay harnesses.
void setContentOnlyCaptureForNextFrameForReplay (bool enabled)
 Suppress non-document render-pane presentation on the next frame.

Detailed Description

Stateful advanced editor frontend shell. Owns all long-lived GUI/editor orchestration state.

Member Function Documentation

◆ overrideViewportForReplay()

void donner::editor::EditorShell::overrideViewportForReplay ( const ViewportState & viewport)

Override the viewport from a recorded replay frame before rendering.

Parameters
viewportRecorded viewport snapshot to install for the next frame.

◆ setContentOnlyCaptureForNextFrameForReplay()

void donner::editor::EditorShell::setContentOnlyCaptureForNextFrameForReplay ( bool enabled)
inline

Suppress non-document render-pane presentation on the next frame.

Parameters
enabledTrue to make the next frame's readback content-only.

The documentation for this class was generated from the following file: