Enum style::values::generics::svg::SVGPaintKind
[−]
[src]
pub enum SVGPaintKind<ColorType, UrlPaintServer> { None, Color(ColorType), PaintServer(UrlPaintServer), ContextFill, ContextStroke, }
An SVG paint value without the fallback
Whereas the spec only allows PaintServer to have a fallback, Gecko lets the context properties have a fallback as well.
Variants
None
none
Color(ColorType)
<color>
PaintServer(UrlPaintServer)
url(...)
ContextFill
context-fill
ContextStroke
context-stroke
Trait Implementations
impl<ColorType, UrlPaintServer> Animate for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: Animate,
[src]
ColorType: Animate,
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>
[src]
Animate a value towards another one, given an animation procedure.
impl<ColorType: Clone, UrlPaintServer: Clone> Clone for SVGPaintKind<ColorType, UrlPaintServer>
[src]
fn clone(&self) -> SVGPaintKind<ColorType, UrlPaintServer>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<ColorType, UrlPaintServer> ComputeSquaredDistance for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: ComputeSquaredDistance,
[src]
ColorType: ComputeSquaredDistance,
fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>
[src]
Computes the squared distance between two animatable values.
impl<ColorType: Debug, UrlPaintServer: Debug> Debug for SVGPaintKind<ColorType, UrlPaintServer>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<ColorType, UrlPaintServer> MallocSizeOf for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: MallocSizeOf,
UrlPaintServer: MallocSizeOf,
[src]
ColorType: MallocSizeOf,
UrlPaintServer: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<ColorType: PartialEq, UrlPaintServer: PartialEq> PartialEq for SVGPaintKind<ColorType, UrlPaintServer>
[src]
fn eq(&self, __arg_0: &SVGPaintKind<ColorType, UrlPaintServer>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SVGPaintKind<ColorType, UrlPaintServer>) -> bool
[src]
This method tests for !=
.
impl<ColorType, UrlPaintServer> ToAnimatedValue for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: ToAnimatedValue,
UrlPaintServer: ToAnimatedValue,
[src]
ColorType: ToAnimatedValue,
UrlPaintServer: ToAnimatedValue,
type AnimatedValue = SVGPaintKind<<ColorType as ToAnimatedValue>::AnimatedValue, <UrlPaintServer as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
fn to_animated_value(self) -> Self::AnimatedValue
[src]
Converts this value to an animated value.
fn from_animated_value(animated: Self::AnimatedValue) -> Self
[src]
Converts back an animated value into a computed value.
impl<ColorType, UrlPaintServer> ToAnimatedZero for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: ToAnimatedZero,
[src]
ColorType: ToAnimatedZero,
fn to_animated_zero(&self) -> Result<Self, ()>
[src]
Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation's "by-animation" where SMIL first interpolates from the zero value to the 'by' value, and then adds the result to the underlying value. Read more
impl<ColorType, UrlPaintServer> ToComputedValue for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: ToComputedValue,
UrlPaintServer: ToComputedValue,
[src]
ColorType: ToComputedValue,
UrlPaintServer: ToComputedValue,
type ComputedValue = SVGPaintKind<<ColorType as ToComputedValue>::ComputedValue, <UrlPaintServer as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more
impl<ColorType, UrlPaintServer> ToCss for SVGPaintKind<ColorType, UrlPaintServer> where
ColorType: ToCss,
UrlPaintServer: ToCss,
[src]
ColorType: ToCss,
UrlPaintServer: ToCss,