pub struct RangeBase {
pub minimum: f64,
pub maximum: f64,
pub value: f64,
}Expand description
Minimum, Maximum and Value of a RangeBase control.
Fields§
§minimum: f64§maximum: f64§value: f64Implementations§
Source§impl RangeBase
impl RangeBase
pub fn new(minimum: f64, maximum: f64, value: f64) -> RangeBase
Sourcepub fn coerced(self) -> RangeBase
pub fn coerced(self) -> RangeBase
CRangeBase::SetValue for the three properties together: Maximum is kept at or above Minimum, and Value is clamped between them (CoerceAndSetValue).
Sourcepub fn coerce_value(&self, value: f64) -> f64
pub fn coerce_value(&self, value: f64) -> f64
CRangeBase::CoerceAndSetValue: what put_Value(value) stores.
Sourcepub fn fraction_of(&self, value: f64) -> f64
pub fn fraction_of(&self, value: f64) -> f64
Slider::UpdateTrackLayout’s multiplier: the share of the track before value, 0 for an empty range.
Trait Implementations§
impl Copy for RangeBase
impl StructuralPartialEq for RangeBase
Auto Trait Implementations§
impl Forget for RangeBase
impl Freeze for RangeBase
impl Move for RangeBase
impl RefUnwindSafe for RangeBase
impl Send for RangeBase
impl Sync for RangeBase
impl Unpin for RangeBase
impl UnsafeUnpin for RangeBase
impl UnwindSafe for RangeBase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more