pub struct IconBuilder { /* private fields */ }Expand description
Configuration handle returned by icon.
Implementations§
Source§impl IconBuilder
impl IconBuilder
Source§impl IconBuilder
impl IconBuilder
Sourcepub fn size_optional(&self, value: Option<Dp>) -> Self
pub fn size_optional(&self, value: Option<Dp>) -> Self
Configure size before this component executes.
Sourcepub fn width(&self, value: AxisConstraint) -> Self
pub fn width(&self, value: AxisConstraint) -> Self
Configure width before this component executes.
Sourcepub fn width_optional(&self, value: Option<AxisConstraint>) -> Self
pub fn width_optional(&self, value: Option<AxisConstraint>) -> Self
Configure width before this component executes.
Sourcepub fn height(&self, value: AxisConstraint) -> Self
pub fn height(&self, value: AxisConstraint) -> Self
Configure height before this component executes.
Sourcepub fn height_optional(&self, value: Option<AxisConstraint>) -> Self
pub fn height_optional(&self, value: Option<AxisConstraint>) -> Self
Configure height before this component executes.
Sourcepub fn tint_optional(&self, value: Option<Color>) -> Self
pub fn tint_optional(&self, value: Option<Color>) -> Self
Configure tint before this component executes.
Sourcepub fn tint_mode(&self, value: TintMode) -> Self
pub fn tint_mode(&self, value: TintMode) -> Self
Configure tint_mode before this component executes.
Sourcepub fn tint_mode_optional(&self, value: Option<TintMode>) -> Self
pub fn tint_mode_optional(&self, value: Option<TintMode>) -> Self
Configure tint_mode before this component executes.
Sourcepub fn rotation_optional(&self, value: Option<f32>) -> Self
pub fn rotation_optional(&self, value: Option<f32>) -> Self
Configure rotation before this component executes.
Auto Trait Implementations§
impl Freeze for IconBuilder
impl RefUnwindSafe for IconBuilder
impl Send for IconBuilder
impl Sync for IconBuilder
impl Unpin for IconBuilder
impl UnsafeUnpin for IconBuilder
impl UnwindSafe for IconBuilder
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.