TickBar
struct · ferroui-controls · v0.5.0
struct TickBar
An element that is used for drawing the ticks of a Slider.
Members
TYPEto_reffill_propertyminimum_propertymaximum_propertytick_frequency_propertyorientation_propertyticks_propertyis_direction_reversed_propertyplacement_propertyreserved_space_propertyconstructnewfillset_fillminimumset_minimummaximumset_maximumtick_frequencyset_tick_frequencyorientationset_orientationticksset_ticksis_direction_reversedset_is_direction_reversedplacementset_placementreserved_spaceset_reserved_space
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TickBar>
Returns a strong reference to this object.
fill_property
fn fill_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the Fill property.
minimum_property
fn minimum_property() -> &'static StyledProperty<f64>
Defines the Minimum property.
maximum_property
fn maximum_property() -> &'static StyledProperty<f64>
Defines the Maximum property.
tick_frequency_property
fn tick_frequency_property() -> &'static StyledProperty<f64>
Defines the TickFrequency property.
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
Defines the Orientation property.
ticks_property
fn ticks_property() -> &'static StyledProperty<Option<TickList>>
Defines the Ticks property.
is_direction_reversed_property
fn is_direction_reversed_property() -> &'static StyledProperty<bool>
Defines the IsDirectionReversed property.
placement_property
fn placement_property() -> &'static StyledProperty<TickBarPlacement>
Defines the Placement property.
reserved_space_property
fn reserved_space_property() -> &'static StyledProperty<Rect>
Defines the ReservedSpace property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
fill
fn fill(self: &Self) -> Option<Rc<dyn IBrush>>
The brush used to fill the ticks of the tick bar.
set_fill
fn set_fill(self: &Self, value: Option<Rc<dyn IBrush>>)
minimum
fn minimum(self: &Self) -> f64
The logical position where the minimum tick will be drawn.
set_minimum
fn set_minimum(self: &Self, value: f64)
maximum
fn maximum(self: &Self) -> f64
The logical position where the maximum tick will be drawn.
set_maximum
fn set_maximum(self: &Self, value: f64)
tick_frequency
fn tick_frequency(self: &Self) -> f64
The tick frequency defines how the ticks will be drawn.
set_tick_frequency
fn set_tick_frequency(self: &Self, value: f64)
orientation
fn orientation(self: &Self) -> Orientation
The orientation of the tick bar's parent.
set_orientation
fn set_orientation(self: &Self, value: Orientation)
ticks
fn ticks(self: &Self) -> Option<TickList>
The collection of values which are the logical positions used to draw the ticks.
set_ticks
fn set_ticks(self: &Self, value: Option<TickList>)
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.
set_is_direction_reversed
fn set_is_direction_reversed(self: &Self, value: bool)
placement
fn placement(self: &Self) -> TickBarPlacement
Specifies how the ticks will be placed. This property affects the way ticks are drawn.
set_placement
fn set_placement(self: &Self, value: TickBarPlacement)
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.
set_reserved_space
fn set_reserved_space(self: &Self, value: Rect)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TickBar>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.