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

Options controlling viewport SVG export behavior. More...

#include "donner/editor/ViewportSvgExport.h"

Public Attributes

bool transparentBackground = true
 When true, the exported SVG preserves transparency (no background rect). When false, a covering background rect is prepended (white fallback).
bool includeSelectionOverlay = false
 When true, a group with the preferred id donner-editor-overlay is emitted. If the source already declares that id, the exporter appends a numeric suffix. If a SelectionChromeSnapshot is supplied to ExportViewportAsSvg the group is populated with serialized overlay primitives; otherwise it is emitted empty (back-compat).

Detailed Description

Options controlling viewport SVG export behavior.

Member Data Documentation

◆ includeSelectionOverlay

bool donner::editor::ViewportExportOptions::includeSelectionOverlay = false

When true, a group with the preferred id donner-editor-overlay is emitted. If the source already declares that id, the exporter appends a numeric suffix. If a SelectionChromeSnapshot is supplied to ExportViewportAsSvg the group is populated with serialized overlay primitives; otherwise it is emitted empty (back-compat).

◆ transparentBackground

bool donner::editor::ViewportExportOptions::transparentBackground = true

When true, the exported SVG preserves transparency (no background rect). When false, a covering background rect is prepended (white fallback).


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