pub struct ResolvedAxis {
pub title: Option<TextElement>,
pub text: Option<TextElement>,
pub line: Option<LineElement>,
pub ticks: Option<LineElement>,
pub ticks_minor: Option<LineElement>,
pub tick_length: Length,
pub tick_length_minor: Length,
pub tick_gap: Length,
pub title_gap: Length,
pub title_location: TitleLocation,
}Expand description
Bundle of resolved AxisTheme fields for one (channel, side).
Returned by PerAxis::resolve; elements are owned (cascaded
through every layer including the type’s concrete fallback) so
callers can read each field without re-walking the chain.
Length fields remain unresolved here — they’re resolved against
the relevant parent at draw time (text size against base text,
tick length against the line root, etc.).
Fields§
§title: Option<TextElement>Axis title element, or None if Blank.
text: Option<TextElement>Tick label element, or None.
line: Option<LineElement>Baseline element, or None.
ticks: Option<LineElement>Major tick element, or None.
ticks_minor: Option<LineElement>Minor tick element, or None.
tick_length: LengthMajor-tick length (sign flips direction).
tick_length_minor: LengthMinor-tick length (sign flips direction).
tick_gap: LengthGap between tick end and label near-edge.
title_gap: LengthGap between the outer edge of the label rail and the axis title’s near edge. Always positive.
title_location: TitleLocationAxis-title placement.
Trait Implementations§
Source§impl Clone for ResolvedAxis
impl Clone for ResolvedAxis
Source§fn clone(&self) -> ResolvedAxis
fn clone(&self) -> ResolvedAxis
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedAxis
impl RefUnwindSafe for ResolvedAxis
impl Send for ResolvedAxis
impl Sync for ResolvedAxis
impl Unpin for ResolvedAxis
impl UnsafeUnpin for ResolvedAxis
impl UnwindSafe for ResolvedAxis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.