Stateful advanced editor frontend shell. Owns all long-lived GUI/editor orchestration state.
More...
#include "donner/editor/EditorShell.h"
|
|
| EditorShell (gui::EditorWindow &window, EditorShellOptions options) |
|
bool | valid () const |
|
void | prepareFrame () |
| | Perform bounded work that may yield and must run before ImGui::NewFrame().
|
|
void | runFrame () |
|
svg::FontCatalog & | fontCatalog () |
| | Font catalog (embedded Google Fonts + macOS system fonts) backing document font resolution and the font picker (Design 0013 W2 consumes this).
|
|
std::optional< float > | nextIdleWakeSeconds () const |
| | Return the next idle-loop wake interval needed for throttled UI work.
|
|
const ViewportState & | viewportForReadback () 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.
|
| void | queueDocumentSpaceReplayInputForTesting (EditorShellDocumentReplayInput input) |
| | Queue document-space pointer input for the next replay frame.
|
| void | queueScrollEventForReplayForTesting (RenderPaneScrollEvent event) |
| | Queue one scroll event for the next replay frame.
|
| void | applyReplayActionForTesting (const repro::ReproAction &action) |
| | Apply one semantic .rnr replay action before the next frame.
|
|
std::optional< std::string > | selectedElementLabelForReadback () const |
| | Current selection label for replay/readback harnesses.
|
|
std::optional< std::string > | documentSourceForReadback () const |
| | Current document source text, for replay/readback harness assertions about gesture writebacks (nullopt without a document/source store).
|
|
LayerInspectorStatusReadback | layerInspectorStatusForReadback () const |
| | Current layer-inspector freshness status for replay/readback harnesses.
|
|
AsyncRenderer & | asyncRendererForReplay () |
| | Async renderer access for replay harnesses.
|
| void | setContentOnlyCaptureForNextFrameForReplay (bool enabled) |
| | Suppress non-document render-pane presentation on the next frame.
|
|
|
class | EditorShellTestAccess |
Stateful advanced editor frontend shell. Owns all long-lived GUI/editor orchestration state.
◆ applyReplayActionForTesting()
| void donner::editor::EditorShell::applyReplayActionForTesting |
( |
const repro::ReproAction & | action | ) |
|
Apply one semantic .rnr replay action before the next frame.
- Parameters
-
| action | Tool or paint action decoded from a replay frame. |
◆ overrideViewportForReplay()
| void donner::editor::EditorShell::overrideViewportForReplay |
( |
const ViewportState & | viewport | ) |
|
Override the viewport from a recorded replay frame before rendering.
- Parameters
-
| viewport | Recorded viewport snapshot to install for the next frame. |
◆ queueDocumentSpaceReplayInputForTesting()
Queue document-space pointer input for the next replay frame.
This bypasses GUI-coordinate hit testing while keeping the frame rendered through the real editor shell and presentation stack.
- Parameters
-
| input | Replay pointer input for the next frame. |
◆ queueScrollEventForReplayForTesting()
Queue one scroll event for the next replay frame.
- Parameters
-
| event | Recorded scroll event to feed through the render-pane gesture bridge. |
◆ setContentOnlyCaptureForNextFrameForReplay()
| void donner::editor::EditorShell::setContentOnlyCaptureForNextFrameForReplay |
( |
bool | enabled | ) |
|
|
inline |
Suppress non-document render-pane presentation on the next frame.
- Parameters
-
| enabled | True to make the next frame's readback content-only. |
The documentation for this class was generated from the following file: