|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Classes | |
| struct | donner::editor::DrawingViewportLayout |
| Computed layout for the Drawing window image, plus helpers for converting between screen coordinates and document coordinates. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| DrawingViewportLayout | donner::editor::ComputeDrawingViewportLayout (const Vector2d &contentOrigin, const Vector2d &availableRegionSize, const Vector2d &imageSize, const Vector2d &panOffset, const Box2d &documentViewBox) |
| Computes the visible image placement in the Drawing window. | |
|
nodiscard |
Computes the visible image placement in the Drawing window.
| contentOrigin | Top-left screen position of the available drawing area. |
| availableRegionSize | Size of the available drawing area in screen coordinates. |
| imageSize | Rendered image size in screen coordinates. |
| panOffset | Pan offset in screen coordinates. |
| documentViewBox | Visible document-space viewBox. |