pub struct ButtonAppearanceGenerator {
pub style: ButtonStyle,
pub size: f64,
pub border_color: Color,
pub background_color: Color,
pub check_color: Color,
pub border_width: f64,
}Expand description
Checkbox/Radio button appearance generator
Fields§
§style: ButtonStyleButton style
size: f64Size of the button
border_color: ColorBorder color
background_color: ColorBackground color
check_color: ColorCheck/dot color
border_width: f64Border width
Implementations§
Source§impl ButtonAppearanceGenerator
impl ButtonAppearanceGenerator
Sourcepub fn generate_checked(&self) -> Result<Stream>
pub fn generate_checked(&self) -> Result<Stream>
Generate appearance stream for checked state
Sourcepub fn generate_unchecked(&self) -> Result<Stream>
pub fn generate_unchecked(&self) -> Result<Stream>
Generate appearance stream for unchecked state
Auto Trait Implementations§
impl Freeze for ButtonAppearanceGenerator
impl RefUnwindSafe for ButtonAppearanceGenerator
impl Send for ButtonAppearanceGenerator
impl Sync for ButtonAppearanceGenerator
impl Unpin for ButtonAppearanceGenerator
impl UnwindSafe for ButtonAppearanceGenerator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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