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

Snapshot of the editor viewport used to map window coordinates into SVG-document coordinates. More...

#include "donner/editor/repro/ReproFile.h"

Public Attributes

double paneOriginX = 0.0
 Horizontal origin of the editor pane in logical window coordinates.
double paneOriginY = 0.0
 Vertical origin of the editor pane in logical window coordinates.
double paneSizeW = 0.0
 Editor pane width in logical window coordinates.
double paneSizeH = 0.0
 Editor pane height in logical window coordinates.
double devicePixelRatio = 1.0
 Physical pixels per logical window pixel.
double zoom = 1.0
 Scale from document coordinates to logical window coordinates.
double panDocX = 0.0
 Document-space horizontal coordinate anchored at panScreenX.
double panDocY = 0.0
 Document-space vertical coordinate anchored at panScreenY.
double panScreenX = 0.0
 Logical window X coordinate of panDocX.
double panScreenY = 0.0
 Logical window Y coordinate of panDocY.
double viewBoxX = 0.0
 Horizontal origin of the document viewBox.
double viewBoxY = 0.0
 Vertical origin of the document viewBox.
double viewBoxW = 0.0
 Width of the document viewBox.
double viewBoxH = 0.0
 Height of the document viewBox.

Friends

bool operator== (const ReproViewport &lhs, const ReproViewport &rhs)=default
 Compare two recorded viewport snapshots.

Detailed Description

Snapshot of the editor viewport used to map window coordinates into SVG-document coordinates.

◆ operator==

bool operator== ( const ReproViewport & lhs,
const ReproViewport & rhs )
friend

Compare two recorded viewport snapshots.

Parameters
lhsFirst snapshot.
rhsSecond snapshot.
Returns
True when every recorded field matches.

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