FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IClock

    trait · ferroui-base · v0.5.0

    trait IClock: IObservable<crate::animation::SignedDuration> + 'static
    

    A source of animation time: an observable that produces the time elapsed since the clock started, once per frame.

    Every timing decision in the animation system is derived from the values a clock produces; nothing reads a system timer.

    View source

    Members

    play_state

    fn play_state(self: &Self) -> PlayState
    

    The playback state of the clock.

    Source

    set_play_state

    fn set_play_state(self: &Self, value: PlayState)
    

    Sets the playback state of the clock.

    Source

    Trait implementations

    Availability

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