pub struct ChipStyle {
pub background: Option<Color>,
pub border: Option<Color>,
pub text: Option<Color>,
pub selected_background: Option<Color>,
pub selected_border: Option<Color>,
pub selected_text: Option<Color>,
pub font_size: Option<f32>,
pub radius: Option<f32>,
pub padding: Option<(f32, f32)>,
}Fields§
§background: Option<Color>§border: Option<Color>§text: Option<Color>§selected_background: Option<Color>§selected_border: Option<Color>§selected_text: Option<Color>§font_size: Option<f32>§radius: Option<f32>§padding: Option<(f32, f32)>Implementations§
Source§impl ChipStyle
impl ChipStyle
pub const fn new() -> Self
pub const fn background(self, color: Color) -> Self
pub const fn border(self, color: Color) -> Self
pub const fn text(self, color: Color) -> Self
pub const fn selected_background(self, color: Color) -> Self
pub const fn selected_border(self, color: Color) -> Self
pub const fn selected_text(self, color: Color) -> Self
pub const fn font_size(self, size: f32) -> Self
pub const fn radius(self, radius: f32) -> Self
pub const fn padding_xy(self, pad_x: f32, pad_y: f32) -> Self
Trait Implementations§
impl Copy for ChipStyle
impl StructuralPartialEq for ChipStyle
Auto Trait Implementations§
impl Freeze for ChipStyle
impl RefUnwindSafe for ChipStyle
impl Send for ChipStyle
impl Sync for ChipStyle
impl Unpin for ChipStyle
impl UnsafeUnpin for ChipStyle
impl UnwindSafe for ChipStyle
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