Filter effect container, which can contain a reference to another filter effect, or a CSS filter function (such as blur(), grayscale(), etc).
More...
#include "donner/svg/components/filter/FilterEffect.h"
|
| using | Type |
| | Variant containing all supported effects.
|
|
| | FilterEffect (Type value) |
| | Construct a filter effect from a pre-constructed filter.
|
|
constexpr | FilterEffect (None) |
| | Construct an empty filter, which applies no effect, as a constexpr constructor.
|
|
bool | operator== (const FilterEffect &other) const |
| | Equality operator.
|
| template<typename T> |
| bool | is () const |
| | Returns true if this filter effect is of type T.
|
| template<typename T> |
| T & | get () & |
| | Returns the filter effect as type T, asserting that the filter effect is of type T.
|
| template<typename T> |
| const T & | get () const & |
| | Returns the filter effect as type T, asserting that the filter effect is of type T.
|
| template<typename T> |
| T && | get () && |
| | Returns the filter effect as type T, asserting that the filter effect is of type T.
|
|
|
Type | value |
| | Filter effect variant value, contains the current effect.
|
|
|
std::ostream & | operator<< (std::ostream &os, const FilterEffect &filter) |
| | Ostream output operator.
|
Filter effect container, which can contain a reference to another filter effect, or a CSS filter function (such as blur(), grayscale(), etc).
- See also
- https://www.w3.org/TR/filter-effects/#FilterProperty
◆ Type
Initial value:
Blur effect, which applies a gaussian blur with the given standard deviation.
Definition FilterEffect.h:26
CSS brightness(<number-percentage>) filter function.
Definition FilterEffect.h:56
CSS contrast(<number-percentage>) filter function.
Definition FilterEffect.h:64
CSS drop-shadow() filter function.
Definition FilterEffect.h:112
Reference to another filter effect, from a url().
Definition FilterEffect.h:37
CSS opacity(<number-percentage>) filter function.
Definition FilterEffect.h:88
CSS grayscale(<number-percentage>) filter function.
Definition FilterEffect.h:72
CSS hue-rotate(<angle>) filter function.
Definition FilterEffect.h:48
CSS invert(<number-percentage>) filter function.
Definition FilterEffect.h:80
No effect.
Definition FilterEffect.h:20
CSS saturate(<number-percentage>) filter function.
Definition FilterEffect.h:96
CSS sepia(<number-percentage>) filter function.
Definition FilterEffect.h:104
Variant containing all supported effects.
◆ FilterEffect()
| donner::svg::FilterEffect::FilterEffect |
( |
Type | value | ) |
|
|
inline |
Construct a filter effect from a pre-constructed filter.
- Parameters
-
| value | Filter effect to assign. |
◆ get() [1/3]
template<typename T>
| T & donner::svg::FilterEffect::get |
( |
| ) |
& |
|
inline |
Returns the filter effect as type T, asserting that the filter effect is of type T.
- Template Parameters
-
◆ get() [2/3]
template<typename T>
| T && donner::svg::FilterEffect::get |
( |
| ) |
&& |
|
inline |
Returns the filter effect as type T, asserting that the filter effect is of type T.
- Template Parameters
-
◆ get() [3/3]
template<typename T>
| const T & donner::svg::FilterEffect::get |
( |
| ) |
const & |
|
inline |
Returns the filter effect as type T, asserting that the filter effect is of type T.
- Template Parameters
-
◆ is()
template<typename T>
| bool donner::svg::FilterEffect::is |
( |
| ) |
const |
|
inline |
Returns true if this filter effect is of type T.
- Template Parameters
-
The documentation for this struct was generated from the following file: