FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Cue

    struct · ferroui-base · v0.5.0

    struct Cue
    

    Determines the time index for a key frame: a fraction of the animation's duration in [0, 1].

    View source

    Members

    new

    fn new(value: f64) -> Self
    

    Creates a cue. Panics when the value is outside [0, 1].

    Source

    try_new

    fn try_new(value: f64) -> Option<Self>
    

    Creates a cue; None when the value is outside [0, 1].

    Source

    cue_value

    fn cue_value(self: &Self) -> f64
    

    The normalized percent value of the cue.

    Source

    parse

    fn parse(value: &str) -> Result<Cue, FormatError>
    

    Parses a cue from a percentage, with or without a trailing %.

    Source

    equals_f64

    fn equals_f64(self: &Self, other: f64) -> bool
    

    Checks for value equality with a number.

    Source

    Trait implementations

    Availability

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