Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
SizedElementComponent.h File Reference
#include <optional>
#include <tuple>
#include "donner/base/Box.h"
#include "donner/base/Length.h"
#include "donner/svg/properties/Property.h"
Include dependency graph for SizedElementComponent.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::svg::components::SizedElementProperties
 Stores an offset/size for elements that are positioned with x/y/width/height attributes with respect to their parent. More...
 
struct  donner::svg::components::ComputedSizedElementComponent
 Stores the computed bounds of a sized element, resolving units and percentages. More...
 
struct  donner::svg::components::SizedElementComponent
 Stores the properties of a sized element, x, y, width, height. 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::ComputedSizedElementComponent

struct donner::svg::components::ComputedSizedElementComponent

Stores the computed bounds of a sized element, resolving units and percentages.

Contains the computed rect and inherited viewbox of the parent element.

Collaboration diagram for donner::svg::components::ComputedSizedElementComponent:
[legend]
Class Members
Boxd bounds The computed rect of this sized element.
Boxd inheritedViewbox The viewbox of the parent element, used for preserveAspectRatio transformations.

◆ donner::svg::components::SizedElementComponent

struct donner::svg::components::SizedElementComponent

Stores the properties of a sized element, x, y, width, height.

Used for "<svg>", "<image>" and xml_foreignObject by the standard, and also internally with "<use>" for Donner.

Collaboration diagram for donner::svg::components::SizedElementComponent:
[legend]
Class Members
SizedElementProperties properties The properties of the sized element, x, y, width, height.