pub struct IconButtonPaint {
pub appearance: ButtonAppearance,
pub tone: SemanticTone,
pub selected: bool,
pub enabled: bool,
pub hover_progress: f32,
pub press_progress: f32,
pub focus_progress: f32,
pub icon_size: Option<f32>,
}Fields§
§appearance: ButtonAppearance§tone: SemanticTone§selected: bool§enabled: bool§hover_progress: f32§press_progress: f32§focus_progress: f32§icon_size: Option<f32>Implementations§
Source§impl IconButtonPaint
impl IconButtonPaint
pub const fn new() -> IconButtonPaint
pub const fn appearance(self, appearance: ButtonAppearance) -> IconButtonPaint
pub const fn tone(self, tone: SemanticTone) -> IconButtonPaint
pub const fn selected(self, selected: bool) -> IconButtonPaint
pub const fn enabled(self, enabled: bool) -> IconButtonPaint
pub const fn hovered(self, hovered: bool) -> IconButtonPaint
pub const fn pressed(self, pressed: bool) -> IconButtonPaint
pub const fn focused(self, focused: bool) -> IconButtonPaint
pub fn hover_progress(self, progress: f32) -> IconButtonPaint
pub fn press_progress(self, progress: f32) -> IconButtonPaint
pub fn focus_progress(self, progress: f32) -> IconButtonPaint
pub const fn icon_size(self, icon_size: f32) -> IconButtonPaint
Trait Implementations§
Source§impl Clone for IconButtonPaint
impl Clone for IconButtonPaint
Source§fn clone(&self) -> IconButtonPaint
fn clone(&self) -> IconButtonPaint
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 IconButtonPaint
Source§impl Debug for IconButtonPaint
impl Debug for IconButtonPaint
Source§impl Default for IconButtonPaint
impl Default for IconButtonPaint
Source§fn default() -> IconButtonPaint
fn default() -> IconButtonPaint
Returns the “default value” for a type. Read more
Source§impl PartialEq for IconButtonPaint
impl PartialEq for IconButtonPaint
impl StructuralPartialEq for IconButtonPaint
Auto Trait Implementations§
impl Freeze for IconButtonPaint
impl RefUnwindSafe for IconButtonPaint
impl Send for IconButtonPaint
impl Sync for IconButtonPaint
impl Unpin for IconButtonPaint
impl UnsafeUnpin for IconButtonPaint
impl UnwindSafe for IconButtonPaint
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.