FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TickBar

    struct · ferroui-controls · v0.5.0

    struct TickBar
    

    An element that is used for drawing the ticks of a Slider.

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

    Returns a strong reference to this object.

    Source

    fill_property

    fn fill_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the Fill property.

    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

    tick_frequency_property

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

    Defines the TickFrequency property.

    Source

    orientation_property

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

    Defines the Orientation property.

    Source

    ticks_property

    fn ticks_property() -> &'static StyledProperty<Option<TickList>>
    

    Defines the Ticks property.

    Source

    is_direction_reversed_property

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

    Defines the IsDirectionReversed property.

    Source

    placement_property

    fn placement_property() -> &'static StyledProperty<TickBarPlacement>
    

    Defines the Placement property.

    Source

    reserved_space_property

    fn reserved_space_property() -> &'static StyledProperty<Rect>
    

    Defines the ReservedSpace property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    fill

    fn fill(self: &Self) -> Option<Rc<dyn IBrush>>
    

    The brush used to fill the ticks of the tick bar.

    Source

    set_fill

    fn set_fill(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    minimum

    fn minimum(self: &Self) -> f64
    

    The logical position where the minimum tick will be drawn.

    Source

    set_minimum

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

    Source

    maximum

    fn maximum(self: &Self) -> f64
    

    The logical position where the maximum tick will be drawn.

    Source

    set_maximum

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

    Source

    tick_frequency

    fn tick_frequency(self: &Self) -> f64
    

    The tick frequency defines how the ticks will be drawn.

    Source

    set_tick_frequency

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

    Source

    orientation

    fn orientation(self: &Self) -> Orientation
    

    The orientation of the tick bar's parent.

    Source

    set_orientation

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

    Source

    ticks

    fn ticks(self: &Self) -> Option<TickList>
    

    The collection of values which are the logical positions used to draw the ticks.

    Source

    set_ticks

    fn set_ticks(self: &Self, value: Option<TickList>)
    

    Source

    is_direction_reversed

    fn is_direction_reversed(self: &Self) -> bool
    

    Defines the direction of value incrementation.

    By default, if the orientation is horizontal, ticks will be drawn from left to right (and from bottom to top for the vertical orientation). If this is true the ticks are drawn in the opposite direction.

    Source

    set_is_direction_reversed

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

    Source

    placement

    fn placement(self: &Self) -> TickBarPlacement
    

    Specifies how the ticks will be placed. This property affects the way ticks are drawn.

    Source

    set_placement

    fn set_placement(self: &Self, value: TickBarPlacement)
    

    Source

    reserved_space

    fn reserved_space(self: &Self) -> Rect
    

    The tick bar uses the reserved space for left and right spacing (for the horizontal orientation) or top and bottom spacing (for the vertical orientation). The space on both sides of the tick bar is half of the specified reserved space.

    Source

    set_reserved_space

    fn set_reserved_space(self: &Self, value: Rect)
    

    Source

    Trait implementations

    Availability

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