#[non_exhaustive]pub struct CrosshairOptions {Show 16 fields
pub mode: CrosshairMode,
pub style: CrosshairStyle,
pub vert_line_style: LineStyle,
pub horz_line_style: LineStyle,
pub vert_line_visible: bool,
pub horz_line_visible: bool,
pub vert_line_color: Color32,
pub horz_line_color: Color32,
pub vert_line_width: f32,
pub horz_line_width: f32,
pub label_visible: bool,
pub vert_label_visible: bool,
pub horz_label_visible: bool,
pub vert_label_background_color: Color32,
pub horz_label_background_color: Color32,
pub label_text_color: Color32,
}Expand description
Crosshair options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: CrosshairModeCrosshair mode
style: CrosshairStyleCrosshair visual style (Full/Dot/Arrow/Hidden)
vert_line_style: LineStyleVertical line style
horz_line_style: LineStyleHorizontal line style
vert_line_visible: boolShow vertical line
horz_line_visible: boolShow horizontal line
vert_line_color: Color32Vertical line color (Color32::PLACEHOLDER: active theme)
horz_line_color: Color32Horizontal line color (Color32::PLACEHOLDER: active theme)
vert_line_width: f32Vertical line width
horz_line_width: f32Horizontal line width
label_visible: boolShow axis labels, subject to each label’s visibility switch.
vert_label_visible: boolShow the time-axis label, independently of the vertical line. Needs label_visible.
horz_label_visible: boolShow the price-axis label, independently of the horizontal line. Needs label_visible.
Also applies to volume and study values.
vert_label_background_color: Color32Background of the vertical line’s label on the time axis (Color32::PLACEHOLDER:
active theme)
horz_label_background_color: Color32Background of the horizontal line’s label on the price axis (Color32::PLACEHOLDER:
active theme)
label_text_color: Color32Label text color (Color32::PLACEHOLDER: active theme)
Trait Implementations§
Source§impl Clone for CrosshairOptions
impl Clone for CrosshairOptions
Source§fn clone(&self) -> CrosshairOptions
fn clone(&self) -> CrosshairOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CrosshairOptions
Source§impl Debug for CrosshairOptions
impl Debug for CrosshairOptions
Source§impl Default for CrosshairOptions
impl Default for CrosshairOptions
Source§impl<'de> Deserialize<'de> for CrosshairOptionswhere
CrosshairOptions: Default,
impl<'de> Deserialize<'de> for CrosshairOptionswhere
CrosshairOptions: Default,
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>,
Source§impl PartialEq for CrosshairOptions
impl PartialEq for CrosshairOptions
Source§impl Serialize for CrosshairOptions
impl Serialize for CrosshairOptions
impl StructuralPartialEq for CrosshairOptions
Auto Trait Implementations§
impl Freeze for CrosshairOptions
impl RefUnwindSafe for CrosshairOptions
impl Send for CrosshairOptions
impl Sync for CrosshairOptions
impl Unpin for CrosshairOptions
impl UnsafeUnpin for CrosshairOptions
impl UnwindSafe for CrosshairOptions
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
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> ⓘ
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> ⓘ
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