pub struct ListItem { /* private fields */ }Expand description
Reference to ListItem configuration (forward declaration)
Implementations§
Source§impl ListItem
impl ListItem
Sourcepub fn interactive(self, interactive: bool) -> Self
pub fn interactive(self, interactive: bool) -> Self
Set whether this item is interactive (clickable)
Sourcepub fn show_separator(self, show: bool) -> Self
pub fn show_separator(self, show: bool) -> Self
Set whether to show a separator below this item
Sourcepub fn is_selected(&self) -> bool
pub fn is_selected(&self) -> bool
Check if this item is selected
Sourcepub fn is_interactive(&self) -> bool
pub fn is_interactive(&self) -> bool
Check if this item is interactive
Source§impl ListItem
impl ListItem
Sourcepub fn show<C: ListItemContent>(self, ui: &mut Ui, content: C) -> Response
pub fn show<C: ListItemContent>(self, ui: &mut Ui, content: C) -> Response
Show the list item with the given content
Sourcepub fn show_text(self, ui: &mut Ui, text: impl Into<String>) -> Response
pub fn show_text(self, ui: &mut Ui, text: impl Into<String>) -> Response
Show the list item with a simple text label
Sourcepub fn show_with_icon(
self,
ui: &mut Ui,
text: impl Into<String>,
icon: &Icon,
) -> Response
pub fn show_with_icon( self, ui: &mut Ui, text: impl Into<String>, icon: &Icon, ) -> Response
Show the list item with a text label and icon
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnsafeUnpin for ListItem
impl UnwindSafe 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more