Enum azul_webrender_api::ReferenceFrameKind[][src]

pub enum ReferenceFrameKind {
    Transform {
        is_2d_scale_translation: bool,
        should_snap: bool,
    },
    Perspective {
        scrolling_relative_to: Option<ExternalScrollId>,
    },
}

Variants

Transform

A normal transform matrix, may contain perspective (the CSS transform property)

Show fields

Fields of Transform

is_2d_scale_translation: bool

Optionally marks the transform as only ever having a simple 2D scale or translation, allowing for optimizations.

should_snap: bool

Marks that the transform should be snapped. Used for transforms which animate in response to scrolling, eg for zooming or dynamic toolbar fixed-positioning.

Perspective

A perspective transform, that optionally scrolls relative to a specific scroll node

Show fields

Fields of Perspective

scrolling_relative_to: Option<ExternalScrollId>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Deserialize from the buffer pointed to by bytes. Read more

Return the maximum number of bytes that the serialized version of Self will occupy. Read more

Serialize into the buffer pointed to by bytes. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.