pub struct ListItemConfig {Show 15 fields
pub modifier: Modifier,
pub enabled: bool,
pub selected: bool,
pub colors: ListItemColors,
pub state_colors: StateColors,
pub tonal_elevation: f32,
pub shadow_elevation: f32,
pub shape_radius: f32,
pub shape_radii: Option<[f32; 4]>,
pub horizontal_padding: f32,
pub trailing_padding: f32,
pub one_line_height: f32,
pub two_line_height: f32,
pub three_line_height: f32,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for ListItem.
Fields§
§modifier: Modifier§enabled: boolWhen false, renders disabled colors and suppresses clicks.
selected: bool§colors: ListItemColors§state_colors: StateColors§tonal_elevation: f32§shadow_elevation: f32§shape_radius: f32§shape_radii: Option<[f32; 4]>Per-corner radii [BL, BR, TR, TL]. When set, overrides shape_radius.
horizontal_padding: f32§trailing_padding: f32§one_line_height: f32§two_line_height: f32§three_line_height: f32§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for ListItemConfig
impl Clone for ListItemConfig
Source§fn clone(&self) -> ListItemConfig
fn clone(&self) -> ListItemConfig
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 moreSource§impl Debug for ListItemConfig
impl Debug for ListItemConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ListItemConfig
impl !Send for ListItemConfig
impl !Sync for ListItemConfig
impl !UnwindSafe for ListItemConfig
impl Freeze for ListItemConfig
impl Unpin for ListItemConfig
impl UnsafeUnpin for ListItemConfig
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