FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RangeBase

    struct · ferroui-controls · v0.5.0

    struct RangeBase
    

    Base class for controls that display a value within a range.

    This class is abstract: only its subclasses can be created.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RangeBase>
    

    Returns a strong reference to this object.

    Source

    minimum_property

    fn minimum_property() -> &'static StyledProperty<f64>
    

    Defines the Minimum property.

    Source

    maximum_property

    fn maximum_property() -> &'static StyledProperty<f64>
    

    Defines the Maximum property.

    Source

    value_property

    fn value_property() -> &'static StyledProperty<f64>
    

    Defines the Value property.

    Source

    small_change_property

    fn small_change_property() -> &'static StyledProperty<f64>
    

    Defines the SmallChange property.

    Source

    large_change_property

    fn large_change_property() -> &'static StyledProperty<f64>
    

    Defines the LargeChange property.

    Source

    value_changed_event

    fn value_changed_event() -> &'static RoutedEvent<RangeBaseValueChangedEventArgs>
    

    Defines the ValueChanged event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    value_changed

    fn value_changed(self: &Self, handler: impl Fn(&Interactive, &RangeBaseValueChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the Value property changes.

    Source

    minimum

    fn minimum(self: &Self) -> f64
    

    The minimum possible value.

    Source

    set_minimum

    fn set_minimum(self: &Self, value: f64)
    

    Source

    maximum

    fn maximum(self: &Self) -> f64
    

    The maximum possible value.

    Source

    set_maximum

    fn set_maximum(self: &Self, value: f64)
    

    Source

    value

    fn value(self: &Self) -> f64
    

    The current value.

    Source

    set_range_value

    fn set_range_value(self: &Self, value: f64)
    

    Source

    small_change

    fn small_change(self: &Self) -> f64
    

    The small increment value added to or subtracted from the value.

    Source

    set_small_change

    fn set_small_change(self: &Self, value: f64)
    

    Source

    large_change

    fn large_change(self: &Self) -> f64
    

    The large increment value added to or subtracted from the value.

    Source

    set_large_change

    fn set_large_change(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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