logo
pub struct MovieSprite {
    pub inner: Sprite,
    pub symbol: MovieSymbol,
    pub speed: AnimatedFloat,
    pub paused: bool,
    /* private fields */
}
Expand description

An instanced Flump animation.

Fields

inner: Spritesymbol: MovieSymbol

The symbol this sprite displays.

speed: AnimatedFloat

The playback speed multiplier of this movie, defaults to 1.0. Higher values will play faster. This does not affect the speed of nested child movies, use SpeedAdjuster if you need that.

paused: bool

Whether this movie is currently paused.

Implementations

Retrieves a named layer from this movie. Children can be added to the returned entity to add sprites that move with the layer, which for example, can be used to add equipment sprites to an avatar. @param required If true and the layer is not found, an error is thrown.

Internal method to set the position to 0 and skip the next update. This is required to modify the playback position of child movies during an update step, so that after the update trickles through the children, they end up at position=0 instead of position=dt.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

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

Formats the value using the given formatter. Read more

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The name of this symbol.

Instantiate a sprite that displays this symbol.

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

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. 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.