Enum omn_sprites::PlayMode [] [src]

pub enum PlayMode {
    OneShot,
    Hold,
    Loop,
}

PlayMode controls how the current frame data for a clip at a certain time is calculated with regards to the duration bounds.

Variants

OneShot will play start to finish, but requests for CellInfo after the duration will get you None.

Hold is similar to OneShot however time past the end of the duration will repeat the final frame.

A Loop clip never ends and will return to the start of the clip when exhausted.

Trait Implementations

impl PartialEq for PlayMode
[src]

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

This method tests for !=.

impl Debug for PlayMode
[src]

Formats the value using the given formatter.

impl Clone for PlayMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more