Trait silkenweb::elements::svg::attributes::TransferFunction
source · pub trait TransferFunction: Element {
// Provided methods
fn type<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<String> { ... }
fn table_values<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Self
where T: AsAttribute<String> { ... }
fn intercept<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Self
where T: AsAttribute<f64> { ... }
fn amplitude<'a, T>(
self,
value: impl RefSignalOrValue<'a, Item = T>
) -> Self
where T: AsAttribute<f64> { ... }
fn exponent<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Self
where T: AsAttribute<f64> { ... }
}
Expand description
SVG Filter Transfer Function Attributes
Provided Methods§
sourcefn type<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn type<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The SVG type
attribute
The type attribute is a generic attribute and it has different meaning based on the context in which it’s used.
sourcefn table_values<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
fn table_values<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<String>,
The SVG tableValues
attribute
The tableValues attribute defines a list of numbers defining a lookup table of values for a color component transfer function.
sourcefn intercept<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
fn intercept<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
The SVG intercept
attribute
The intercept attribute defines the intercept of the linear function of color component transfers when the type attribute is set to linear.
sourcefn amplitude<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
fn amplitude<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
The SVG amplitude
attribute
The amplitude attribute controls the amplitude of the gamma function of a component transfer element when its type attribute is gamma.
sourcefn exponent<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
fn exponent<'a, T>(self, value: impl RefSignalOrValue<'a, Item = T>) -> Selfwhere
T: AsAttribute<f64>,
The SVG exponent
attribute
The exponent attribute defines the exponent of the gamma function.
Object Safety§
This trait is not object safe.