[][src]Trait conrod_core::widget::list::ItemSize

pub trait ItemSize: Sized + Clone + Copy {
    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: Scalar) -> W
    where
        W: Widget,
        D: Direction
; }

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

Update the List widget.

fn size_item<W, D>(&self, widget: W, breadth: Scalar) -> W where
    W: Widget,
    D: Direction

Set the size for the given item widget and return it.

Loading content...

Implementors

impl ItemSize for Dynamic[src]

impl ItemSize for Fixed[src]

Loading content...