Skip to main content

thumbnail_grid

Function thumbnail_grid 

Source
pub fn thumbnail_grid(
    ui: &mut Ui,
    count: usize,
    cell: Vec2,
    item: impl FnMut(&mut Ui, usize),
)
Expand description

A virtualised grid: only the rows in view are built, so ten thousand thumbnails cost what a screenful does. item draws cell i.