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

Represents a reference to another element, which originates from a url() reference. Should point to another paint server. More...

#include "donner/svg/properties/PaintServer.h"

Collaboration diagram for donner::svg::PaintServer::ElementReference:
[legend]

Public Member Functions

 ElementReference (Reference reference, std::optional< css::Color > fallback=std::nullopt)
 Construct a reference to another element with the given reference and fallback color.
 
bool operator== (const ElementReference &) const =default
 Equality operator.
 

Public Attributes

Reference reference
 The reference to the other element.
 
std::optional< css::Colorfallback
 A fallback color which is used if the referenced element is not found. If not specified, the paint will fallback to None.
 

Detailed Description

Represents a reference to another element, which originates from a url() reference. Should point to another paint server.


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