Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::DrawingViewportLayout Struct Reference

Computed layout for the Drawing window image, plus helpers for converting between screen coordinates and document coordinates. More...

#include "donner/editor/ViewportGeometry.h"

Collaboration diagram for donner::editor::DrawingViewportLayout:
[legend]

Public Member Functions

bool hasImage () const
bool containsScreenPoint (const Vector2d &screenPoint) const
std::optional< Vector2dscreenToDocument (const Vector2d &screenPoint) const
std::optional< Vector2ddocumentToScreen (const Vector2d &documentPoint) const

Public Attributes

Vector2d imageOrigin
Vector2d imageSize
Box2d documentViewBox

Detailed Description

Computed layout for the Drawing window image, plus helpers for converting between screen coordinates and document coordinates.


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