Trait nannou::ui::prelude::widget::list::ItemSize
[−]
[src]
pub trait ItemSize: Copy + Clone { fn update_list<D>(
List<D, Self>,
UpdateArgs<List<D, Self>>
) -> <List<D, Self> as Widget>::Event
where
D: Direction; fn size_item<W, D>(&self, widget: W, breadth: f64) -> W
where
D: Direction,
W: Widget; }
The way in which the List
's items are sized. E.g. Fired
or Dynamic
.
Required Methods
fn update_list<D>(
List<D, Self>,
UpdateArgs<List<D, Self>>
) -> <List<D, Self> as Widget>::Event where
D: Direction,
List<D, Self>,
UpdateArgs<List<D, Self>>
) -> <List<D, Self> as Widget>::Event where
D: Direction,
Update the List
widget.
fn size_item<W, D>(&self, widget: W, breadth: f64) -> W where
D: Direction,
W: Widget,
D: Direction,
W: Widget,
Set the size for the given item widget
and return it.