Trait nannou::ui::widget::list::ItemSize [−][src]
pub trait ItemSize: Clone + Copy { pub fn update_list<D>(
List<D, Self>,
UpdateArgs<'_, '_, '_, '_, List<D, Self>>
) -> <List<D, Self> as Widget>::Event
where
D: Direction; pub 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
pub fn update_list<D>(
List<D, Self>,
UpdateArgs<'_, '_, '_, '_, List<D, Self>>
) -> <List<D, Self> as Widget>::Event where
D: Direction,
[src]
List<D, Self>,
UpdateArgs<'_, '_, '_, '_, List<D, Self>>
) -> <List<D, Self> as Widget>::Event where
D: Direction,
Update the List
widget.
pub fn size_item<W, D>(&self, widget: W, breadth: f64) -> W where
D: Direction,
W: Widget,
[src]
D: Direction,
W: Widget,
Set the size for the given item widget
and return it.
Implementors
impl ItemSize for Dynamic
[src]
pub fn update_list<D>(
list: List<D, Dynamic>,
args: UpdateArgs<'_, '_, '_, '_, List<D, Dynamic>>
) -> <List<D, Dynamic> as Widget>::Event where
D: Direction,
[src]
list: List<D, Dynamic>,
args: UpdateArgs<'_, '_, '_, '_, List<D, Dynamic>>
) -> <List<D, Dynamic> as Widget>::Event where
D: Direction,
pub fn size_item<W, D>(&self, widget: W, breadth: f64) -> W where
D: Direction,
W: Widget,
[src]
D: Direction,
W: Widget,