pub struct SelectableRow<'a> { /* private fields */ }Expand description
A row picked from a short list: its box is the kit’s selectable-row
component, selected for the chosen one (never hover then, so the
choice stays visible under the pointer), its label in the state’s
text. egui’s ui.selectable_label (a selectable [egui::Button]),
drawn through the kit, with egui’s padding and height.
Need (data): a row picked from a short list.
Implementations§
Source§impl<'a> SelectableRow<'a>
impl<'a> SelectableRow<'a>
pub fn new(selected: bool, atoms: impl IntoAtoms<'a>) -> Self
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Its name for assistive technology, when its atoms say more than its name: the cells of a row with columns.
Trait Implementations§
Source§impl Debug for SelectableRow<'_>
impl Debug for SelectableRow<'_>
Auto Trait Implementations§
impl<'a> Freeze for SelectableRow<'a>
impl<'a> !RefUnwindSafe for SelectableRow<'a>
impl<'a> !Send for SelectableRow<'a>
impl<'a> !Sync for SelectableRow<'a>
impl<'a> Unpin for SelectableRow<'a>
impl<'a> UnsafeUnpin for SelectableRow<'a>
impl<'a> !UnwindSafe for SelectableRow<'a>
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
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