Enum style::properties::animated_properties::AnimationValue [] [src]

pub enum AnimationValue {
    BackgroundColor(<T as ToAnimatedValue>::AnimatedValue),
    BackgroundImage(T),
    BackgroundPositionX(T),
    BackgroundPositionY(T),
    BackgroundRepeat(T),
    BackgroundAttachment(T),
    BackgroundClip(T),
    BackgroundOrigin(T),
    BackgroundSize(<T as ToAnimatedValue>::AnimatedValue),
    BorderTopColor(<T as ToAnimatedValue>::AnimatedValue),
    BorderTopStyle(T),
    BorderTopWidth(<T as ToAnimatedValue>::AnimatedValue),
    BorderLeftColor(<T as ToAnimatedValue>::AnimatedValue),
    BorderLeftStyle(T),
    BorderLeftWidth(<T as ToAnimatedValue>::AnimatedValue),
    BorderBottomColor(<T as ToAnimatedValue>::AnimatedValue),
    BorderBottomStyle(T),
    BorderBottomWidth(<T as ToAnimatedValue>::AnimatedValue),
    BorderRightColor(<T as ToAnimatedValue>::AnimatedValue),
    BorderRightStyle(T),
    BorderRightWidth(<T as ToAnimatedValue>::AnimatedValue),
    BorderTopLeftRadius(<T as ToAnimatedValue>::AnimatedValue),
    BorderTopRightRadius(<T as ToAnimatedValue>::AnimatedValue),
    BorderBottomRightRadius(<T as ToAnimatedValue>::AnimatedValue),
    BorderBottomLeftRadius(<T as ToAnimatedValue>::AnimatedValue),
    BorderImageSource(T),
    BorderImageOutset(T),
    BorderImageRepeat(T),
    BorderImageWidth(T),
    BorderImageSlice(T),
    Display(T),
    Position(T),
    Float(T),
    Clear(T),
    VerticalAlign(T),
    OverflowX(T),
    OverflowY(T),
    Transform(T),
    Perspective(T),
    PerspectiveOrigin(T),
    BackfaceVisibility(T),
    TransformStyle(T),
    TransformOrigin(T),
    Color(<T as ToAnimatedValue>::AnimatedValue),
    ColumnWidth(<T as ToAnimatedValue>::AnimatedValue),
    ColumnCount(<T as ToAnimatedValue>::AnimatedValue),
    ColumnGap(<T as ToAnimatedValue>::AnimatedValue),
    Content(T),
    CounterIncrement(T),
    CounterReset(T),
    Opacity(T),
    BoxShadow(<T as ToAnimatedValue>::AnimatedValue),
    Clip(T),
    Filter(<T as ToAnimatedValue>::AnimatedValue),
    MixBlendMode(T),
    FontFamily(T),
    FontStyle(T),
    FontVariantCaps(T),
    FontWeight(T),
    FontSize(<T as ToAnimatedValue>::AnimatedValue),
    FontStretch(T),
    Visibility(T),
    WritingMode(T),
    Direction(T),
    ImageRendering(T),
    BorderCollapse(T),
    EmptyCells(T),
    CaptionSide(T),
    BorderSpacing(<T as ToAnimatedValue>::AnimatedValue),
    LineHeight(<T as ToAnimatedValue>::AnimatedValue),
    TextTransform(T),
    TextIndent(T),
    OverflowWrap(T),
    WordBreak(T),
    TextJustify(T),
    TextAlign(T),
    LetterSpacing(T),
    WordSpacing(T),
    WhiteSpace(T),
    TextShadow(<T as ToAnimatedValue>::AnimatedValue),
    TextRendering(T),
    ListStylePosition(T),
    ListStyleType(T),
    ListStyleImage(T),
    Quotes(T),
    MarginTop(T),
    MarginLeft(T),
    MarginBottom(T),
    MarginRight(T),
    OutlineColor(<T as ToAnimatedValue>::AnimatedValue),
    OutlineStyle(T),
    OutlineWidth(<T as ToAnimatedValue>::AnimatedValue),
    OutlineOffset(T),
    PaddingTop(<T as ToAnimatedValue>::AnimatedValue),
    PaddingLeft(<T as ToAnimatedValue>::AnimatedValue),
    PaddingBottom(<T as ToAnimatedValue>::AnimatedValue),
    PaddingRight(<T as ToAnimatedValue>::AnimatedValue),
    Cursor(T),
    PointerEvents(T),
    Top(T),
    Left(T),
    Bottom(T),
    Right(T),
    ZIndex(T),
    FlexDirection(T),
    FlexWrap(T),
    JustifyContent(T),
    AlignContent(T),
    AlignItems(T),
    FlexGrow(<T as ToAnimatedValue>::AnimatedValue),
    FlexShrink(<T as ToAnimatedValue>::AnimatedValue),
    AlignSelf(T),
    Order(T),
    Width(T),
    MinWidth(T),
    MaxWidth(T),
    Height(T),
    MinHeight(T),
    MaxHeight(T),
    BoxSizing(T),
    TableLayout(T),
    TextOverflow(T),
    UnicodeBidi(T),
    TextDecorationLine(T),
}

An enum to represent a single computed value belonging to an animated property in order to be interpolated with another one. When interpolating, both values need to belong to the same property.

This is different to AnimatedProperty in the sense that AnimatedProperty also knows the final value to be used during the animation.

This is to be used in Gecko integration code.

FIXME: We need to add a path for custom properties, but that's trivial after this (is a similar path to that of PropertyDeclaration).

Variants

background-color

background-image

background-position-x

background-position-y

background-repeat

background-attachment

background-clip

background-origin

background-size

border-top-color

border-top-style

border-top-width

border-left-color

border-left-style

border-left-width

border-bottom-color

border-bottom-style

border-bottom-width

border-right-color

border-right-style

border-right-width

border-top-left-radius

border-top-right-radius

border-bottom-right-radius

border-bottom-left-radius

border-image-source

border-image-outset

border-image-repeat

border-image-width

border-image-slice

display

position

float

clear

vertical-align

overflow-x

overflow-y

transform

perspective

perspective-origin

backface-visibility

transform-style

transform-origin

color

column-width

column-count

column-gap

content

counter-increment

counter-reset

opacity

box-shadow

clip

filter

mix-blend-mode

font-family

font-style

font-variant-caps

font-weight

font-size

font-stretch

visibility

writing-mode

direction

image-rendering

border-collapse

empty-cells

caption-side

border-spacing

line-height

text-transform

text-indent

overflow-wrap

word-break

text-justify

text-align

letter-spacing

word-spacing

white-space

text-shadow

text-rendering

list-style-position

list-style-type

list-style-image

quotes

margin-top

margin-left

margin-bottom

margin-right

outline-color

outline-style

outline-width

outline-offset

padding-top

padding-left

padding-bottom

padding-right

cursor

pointer-events

top

left

bottom

right

z-index

flex-direction

flex-wrap

justify-content

align-content

align-items

flex-grow

flex-shrink

align-self

order

width

min-width

max-width

height

min-height

max-height

box-sizing

table-layout

text-overflow

unicode-bidi

text-decoration-line

Methods

impl AnimationValue
[src]

[src]

Returns the longhand id this animated value corresponds to.

[src]

"Uncompute" this animation value in order to be used inside the CSS cascade.

[src]

Construct an AnimationValue from a property declaration.

[src]

Get an AnimationValue for an AnimatableLonghand from a given computed values.

Trait Implementations

impl Clone for AnimationValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AnimationValue
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for AnimationValue
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl MallocSizeOf for AnimationValue
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl Animate for AnimationValue
[src]

[src]

Animate a value towards another one, given an animation procedure.

impl ComputeSquaredDistance for AnimationValue
[src]

[src]

Computes the squared distance between two animatable values.

impl ToAnimatedZero for AnimationValue
[src]

[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