pub struct TabLabelBuilder { /* private fields */ }Expand description
Configuration handle returned by tab_label.
Implementations§
Source§impl TabLabelBuilder
impl TabLabelBuilder
Sourcepub fn text(&self, value: impl Into<String>) -> Self
pub fn text(&self, value: impl Into<String>) -> Self
Configure text before this component executes.
Sourcepub fn text_optional(&self, value: Option<String>) -> Self
pub fn text_optional(&self, value: Option<String>) -> Self
Configure text before this component executes.
Sourcepub fn icon(&self, value: impl Into<Painter>) -> Self
pub fn icon(&self, value: impl Into<Painter>) -> Self
Configure icon before this component executes.
Sourcepub fn icon_optional(&self, value: Option<Painter>) -> Self
pub fn icon_optional(&self, value: Option<Painter>) -> Self
Configure icon before this component executes.
Sourcepub fn horizontal_text_padding(&self, value: Dp) -> Self
pub fn horizontal_text_padding(&self, value: Dp) -> Self
Configure horizontal_text_padding before this component executes.
Sourcepub fn horizontal_text_padding_optional(&self, value: Option<Dp>) -> Self
pub fn horizontal_text_padding_optional(&self, value: Option<Dp>) -> Self
Configure horizontal_text_padding before this component executes.
Sourcepub fn icon_size_optional(&self, value: Option<Dp>) -> Self
pub fn icon_size_optional(&self, value: Option<Dp>) -> Self
Configure icon_size before this component executes.
Auto Trait Implementations§
impl Freeze for TabLabelBuilder
impl RefUnwindSafe for TabLabelBuilder
impl Send for TabLabelBuilder
impl Sync for TabLabelBuilder
impl Unpin for TabLabelBuilder
impl UnsafeUnpin for TabLabelBuilder
impl UnwindSafe for TabLabelBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.