FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Player

    struct · ferroui-designer-animation · v0.5.0

    struct Player
    

    Clock-free playback controller. The host supplies measured elapsed time, making seeks and tests independent of frame rate. No timer/thread is created by this crate.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    time

    fn time(self: &Self) -> f64
    

    Source

    is_playing

    fn is_playing(self: &Self) -> bool
    

    Source

    play

    fn play(self: &mut Self)
    

    Source

    pause

    fn pause(self: &mut Self)
    

    Source

    stop

    fn stop(self: &mut Self)
    

    Source

    seek

    fn seek(self: &mut Self, time: f64) -> Result<()>
    

    Source

    advance_with_visibility

    fn advance_with_visibility(self: &mut Self, delta: f64, timeline: &Timeline, visible: bool, manually_started: bool) -> Result<Vec<Sample>>
    

    Advance without charging hidden time to policies that pause when invisible. This preserves the elapsed position and resumes without a catch-up jump.

    Source

    advance

    fn advance(self: &mut Self, delta: f64, timeline: &Timeline) -> Result<Vec<Sample>>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Debug
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.