Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::components::ComputedPatternComponent Struct Reference

Computed properties for "<pattern>" elements, after resolving and inheriting values from referenced patterns. More...

#include "donner/svg/components/paint/PatternComponent.h"

Collaboration diagram for donner::svg::components::ComputedPatternComponent:
[legend]

Public Member Functions

void inheritAttributesFrom (EntityHandle handle, EntityHandle base)
 Inherit attributes from the referenced pattern.

Public Attributes

bool initialized = false
 True if this component has been initialized, false otherwise.
PatternUnits patternUnits = PatternUnits::Default
 The pattern units of the pattern, defaults to PatternUnits::Default.
PatternContentUnits patternContentUnits = PatternContentUnits::Default
 The pattern content units of the pattern, defaults to PatternContentUnits::Default.
Box2d tileRect = Box2d::CreateEmpty(Vector2d())
 The pattern tile rectangle, defaults to the empty rect.
PreserveAspectRatio preserveAspectRatio
 The preserveAspectRatio of the pattern, defaults to PreserveAspectRatio::None.
std::optional< Box2dviewBox
 The viewBox of the pattern, or std::nullopt if not set.
SizedElementProperties sizeProperties
 Resolved x, y, width, and height properties of the pattern tile rectangle.

Detailed Description

Computed properties for "<pattern>" elements, after resolving and inheriting values from referenced patterns.

Member Function Documentation

◆ inheritAttributesFrom()

void donner::svg::components::ComputedPatternComponent::inheritAttributesFrom ( EntityHandle handle,
EntityHandle base )

Inherit attributes from the referenced pattern.

Parameters
handleThe handle of the pattern entity.
baseThe handle of the base entity to copy from.

The documentation for this struct was generated from the following files:
  • donner/svg/components/paint/PatternComponent.h
  • donner/svg/components/paint/PatternComponent.cc