pub struct CheckboxOptionStyle {Show 13 fields
pub bg: Option<Hsla>,
pub selected_bg: Option<Hsla>,
pub hover_bg: Option<Hsla>,
pub text_color: Option<Hsla>,
pub selected_text_color: Option<Hsla>,
pub border_color: Option<Hsla>,
pub selected_border_color: Option<Hsla>,
pub radius: Option<Pixels>,
pub padding_x: Option<Pixels>,
pub padding_y: Option<Pixels>,
pub gap: Option<Pixels>,
pub show_indicator: Option<bool>,
pub show_selected_icon: Option<bool>,
}Fields§
§bg: Option<Hsla>§selected_bg: Option<Hsla>§hover_bg: Option<Hsla>§text_color: Option<Hsla>§selected_text_color: Option<Hsla>§border_color: Option<Hsla>§selected_border_color: Option<Hsla>§radius: Option<Pixels>§padding_x: Option<Pixels>§padding_y: Option<Pixels>§gap: Option<Pixels>§show_indicator: Option<bool>§show_selected_icon: Option<bool>Implementations§
Source§impl CheckboxOptionStyle
impl CheckboxOptionStyle
pub fn new() -> Self
pub fn bg(self, color: Hsla) -> Self
pub fn selected_bg(self, color: Hsla) -> Self
pub fn hover_bg(self, color: Hsla) -> Self
pub fn text_color(self, color: Hsla) -> Self
pub fn selected_text_color(self, color: Hsla) -> Self
pub fn border_color(self, color: Hsla) -> Self
pub fn selected_border_color(self, color: Hsla) -> Self
pub fn radius(self, radius: impl Into<Pixels>) -> Self
pub fn radius_px(self, radius: f32) -> Self
pub fn radius_units(self, radius: f32) -> Self
pub fn padding(self, x: impl Into<Pixels>, y: impl Into<Pixels>) -> Self
pub fn padding_px(self, x: f32, y: f32) -> Self
pub fn padding_units(self, x: f32, y: f32) -> Self
pub fn gap(self, gap: impl Into<Pixels>) -> Self
pub fn gap_px(self, gap: f32) -> Self
pub fn gap_units(self, gap: f32) -> Self
pub fn show_indicator(self, show: bool) -> Self
pub fn show_selected_icon(self, show: bool) -> Self
Trait Implementations§
Source§impl Clone for CheckboxOptionStyle
impl Clone for CheckboxOptionStyle
Source§fn clone(&self) -> CheckboxOptionStyle
fn clone(&self) -> CheckboxOptionStyle
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 CheckboxOptionStyle
impl Debug for CheckboxOptionStyle
Source§impl Default for CheckboxOptionStyle
impl Default for CheckboxOptionStyle
Source§fn default() -> CheckboxOptionStyle
fn default() -> CheckboxOptionStyle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckboxOptionStyle
impl RefUnwindSafe for CheckboxOptionStyle
impl Send for CheckboxOptionStyle
impl Sync for CheckboxOptionStyle
impl Unpin for CheckboxOptionStyle
impl UnsafeUnpin for CheckboxOptionStyle
impl UnwindSafe for CheckboxOptionStyle
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().