pub struct Modebar<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Modebar<'a>
impl<'a> Modebar<'a>
Sourcepub fn orientation(&mut self, orientation: Orientation) -> &mut Self
pub fn orientation(&mut self, orientation: Orientation) -> &mut Self
Sets the orientation of the modebar.
default: h
Sourcepub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
Sets the background color of the modebar.
Sourcepub fn color(&mut self, color: &'a str) -> &mut Self
pub fn color(&mut self, color: &'a str) -> &mut Self
Sets the color of the icons in the modebar.
Sourcepub fn activecolor(&mut self, activecolor: &'a str) -> &mut Self
pub fn activecolor(&mut self, activecolor: &'a str) -> &mut Self
Sets the color of the active or hovered on icons in the modebar.
Sourcepub fn uirevision(&mut self, uirevision: Any) -> &mut Self
pub fn uirevision(&mut self, uirevision: Any) -> &mut Self
Controls persistence of user-driven changes related to the modebar, including hovermode
, dragmode
, and showspikes
at both the root level and inside subplots. Defaults to layout.uirevision
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Modebar<'a>
impl<'a> RefUnwindSafe for Modebar<'a>
impl<'a> Send for Modebar<'a>
impl<'a> Sync for Modebar<'a>
impl<'a> Unpin for Modebar<'a>
impl<'a> UnwindSafe for Modebar<'a>
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
Mutably borrows from an owned value. Read more