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() -> Self
pub const fn appearance(self, appearance: ButtonAppearance) -> Self
pub const fn tone(self, tone: SemanticTone) -> Self
pub const fn selected(self, selected: bool) -> Self
pub const fn enabled(self, enabled: bool) -> Self
pub const fn hovered(self, hovered: bool) -> Self
pub const fn pressed(self, pressed: bool) -> Self
pub const fn focused(self, focused: bool) -> Self
pub fn hover_progress(self, progress: f32) -> Self
pub fn press_progress(self, progress: f32) -> Self
pub fn focus_progress(self, progress: f32) -> Self
pub const fn icon_size(self, icon_size: f32) -> Self
Trait Implementations§
Source§impl Clone for IconButtonPaint
impl Clone for IconButtonPaint
impl Copy for IconButtonPaint
Source§impl Debug for IconButtonPaint
impl Debug for IconButtonPaint
Source§impl Default for IconButtonPaint
impl Default for IconButtonPaint
Source§impl PartialEq for IconButtonPaint
impl PartialEq for IconButtonPaint
impl StructuralPartialEq for IconButtonPaint
Auto Trait Implementations§
impl Forget for IconButtonPaint
impl Freeze for IconButtonPaint
impl Move 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