Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::ImmediateChromePlan Struct Reference

Everything the immediate chrome pass needs to draw one frame of editor chrome. Captured by value because the direct-render callback runs later in the frame, after the shell's borrowed snapshot reference would go stale. More...

#include "donner/editor/EditorShellPresentation.h"

Public Attributes

ViewportState viewport
 Viewport this frame's document pixels were placed with. The chrome is drawn with the transform derived from this, which is the same transform DrawDocumentPresentationToFramebuffer placed the tiles with.
Box2d paneClipRect
 Render-pane rect in screen pixels; chrome is clipped to it.
SelectionChromeSnapshot snapshot
 Chrome geometry, anchored in document space and sized at draw time.

Detailed Description

Everything the immediate chrome pass needs to draw one frame of editor chrome. Captured by value because the direct-render callback runs later in the frame, after the shell's borrowed snapshot reference would go stale.

Member Data Documentation

◆ paneClipRect

Box2d donner::editor::ImmediateChromePlan::paneClipRect

Render-pane rect in screen pixels; chrome is clipped to it.

◆ snapshot

SelectionChromeSnapshot donner::editor::ImmediateChromePlan::snapshot

Chrome geometry, anchored in document space and sized at draw time.

◆ viewport

ViewportState donner::editor::ImmediateChromePlan::viewport

Viewport this frame's document pixels were placed with. The chrome is drawn with the transform derived from this, which is the same transform DrawDocumentPresentationToFramebuffer placed the tiles with.


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