pub struct LeadingLabelCellPaint {
pub icon: Option<IconGlyph>,
pub icon_color: Option<Color>,
pub label_color: Option<Color>,
pub label_weight: FontWeight,
pub padding_left: f32,
pub padding_right: f32,
pub icon_slot_side: Option<f32>,
pub icon_inset: f32,
pub gap: Option<f32>,
}Fields§
§icon: Option<IconGlyph>§icon_color: Option<Color>§label_color: Option<Color>§label_weight: FontWeight§padding_left: f32§padding_right: f32§icon_slot_side: Option<f32>§icon_inset: f32§gap: Option<f32>Implementations§
Source§impl LeadingLabelCellPaint
impl LeadingLabelCellPaint
pub const fn new() -> LeadingLabelCellPaint
pub const fn icon(self, icon: IconGlyph) -> LeadingLabelCellPaint
pub const fn icon_color(self, color: Color) -> LeadingLabelCellPaint
pub const fn label_color(self, color: Color) -> LeadingLabelCellPaint
pub const fn label_weight(self, weight: FontWeight) -> LeadingLabelCellPaint
pub const fn padding(self, left: f32, right: f32) -> LeadingLabelCellPaint
pub const fn icon_slot_side(self, side: f32) -> LeadingLabelCellPaint
pub const fn icon_inset(self, inset: f32) -> LeadingLabelCellPaint
pub const fn gap(self, gap: f32) -> LeadingLabelCellPaint
Trait Implementations§
Source§impl Clone for LeadingLabelCellPaint
impl Clone for LeadingLabelCellPaint
Source§fn clone(&self) -> LeadingLabelCellPaint
fn clone(&self) -> LeadingLabelCellPaint
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 moreimpl Copy for LeadingLabelCellPaint
Source§impl Debug for LeadingLabelCellPaint
impl Debug for LeadingLabelCellPaint
Source§impl Default for LeadingLabelCellPaint
impl Default for LeadingLabelCellPaint
Source§fn default() -> LeadingLabelCellPaint
fn default() -> LeadingLabelCellPaint
Returns the “default value” for a type. Read more
Source§impl PartialEq for LeadingLabelCellPaint
impl PartialEq for LeadingLabelCellPaint
impl StructuralPartialEq for LeadingLabelCellPaint
Auto Trait Implementations§
impl Forget for LeadingLabelCellPaint
impl Freeze for LeadingLabelCellPaint
impl Move for LeadingLabelCellPaint
impl RefUnwindSafe for LeadingLabelCellPaint
impl Send for LeadingLabelCellPaint
impl Sync for LeadingLabelCellPaint
impl Unpin for LeadingLabelCellPaint
impl UnsafeUnpin for LeadingLabelCellPaint
impl UnwindSafe for LeadingLabelCellPaint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.