pub struct DirectionArrowConfig {
pub enabled: bool,
pub points: usize,
pub length: f32,
pub width: f32,
pub head: f32,
pub color: Option<Color32>,
}Expand description
Settings for the direction arrow drawn beside the newest point of a line.
The arrow uses the last points finite samples (5 by default), so a noisy stream
still shows the direction the buffer is growing. Only cartesian lines, areas, steps,
and candlesticks draw it; pie, radar, gauge, heatmap, and reference series do not.
Fields§
§enabled: boolDraw the arrow.
points: usizeSamples used to measure the direction; 5 by default.
length: f32Shaft length in points.
width: f32Shaft width in points.
head: f32Head length in points.
color: Option<Color32>Arrow color; the series color when None.
Trait Implementations§
Source§impl Clone for DirectionArrowConfig
impl Clone for DirectionArrowConfig
impl Copy for DirectionArrowConfig
Source§impl Debug for DirectionArrowConfig
impl Debug for DirectionArrowConfig
Source§impl Default for DirectionArrowConfig
impl Default for DirectionArrowConfig
Source§impl<'de> Deserialize<'de> for DirectionArrowConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for DirectionArrowConfig
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirectionArrowConfig
impl PartialEq for DirectionArrowConfig
Source§impl Serialize for DirectionArrowConfig
Available on crate feature serde only.
impl Serialize for DirectionArrowConfig
Available on crate feature
serde only.impl StructuralPartialEq for DirectionArrowConfig
Auto Trait Implementations§
impl Forget for DirectionArrowConfig
impl Freeze for DirectionArrowConfig
impl Move for DirectionArrowConfig
impl RefUnwindSafe for DirectionArrowConfig
impl Send for DirectionArrowConfig
impl Sync for DirectionArrowConfig
impl Unpin for DirectionArrowConfig
impl UnsafeUnpin for DirectionArrowConfig
impl UnwindSafe for DirectionArrowConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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