pub struct ListBuilder<'a> { /* private fields */ }Expand description
A vertical list of selectable text rows. Start with list.
Implementations§
Source§impl<'a> ListBuilder<'a>
impl<'a> ListBuilder<'a>
Sourcepub fn row_height(self, h: f64) -> Self
pub fn row_height(self, h: f64) -> Self
Row height in px (default 28).
Sourcepub fn bind(self, i: &'a mut Option<usize>) -> Self
pub fn bind(self, i: &'a mut Option<usize>) -> Self
Read the selection from i and write a click back to it.
Sourcepub fn content_height(&self) -> f64
pub fn content_height(&self) -> f64
Total content height, for a scrollbar.
Auto Trait Implementations§
impl<'a> !UnwindSafe for ListBuilder<'a>
impl<'a> Freeze for ListBuilder<'a>
impl<'a> RefUnwindSafe for ListBuilder<'a>
impl<'a> Send for ListBuilder<'a>
impl<'a> Sync for ListBuilder<'a>
impl<'a> Unpin for ListBuilder<'a>
impl<'a> UnsafeUnpin for ListBuilder<'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