|
|
Donner
C++20 SVG rendering library
|
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< Lengthd > | x |
| The x-coordinate of the mask, defaults to -10% (outside the element itself). | |
| std::optional< Lengthd > | y |
| The y-coordinate of the mask, defaults to -10% (outside the element itself). | |
| std::optional< Lengthd > | width |
| Width of the mask, defaults to 120% (outside of the element itself). | |
| std::optional< Lengthd > | height |
| 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. | |
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.