LinearAxis
struct · ferroui-controls-charts · v0.5.0
struct LinearAxis
A finite numeric axis with independently automatic bounds and tick spacing.
Members
TYPEto_refminimum_propertymaximum_propertyspacing_propertyconstructnewminimumset_minimummaximumset_maximumspacingset_spacingresolve_range
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LinearAxis>
Returns a strong reference to this object.
minimum_property
fn minimum_property() -> &'static StyledProperty<Option<f64>>
maximum_property
fn maximum_property() -> &'static StyledProperty<Option<f64>>
spacing_property
fn spacing_property() -> &'static StyledProperty<Option<f64>>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
minimum
fn minimum(self: &Self) -> Option<f64>
set_minimum
fn set_minimum(self: &Self, value: Option<f64>) -> Result<(), ChartError>
Sets a finite lower bound, or None for automatic range calculation.
A rejected change preserves every previous property value.
maximum
fn maximum(self: &Self) -> Option<f64>
set_maximum
fn set_maximum(self: &Self, value: Option<f64>) -> Result<(), ChartError>
spacing
fn spacing(self: &Self) -> Option<f64>
set_spacing
fn set_spacing(self: &Self, value: Option<f64>) -> Result<(), ChartError>
resolve_range
fn resolve_range(self: &Self, values: &[f64], target_tick_count: usize) -> NumericRange
Resolves automatic bounds from the finite samples, ignoring missing
(NaN) and infinite values. Does not mutate the public properties.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<LinearAxis>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.