pub struct WidgetStyle { /* private fields */ }Expand description
A theme style resolved for the current frame: pulses are evaluated at one phase.
Implementations§
Source§impl WidgetStyle
impl WidgetStyle
Sourcepub fn color(&self, key: &str) -> Option<Rgb>
pub fn color(&self, key: &str) -> Option<Rgb>
The colour stored under key (fg, bg, pillar, track, …).
Sourcepub fn padding(&self) -> Padding
pub fn padding(&self) -> Padding
Padding from padding = [vertical, horizontal] or padding = n; zero when unset.
Sourcepub fn is_animated(&self) -> bool
pub fn is_animated(&self) -> bool
Whether drawing this style needs animation frames.
Trait Implementations§
Source§impl Clone for WidgetStyle
impl Clone for WidgetStyle
Source§fn clone(&self) -> WidgetStyle
fn clone(&self) -> WidgetStyle
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 WidgetStyle
impl Debug for WidgetStyle
Source§impl PartialEq for WidgetStyle
impl PartialEq for WidgetStyle
impl StructuralPartialEq for WidgetStyle
Auto Trait Implementations§
impl Freeze for WidgetStyle
impl RefUnwindSafe for WidgetStyle
impl Send for WidgetStyle
impl Sync for WidgetStyle
impl Unpin for WidgetStyle
impl UnsafeUnpin for WidgetStyle
impl UnwindSafe for WidgetStyle
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
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