pub struct ListItemDefaults;Expand description
Default tokens for list item components.
Implementations§
Source§impl ListItemDefaults
impl ListItemDefaults
Sourcepub const MIN_HEIGHT_ONE_LINE: Dp
pub const MIN_HEIGHT_ONE_LINE: Dp
Minimum height for a one-line list item container.
Sourcepub const MIN_HEIGHT_TWO_LINE: Dp
pub const MIN_HEIGHT_TWO_LINE: Dp
Minimum height for a two-line list item container.
Sourcepub const MIN_HEIGHT_THREE_LINE: Dp
pub const MIN_HEIGHT_THREE_LINE: Dp
Minimum height for a three-line list item container.
Sourcepub const LEADING_MIN_SIZE: Dp
pub const LEADING_MIN_SIZE: Dp
Minimum size for leading content slots.
Sourcepub const TRAILING_MIN_SIZE: Dp
pub const TRAILING_MIN_SIZE: Dp
Minimum size for trailing content slots.
Sourcepub const SEGMENTED_GAP: Dp
pub const SEGMENTED_GAP: Dp
Vertical gap between segmented list items.
Sourcepub const INTERNAL_SPACING: Dp
pub const INTERNAL_SPACING: Dp
Spacing between leading/trailing slots and the main text column.
Sourcepub const CONTENT_PADDING: Padding
pub const CONTENT_PADDING: Padding
Default content padding applied inside the list item container.
Sourcepub const TONAL_ELEVATION: Dp
pub const TONAL_ELEVATION: Dp
Default tonal elevation for list items.
Sourcepub const SHADOW_ELEVATION: Dp
pub const SHADOW_ELEVATION: Dp
Default shadow elevation for list items.
Sourcepub fn colors(scheme: &MaterialColorScheme) -> ListItemColors
pub fn colors(scheme: &MaterialColorScheme) -> ListItemColors
Default colors for list items derived from the current theme.
Sourcepub fn min_height(has_overline: bool, has_supporting: bool) -> Dp
pub fn min_height(has_overline: bool, has_supporting: bool) -> Dp
Compute the minimum container height based on content lines.
Auto Trait Implementations§
impl Freeze for ListItemDefaults
impl RefUnwindSafe for ListItemDefaults
impl Send for ListItemDefaults
impl Sync for ListItemDefaults
impl Unpin for ListItemDefaults
impl UnsafeUnpin for ListItemDefaults
impl UnwindSafe for ListItemDefaults
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.