pub struct SymbolHeaderConfig {
pub height: f32,
pub bg_color: Color32,
pub text_color: Color32,
pub label_color: Color32,
pub bullish_color: Color32,
pub bearish_color: Color32,
pub separator_color: Color32,
pub show_company_name: bool,
pub show_bid_ask: bool,
pub show_volume: bool,
}Expand description
Configuration for the symbol header
Fields§
§height: f32Height, in egui logical points.
bg_color: Color32Retained color value; the header lets its parent paint the background.
text_color: Color32Text color.
label_color: Color32Label color.
bullish_color: Color32Bullish color.
bearish_color: Color32Bearish color.
separator_color: Color32Separator color.
show_company_name: boolWhether to show the instrument description, exchange and interval label.
show_bid_ask: boolWhether to show bid ask.
show_volume: boolWhether to show volume.
Implementations§
Source§impl SymbolHeaderConfig
impl SymbolHeaderConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Create config with colours fixed to theme.
Trait Implementations§
Source§impl Clone for SymbolHeaderConfig
impl Clone for SymbolHeaderConfig
Source§fn clone(&self) -> SymbolHeaderConfig
fn clone(&self) -> SymbolHeaderConfig
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 SymbolHeaderConfig
impl Debug for SymbolHeaderConfig
Auto Trait Implementations§
impl Freeze for SymbolHeaderConfig
impl RefUnwindSafe for SymbolHeaderConfig
impl Send for SymbolHeaderConfig
impl Sync for SymbolHeaderConfig
impl Unpin for SymbolHeaderConfig
impl UnsafeUnpin for SymbolHeaderConfig
impl UnwindSafe for SymbolHeaderConfig
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,
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