FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TrackImpl

    trait · ferroui-controls · v0.5.0

    trait TrackImpl: ControlImpl + $crate::Upcast<Track>
    

    The overridable members introduced by the class.

    View source

    Members

    value_from_point

    fn value_from_point(this: &Self, point: Point) -> f64
    

    Calculates the distance along the thumb of a specified point along the track.

    Returns the distance between the thumb and the specified point value.

    Source

    value_from_distance

    fn value_from_distance(this: &Self, horizontal: f64, vertical: f64) -> f64
    

    Calculates the change in the value of the track when the thumb moves by the given horizontal and vertical displacement.

    Source

    Trait implementations

    Availability

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