pub struct ListData {
pub items: Vec<String>,
pub icons: Vec<Option<SpriteRef>>,
pub selected: Option<usize>,
pub hovered: Option<usize>,
pub scroll: i32,
pub font: Option<FontId>,
pub row_height: i32,
pub highlight: Option<SpriteRef>,
/* private fields */
}Expand description
The rows of a list.
Fields§
§items: Vec<String>The text of each row.
icons: Vec<Option<SpriteRef>>Each item’s sprite (ComboElement::AddItem’s Sprite), drawn before its text.
selected: Option<usize>The selected row.
hovered: Option<usize>The row under the pointer.
scroll: i32First visible pixel row.
font: Option<FontId>The font of the rows.
row_height: i32The height of a row, in pixels.
highlight: Option<SpriteRef>The sprite drawn behind the selected row.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListData
impl RefUnwindSafe for ListData
impl Send for ListData
impl Sync for ListData
impl Unpin for ListData
impl UnsafeUnpin for ListData
impl UnwindSafe for ListData
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