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.