pub struct CandleColorConfig {
pub color_by_previous_close: bool,
pub show_body: bool,
pub show_border: bool,
pub show_wick: bool,
pub body_up: Color32,
pub body_down: Color32,
pub border_up: Color32,
pub border_down: Color32,
pub wick_up: Color32,
pub wick_down: Color32,
}Expand description
Candle color configuration (body, border, wick for up/down candles) and which parts are drawn. Saved settings without a field take its default.
Fields§
§color_by_previous_close: boolColour each candle by its close against the previous close instead of its open.
show_body: boolWhether candle bodies are filled.
show_border: boolWhether candle borders are drawn.
show_wick: boolWhether candle wicks are drawn.
body_up: Color32Body color of rising candles.
body_down: Color32Body color of falling candles.
border_up: Color32Border color of rising candles.
border_down: Color32Border color of falling candles.
wick_up: Color32Wick color of rising candles.
wick_down: Color32Wick color of falling candles.
Implementations§
Source§impl CandleColorConfig
impl CandleColorConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Candle body, border and wick colours from theme.
Trait Implementations§
Source§impl Clone for CandleColorConfig
impl Clone for CandleColorConfig
Source§fn clone(&self) -> CandleColorConfig
fn clone(&self) -> CandleColorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CandleColorConfig
impl Debug for CandleColorConfig
Source§impl Default for CandleColorConfig
impl Default for CandleColorConfig
Source§impl<'de> Deserialize<'de> for CandleColorConfigwhere
CandleColorConfig: Default,
impl<'de> Deserialize<'de> for CandleColorConfigwhere
CandleColorConfig: 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CandleColorConfig
impl PartialEq for CandleColorConfig
Source§impl Serialize for CandleColorConfig
impl Serialize for CandleColorConfig
impl StructuralPartialEq for CandleColorConfig
Auto Trait Implementations§
impl Freeze for CandleColorConfig
impl RefUnwindSafe for CandleColorConfig
impl Send for CandleColorConfig
impl Sync for CandleColorConfig
impl Unpin for CandleColorConfig
impl UnsafeUnpin for CandleColorConfig
impl UnwindSafe for CandleColorConfig
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