pub struct SnackbarDefaults;Expand description
Default values used by snackbars.
Implementations§
Source§impl SnackbarDefaults
impl SnackbarDefaults
Sourcepub const MIN_HEIGHT_ONE_LINE: Dp
pub const MIN_HEIGHT_ONE_LINE: Dp
Minimum height for single-line snackbars.
Sourcepub const MIN_HEIGHT_TWO_LINE: Dp
pub const MIN_HEIGHT_TWO_LINE: Dp
Minimum height for multi-line snackbars.
Sourcepub const CONTAINER_ELEVATION: Dp
pub const CONTAINER_ELEVATION: Dp
Default container elevation.
Sourcepub const CONTENT_PADDING: Padding
pub const CONTENT_PADDING: Padding
Default padding around snackbar message text.
Sourcepub const HOST_PADDING: Padding
pub const HOST_PADDING: Padding
Default padding applied when rendering snackbars from host data.
Sourcepub const ACTION_SPACING: Dp
pub const ACTION_SPACING: Dp
Horizontal spacing between text and actions.
Sourcepub const ACTION_VERTICAL_SPACING: Dp
pub const ACTION_VERTICAL_SPACING: Dp
Bottom spacing below actions placed on a separate line.
Sourcepub fn container_color() -> Color
pub fn container_color() -> Color
Default container color derived from the current theme.
Sourcepub fn content_color() -> Color
pub fn content_color() -> Color
Default content color derived from the current theme.
Sourcepub fn action_color() -> Color
pub fn action_color() -> Color
Default action label color derived from the current theme.
Sourcepub fn dismiss_action_color() -> Color
pub fn dismiss_action_color() -> Color
Default dismiss action color derived from the current theme.
Sourcepub fn min_height(message: &str, action_on_new_line: bool) -> Dp
pub fn min_height(message: &str, action_on_new_line: bool) -> Dp
Returns the minimum height for explicit message lines and action placement.
Measured wrapping, larger typography and taller actions may require more.
Auto Trait Implementations§
impl Freeze for SnackbarDefaults
impl RefUnwindSafe for SnackbarDefaults
impl Send for SnackbarDefaults
impl Sync for SnackbarDefaults
impl Unpin for SnackbarDefaults
impl UnsafeUnpin for SnackbarDefaults
impl UnwindSafe for SnackbarDefaults
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.