pub struct ButtonDefaults;Expand description
Material Design 3 defaults for button.
Implementations§
Source§impl ButtonDefaults
impl ButtonDefaults
Sourcepub const PRESSED_ALPHA: f32 = MaterialAlpha::PRESSED
pub const PRESSED_ALPHA: f32 = MaterialAlpha::PRESSED
Default pressed alpha used for ripple feedback.
Sourcepub const DISABLED_CONTAINER_ALPHA: f32 = MaterialAlpha::DISABLED_CONTAINER
pub const DISABLED_CONTAINER_ALPHA: f32 = MaterialAlpha::DISABLED_CONTAINER
Default disabled container alpha.
Sourcepub const DISABLED_CONTENT_ALPHA: f32 = MaterialAlpha::DISABLED_CONTENT
pub const DISABLED_CONTENT_ALPHA: f32 = MaterialAlpha::DISABLED_CONTENT
Default disabled content alpha.
Sourcepub const FILLED_DISABLED_CONTAINER_ALPHA: f32 = 0.1
pub const FILLED_DISABLED_CONTAINER_ALPHA: f32 = 0.1
Disabled container opacity used by filled/elevated buttons.
Sourcepub const DISABLED_LABEL_ALPHA: f32 = 0.38
pub const DISABLED_LABEL_ALPHA: f32 = 0.38
Disabled content opacity used by most buttons.
Sourcepub const MIN_HEIGHT: Dp
pub const MIN_HEIGHT: Dp
Minimum height for buttons (Material default = 40dp).
Sourcepub const CONTENT_HORIZONTAL_PADDING: Dp
pub const CONTENT_HORIZONTAL_PADDING: Dp
Horizontal padding used inside buttons.
Sourcepub const CONTENT_VERTICAL_PADDING: Dp
pub const CONTENT_VERTICAL_PADDING: Dp
Vertical padding used inside buttons.
Sourcepub fn disabled_container_color(scheme: &MaterialColorScheme) -> Color
pub fn disabled_container_color(scheme: &MaterialColorScheme) -> Color
Default disabled container color for filled buttons.
Sourcepub fn disabled_content_color(scheme: &MaterialColorScheme) -> Color
pub fn disabled_content_color(scheme: &MaterialColorScheme) -> Color
Default disabled content color for filled buttons.
Sourcepub fn disabled_border_color(scheme: &MaterialColorScheme) -> Color
pub fn disabled_border_color(scheme: &MaterialColorScheme) -> Color
Default disabled border color for outlined buttons.
Auto Trait Implementations§
impl Freeze for ButtonDefaults
impl RefUnwindSafe for ButtonDefaults
impl Send for ButtonDefaults
impl Sync for ButtonDefaults
impl Unpin for ButtonDefaults
impl UnsafeUnpin for ButtonDefaults
impl UnwindSafe for ButtonDefaults
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.