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

Parameters for the "<mask>" element. More...

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

Public Member Functions

bool useAutoBounds () const
 Returns true if the mask should use the default bounds.
 

Public Attributes

std::optional< Lengthdx
 The x-coordinate of the mask, defaults to -10% (outside the element itself).
 
std::optional< Lengthdy
 The y-coordinate of the mask, defaults to -10% (outside the element itself).
 
std::optional< Lengthdwidth
 Width of the mask, defaults to 120% (outside of the element itself).
 
std::optional< Lengthdheight
 Height of the mask, defaults to 120% (outside of the element itself).
 
MaskUnits maskUnits = MaskUnits::Default
 The parsed value of the "maskUnits" attribute, which defines the coordinate system for the x, y, width, and height attributes of the mask.
 
MaskContentUnits maskContentUnits = MaskContentUnits::Default
 The parsed value of the "maskContentUnits" attribute, which defines the coordinate system for the content of the mask.
 

Detailed Description

Parameters for the "<mask>" element.

Contains the mask bounds, which determines how large the canvas needs to be when applying the filter, and mask configuration such as units for its parameters.


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