Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
ViewBoxComponent.h File Reference
#include <optional>
#include "donner/base/Box.h"
Include dependency graph for ViewBoxComponent.h:

Classes

struct  donner::svg::components::ViewBoxComponent
 A component attached to entities that have a viewBox attribute, such as <svg> and <pattern>. More...
struct  donner::svg::components::ComputedViewBoxComponent
 Computed value of a viewBox for the current element. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.

Class Documentation

◆ donner::svg::components::ViewBoxComponent

struct donner::svg::components::ViewBoxComponent

A component attached to entities that have a viewBox attribute, such as <svg> and <pattern>.

Class Members
optional< Box2d > viewBox Stored viewBox, if any.

◆ donner::svg::components::ComputedViewBoxComponent

struct donner::svg::components::ComputedViewBoxComponent

Computed value of a viewBox for the current element.

If this element does not define a viewBox, this is the viewBox of the nearest ancestor or the document itself.

Class Members
Box2d viewBox The viewBox of the element, or the viewBox of the nearest ancestor.