pub struct CheckBoxStyle {
pub checked_symbol: &'static str,
pub unchecked_symbol: &'static str,
pub focused_fg: Color,
pub unfocused_fg: Color,
pub disabled_fg: Color,
pub checked_fg: Color,
}Expand description
Configuration for checkbox appearance.
Fields§
§checked_symbol: &'static strSymbol when checked.
unchecked_symbol: &'static strSymbol when unchecked.
focused_fg: ColorForeground color when focused.
unfocused_fg: ColorForeground color when unfocused.
disabled_fg: ColorForeground color when disabled.
checked_fg: ColorForeground color when checked (unfocused).
Implementations§
Source§impl CheckBoxStyle
impl CheckBoxStyle
Sourcepub fn focused_fg(self, color: Color) -> Self
pub fn focused_fg(self, color: Color) -> Self
Set the focused foreground color.
Sourcepub fn unfocused_fg(self, color: Color) -> Self
pub fn unfocused_fg(self, color: Color) -> Self
Set the unfocused foreground color.
Sourcepub fn disabled_fg(self, color: Color) -> Self
pub fn disabled_fg(self, color: Color) -> Self
Set the disabled foreground color.
Sourcepub fn checked_fg(self, color: Color) -> Self
pub fn checked_fg(self, color: Color) -> Self
Set the checked foreground color.
Trait Implementations§
Source§impl Clone for CheckBoxStyle
impl Clone for CheckBoxStyle
Source§fn clone(&self) -> CheckBoxStyle
fn clone(&self) -> CheckBoxStyle
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckBoxStyle
impl Debug for CheckBoxStyle
Auto Trait Implementations§
impl Freeze for CheckBoxStyle
impl RefUnwindSafe for CheckBoxStyle
impl Send for CheckBoxStyle
impl Sync for CheckBoxStyle
impl Unpin for CheckBoxStyle
impl UnwindSafe for CheckBoxStyle
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