FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LinearAxis

    struct · ferroui-controls-charts · v0.5.0

    struct LinearAxis
    

    A finite numeric axis with independently automatic bounds and tick spacing.

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

    Returns a strong reference to this object.

    Source

    minimum_property

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

    Source

    maximum_property

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

    Source

    spacing_property

    fn spacing_property() -> &'static StyledProperty<Option<f64>>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    minimum

    fn minimum(self: &Self) -> Option<f64>
    

    Source

    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.

    Source

    maximum

    fn maximum(self: &Self) -> Option<f64>
    

    Source

    set_maximum

    fn set_maximum(self: &Self, value: Option<f64>) -> Result<(), ChartError>
    

    Source

    spacing

    fn spacing(self: &Self) -> Option<f64>
    

    Source

    set_spacing

    fn set_spacing(self: &Self, value: Option<f64>) -> Result<(), ChartError>
    

    Source

    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.

    Source

    Trait implementations

    Availability

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