[][src]Enum makepad_render::Play

pub enum Play {
    Chain {
        duration: f64,
    },
    Cut {
        duration: f64,
    },
    Single {
        duration: f64,
        cut: bool,
        term: bool,
        end: f64,
    },
    Loop {
        duration: f64,
        cut: bool,
        term: bool,
        repeats: f64,
        end: f64,
    },
    Reverse {
        duration: f64,
        cut: bool,
        term: bool,
        repeats: f64,
        end: f64,
    },
    Bounce {
        duration: f64,
        cut: bool,
        term: bool,
        repeats: f64,
        end: f64,
    },
    Forever {
        duration: f64,
        cut: bool,
        term: bool,
    },
    LoopForever {
        duration: f64,
        cut: bool,
        term: bool,
        end: f64,
    },
    ReverseForever {
        duration: f64,
        cut: bool,
        term: bool,
        end: f64,
    },
    BounceForever {
        duration: f64,
        cut: bool,
        term: bool,
        end: f64,
    },
}

Variants

Chain

Fields of Chain

duration: f64
Cut

Fields of Cut

duration: f64
Single

Fields of Single

duration: f64cut: boolterm: boolend: f64
Loop

Fields of Loop

duration: f64cut: boolterm: boolrepeats: f64end: f64
Reverse

Fields of Reverse

duration: f64cut: boolterm: boolrepeats: f64end: f64
Bounce

Fields of Bounce

duration: f64cut: boolterm: boolrepeats: f64end: f64
Forever

Fields of Forever

duration: f64cut: boolterm: bool
LoopForever

Fields of LoopForever

duration: f64cut: boolterm: boolend: f64
ReverseForever

Fields of ReverseForever

duration: f64cut: boolterm: boolend: f64
BounceForever

Fields of BounceForever

duration: f64cut: boolterm: boolend: f64

Methods

impl Play[src]

pub fn duration(&self) -> f64[src]

pub fn total_time(&self) -> f64[src]

pub fn cut(&self) -> bool[src]

pub fn repeats(&self) -> f64[src]

pub fn term(&self) -> bool[src]

pub fn compute_time(&self, time: f64) -> f64[src]

Trait Implementations

impl Clone for Play[src]

Auto Trait Implementations

impl RefUnwindSafe for Play

impl Send for Play

impl Sync for Play

impl Unpin for Play

impl UnwindSafe for Play

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.