pub struct ListItem { /* private fields */ }Implementations§
Source§impl ListItem
impl ListItem
pub fn new(label: impl Into<String>) -> Self
pub fn detail(self, detail: impl Into<String>) -> Self
pub fn semantic_name(self, name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn trailing(self, trailing: impl Into<String>) -> Self
pub fn leading_icon(self, icon: IconGlyph) -> Self
pub fn leading_text(self, text: impl Into<String>) -> Self
pub fn leading_color(self, color: Color) -> Self
pub fn accent(self, accent: Color) -> Self
Sourcepub fn enabled(self, enabled: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
Whether the item can be chosen. Items are enabled unless set otherwise.
Sourcepub fn activate_with_child(self, activate_with_child: bool) -> Self
pub fn activate_with_child(self, activate_with_child: bool) -> Self
Let otherwise unhandled pointer presses on the Self::child content
activate the owning list row. Interactive descendants still receive
the event first.
pub fn child<W>(self, child: W) -> Selfwhere
W: Widget + 'static,
pub fn label(&self) -> &str
pub fn has_child(&self) -> bool
Auto Trait Implementations§
impl !Freeze for ListItem
impl !RefUnwindSafe for ListItem
impl !Send for ListItem
impl !Sync for ListItem
impl !UnwindSafe for ListItem
impl Forget for ListItem
impl Move for ListItem
impl Unpin for ListItem
impl UnsafeUnpin for ListItem
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