Donner
C++20 SVG rendering library
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< Boxd > 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.

Collaboration diagram for donner::svg::components::ComputedViewboxComponent:
[legend]
Class Members
Boxd viewbox The viewbox of the element, or the viewbox of the nearest ancestor.