pub struct TimeframeBarConfig {
pub height: f32,
pub bg_color: Color32,
pub text_color: Color32,
pub active_text_color: Color32,
pub active_bg: Color32,
pub hover_bg: Color32,
pub border_color: Color32,
pub btn_padding: f32,
}Expand description
Configuration for the timeframe bar
Fields§
§height: f32Height, in egui logical points.
bg_color: Color32Background color.
text_color: Color32Text color.
active_text_color: Color32Active text color.
active_bg: Color32Active background.
hover_bg: Color32Hover background.
border_color: Color32Border color.
btn_padding: f32Button padding, in egui logical points.
Implementations§
Source§impl TimeframeBarConfig
impl TimeframeBarConfig
Sourcepub fn from_theme(theme: &Theme) -> Self
pub fn from_theme(theme: &Theme) -> Self
Create config from theme
Trait Implementations§
Source§impl Clone for TimeframeBarConfig
impl Clone for TimeframeBarConfig
Source§fn clone(&self) -> TimeframeBarConfig
fn clone(&self) -> TimeframeBarConfig
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 TimeframeBarConfig
impl Debug for TimeframeBarConfig
Auto Trait Implementations§
impl Freeze for TimeframeBarConfig
impl RefUnwindSafe for TimeframeBarConfig
impl Send for TimeframeBarConfig
impl Sync for TimeframeBarConfig
impl Unpin for TimeframeBarConfig
impl UnsafeUnpin for TimeframeBarConfig
impl UnwindSafe for TimeframeBarConfig
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