FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Track

    struct · ferroui-controls · v0.5.0

    struct Track
    

    A control that positions a Thumb and the buttons before and after it along a range: the building block of scroll bars and sliders.

    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<Track>
    

    Returns a strong reference to this object.

    Source

    value_from_point

    fn value_from_point(self: &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(self: &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

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    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

    viewport_size_property

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

    Defines the ViewportSize property.

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

    Defines the Orientation property.

    Source

    thumb_property

    fn thumb_property() -> &'static StyledProperty<Option<Ref<Thumb>>>
    

    Defines the Thumb property.

    Source

    increase_button_property

    fn increase_button_property() -> &'static StyledProperty<Option<Ref<Button>>>
    

    Defines the IncreaseButton property.

    Source

    decrease_button_property

    fn decrease_button_property() -> &'static StyledProperty<Option<Ref<Button>>>
    

    Defines the DecreaseButton property.

    Source

    is_direction_reversed_property

    fn is_direction_reversed_property() -> &'static StyledProperty<bool>
    

    Defines the IsDirectionReversed property.

    Source

    ignore_thumb_drag_property

    fn ignore_thumb_drag_property() -> &'static StyledProperty<bool>
    

    Defines the IgnoreThumbDrag property.

    Source

    defer_thumb_drag_property

    fn defer_thumb_drag_property() -> &'static StyledProperty<bool>
    

    Defines the DeferThumbDrag property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    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

    viewport_size

    fn viewport_size(self: &Self) -> f64
    

    The amount of the scrollable content that is currently visible.

    Source

    set_viewport_size

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

    Source

    orientation

    fn orientation(self: &Self) -> Orientation
    

    The orientation of the track.

    Source

    set_orientation

    fn set_orientation(self: &Self, value: Orientation)
    

    Source

    thumb

    fn thumb(self: &Self) -> Option<Ref<Thumb>>
    

    The thumb of the track: its content.

    Source

    set_thumb

    fn set_thumb(self: &Self, value: impl Into<Nullable<Thumb>>)
    

    Source

    increase_button

    fn increase_button(self: &Self) -> Option<Ref<Button>>
    

    The button that increases the value.

    Source

    set_increase_button

    fn set_increase_button(self: &Self, value: impl Into<Nullable<Button>>)
    

    Source

    decrease_button

    fn decrease_button(self: &Self) -> Option<Ref<Button>>
    

    The button that decreases the value.

    Source

    set_decrease_button

    fn set_decrease_button(self: &Self, value: impl Into<Nullable<Button>>)
    

    Source

    is_direction_reversed

    fn is_direction_reversed(self: &Self) -> bool
    

    Whether the direction of increasing value is reversed.

    Source

    set_is_direction_reversed

    fn set_is_direction_reversed(self: &Self, value: bool)
    

    Source

    ignore_thumb_drag

    fn ignore_thumb_drag(self: &Self) -> bool
    

    Whether drags of the thumb are ignored.

    Source

    set_ignore_thumb_drag

    fn set_ignore_thumb_drag(self: &Self, value: bool)
    

    Source

    defer_thumb_drag

    fn defer_thumb_drag(self: &Self) -> bool
    

    Whether the value is only updated when a drag of the thumb completes.

    Source

    set_defer_thumb_drag

    fn set_defer_thumb_drag(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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