Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::EditorRasterViewport Struct Reference

Raster target derived from an editor viewport. More...

#include "donner/editor/ViewportState.h"

Public Attributes

Box2d documentRect
 Document-space rectangle covered by the output raster.
Vector2i outputSizePx = Vector2i::Zero()
 Output raster size in device pixels.
Vector2i semanticCanvasSizePx = Vector2i::Zero()
 Nominal full-document raster size in device pixels; not a document-layout mutation.
Transform2d outputFromDocument
 Transform from document/viewBox coordinates to output raster pixels.
bool viewportBounded = false
 True when the output raster covers only the pane window plus margin.

Detailed Description

Raster target derived from an editor viewport.

semanticCanvasSizePx is the legacy name for the nominal full-document raster target; it does not change the document's resolved SVG layout viewport. outputSizePx is the size rendered for presentation. At low zoom they are the same full-document raster. At high zoom, outputSizePx is capped to the pane plus margin and outputFromDocument maps the visible document window into that smaller surface.

Member Data Documentation

◆ documentRect

Box2d donner::editor::EditorRasterViewport::documentRect

Document-space rectangle covered by the output raster.

◆ outputFromDocument

Transform2d donner::editor::EditorRasterViewport::outputFromDocument

Transform from document/viewBox coordinates to output raster pixels.

◆ outputSizePx

Vector2i donner::editor::EditorRasterViewport::outputSizePx = Vector2i::Zero()

Output raster size in device pixels.

◆ semanticCanvasSizePx

Vector2i donner::editor::EditorRasterViewport::semanticCanvasSizePx = Vector2i::Zero()

Nominal full-document raster size in device pixels; not a document-layout mutation.

◆ viewportBounded

bool donner::editor::EditorRasterViewport::viewportBounded = false

True when the output raster covers only the pane window plus margin.


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