Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::FilterInput Struct Reference

Identifies the input to a filter primitive node. More...

#include "donner/svg/components/filter/FilterGraph.h"

Classes

struct  Previous
 The input is the output of the immediately preceding primitive (or SourceGraphic for the first primitive). More...
struct  Named
 The input is a named result from a prior primitive's result attribute. More...

Public Types

using Type = std::variant<Previous, FilterStandardInput, Named>
 Variant of all input types.

Public Member Functions

 FilterInput ()
 Construct an implicit previous-result input.
 FilterInput (FilterStandardInput standard)
 Construct from a standard input keyword.
 FilterInput (Named named)
 Construct from a named result reference.
 FilterInput (Type value)
 Construct from a variant value.
bool operator== (const FilterInput &) const =default
 Equality operator.

Static Public Member Functions

static FilterInput FromAttribute (std::string_view value)
 Parse a standard keyword or a named filter-result reference.

Public Attributes

Type value
 The input specification.

Detailed Description

Identifies the input to a filter primitive node.

Member Function Documentation

◆ FromAttribute()

FilterInput donner::svg::components::FilterInput::FromAttribute ( std::string_view value)
inlinestatic

Parse a standard keyword or a named filter-result reference.

Parameters
valueSVG input attribute value; the caller admits any owning string allocation.

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