Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::components::ComputedRectComponent Struct Reference

Computed properties for a "<rect>" element, which applies values from the CSS cascade. More...

#include "donner/svg/components/shape/RectComponent.h"

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

Public Member Functions

 ComputedRectComponent (const RectProperties &inputProperties, const std::map< RcString, parser::UnparsedProperty > &unparsedProperties, std::vector< parser::ParseError > *outWarnings)
 Construct a ComputedRectComponent from the input properties and unparsed properties.
 

Public Attributes

RectProperties properties
 The computed properties for the rectangle.
 

Detailed Description

Computed properties for a "<rect>" element, which applies values from the CSS cascade.

Constructor & Destructor Documentation

◆ ComputedRectComponent()

donner::svg::components::ComputedRectComponent::ComputedRectComponent ( const RectProperties & inputProperties,
const std::map< RcString, parser::UnparsedProperty > & unparsedProperties,
std::vector< parser::ParseError > * outWarnings )

Construct a ComputedRectComponent from the input properties and unparsed properties.

Parameters
inputPropertiesThe input properties for the rectangle.
unparsedPropertiesThe unparsed properties for the rectangle, which may contain presentation attributes set in the CSS stylesheet which need to be applied to the element.
outWarningsA vector to append any warnings to.

The documentation for this struct was generated from the following files: