Skip to main content

paint_asset_tile

Function paint_asset_tile 

Source
pub fn paint_asset_tile(
    ui: &mut dyn UiBuilder,
    id_salt: &str,
    origin: [f32; 2],
    size: [f32; 2],
    name: &str,
    kind: AssetTileKind,
    selected: bool,
    theme: &UiTheme,
) -> AssetTileInteraction
Expand description

Paints an asset tile (thumbnail + name) and reports interaction.

origin is the top-left in screen-space, size is the total tile box (thumbnail + name strip below). The tile self-measures so the caller only has to grid-place identical-size boxes.