TrackImpl
trait · ferroui-controls · v0.5.0
trait TrackImpl: ControlImpl + $crate::Upcast<Track>
The overridable members introduced by the class.
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.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.