pub struct GridLine { /* private fields */ }
Expand description
§GridLine
Indicator used by axis to serve as a reference for the displayed data
Implementations§
Source§impl GridLine
impl GridLine
Sourcepub fn set_color_rgb(&mut self, red: f32, green: f32, blue: f32)
pub fn set_color_rgb(&mut self, red: f32, green: f32, blue: f32)
Set the color of a gridline
Sourcepub fn set_color_rgba(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
pub fn set_color_rgba(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
Set the color of a gridline
Sourcepub fn scale_size(&mut self, factor: f64)
pub fn scale_size(&mut self, factor: f64)
Scale the width of a gridline
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridLine
impl RefUnwindSafe for GridLine
impl Send for GridLine
impl Sync for GridLine
impl Unpin for GridLine
impl UnwindSafe for GridLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more