Struct me3_framework::overlay::widgets::plot::LinkedAxisGroup
source · [−]pub struct LinkedAxisGroup { /* private fields */ }
Expand description
Defines how multiple plots share the same range for one or both of their axes. Can be added while building
a plot with Plot::link_axis
. Contains an internal state, meaning that this object should be stored by
the user between frames.
Implementations
sourceimpl LinkedAxisGroup
impl LinkedAxisGroup
pub fn new(link_x: bool, link_y: bool) -> LinkedAxisGroup
sourcepub fn x() -> LinkedAxisGroup
pub fn x() -> LinkedAxisGroup
Only link the x-axis.
sourcepub fn y() -> LinkedAxisGroup
pub fn y() -> LinkedAxisGroup
Only link the y-axis.
sourcepub fn both() -> LinkedAxisGroup
pub fn both() -> LinkedAxisGroup
Link both axes. Note that this still respects the aspect ratio of the individual plots.
sourcepub fn set_link_x(&mut self, link: bool)
pub fn set_link_x(&mut self, link: bool)
Change whether the x-axis is linked for this group. Using this after plots in this group have been drawn in this frame already may lead to unexpected results.
sourcepub fn set_link_y(&mut self, link: bool)
pub fn set_link_y(&mut self, link: bool)
Change whether the y-axis is linked for this group. Using this after plots in this group have been drawn in this frame already may lead to unexpected results.
Trait Implementations
sourceimpl Clone for LinkedAxisGroup
impl Clone for LinkedAxisGroup
sourcefn clone(&self) -> LinkedAxisGroup
fn clone(&self) -> LinkedAxisGroup
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<LinkedAxisGroup> for LinkedAxisGroup
impl PartialEq<LinkedAxisGroup> for LinkedAxisGroup
sourcefn eq(&self, other: &LinkedAxisGroup) -> bool
fn eq(&self, other: &LinkedAxisGroup) -> bool
impl StructuralPartialEq for LinkedAxisGroup
Auto Trait Implementations
impl !RefUnwindSafe for LinkedAxisGroup
impl !Send for LinkedAxisGroup
impl !Sync for LinkedAxisGroup
impl Unpin for LinkedAxisGroup
impl !UnwindSafe for LinkedAxisGroup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more