# API map of the "Browse: media bin" family: old path to new path and setter renames. family = "Browse: media bin" new_module = "craft_browse::ui::bin" [[type]] name = "MediaBin" old = "craft_browse::ui::bin::MediaBin" new = "craft_browse::ui::bin::MediaBin" status = "same" note = "A pattern: `new(label, Bind>, &M)` in place of `new(id_salt, &mut state, &M)`; pass `Bind::bound(&mut state)` so the bin writes the view, zoom, search, shown bin and open bins itself. `show(ui)` returns `BinOutput`." [[type]] name = "BinState" old = "craft_browse::ui::bin::BinState" new = "craft_browse::ui::bin::BinState" status = "same" note = "`expanded` is an `OpenSet`; `apply` stays for events the host produces. Its settings are in `BinSettings`." [[type]] name = "BinSettings" old = "craft_browse::ui::bin::BinSettings" new = "craft_browse::ui::bin::BinSettings" status = "same" note = "`icon_size` (points) is `zoom` (a multiple of the medium thumbnail side); `columns: TableLayout` is `sort`, `icon_sort` and `widths`, which last for the session because a `ColumnKey` has no text form." [[type]] name = "BinEvent" old = "craft_browse::ui::bin::BinEvent" new = "craft_browse::ui::bin::BinEvent" status = "same" note = "`Table(TableEvent)` is `Column(ColumnEvent)` and `IconSort(Option)`; `Footer { button }` and `FooterDrop { button, rows }` are `Footer { action }` and `FooterDrop { action, keys }` with the action's index; `Reorder` carries `EditEvent>`; `Open` carries `OpenChange { key, open, all }`; `Drag` carries `ListDrag { keys, .. }`; `ContextMenu` has no `row: None` background request." [[type]] name = "BinOutput" old = "craft_browse::ui::bin::BinOutput" new = "craft_browse::ui::bin::BinOutput" status = "same" note = "`#[non_exhaustive]`; an `Outcome`." [[type]] name = "BinItem" old = "craft_browse::ui::bin::BinItem" new = "craft_browse::ui::bin::BinItem" status = "same" note = "`icon` is an `IconId`, `label_color` a `Srgba`, `badges` are the tile grid's `TileBadge`, `status` its `TileStatus`; no `aspect`." [[type]] name = "BinEntry" old = "craft_browse::ui::bin::BinEntry" new = "craft_browse::ui::bin::BinEntry" status = "same" [[type]] name = "BinModel" old = "craft_browse::ui::bin::BinModel" new = "craft_browse::ui::bin::BinModel" status = "same" note = "`cell(&self, key, column: &ColumnKey)` in place of a column name." [[type]] name = "BinView" old = "craft_browse::ui::bin::BinView" new = "craft_browse::ui::bin::BinView" status = "same" [[type]] name = "OpenHow" old = "craft_browse::ui::bin::OpenHow" new = "craft_browse::ui::bin::OpenHow" status = "same" [[type]] name = "name_matches" old = "craft_browse::ui::bin::name_matches" new = "craft_browse::ui::bin::name_matches" status = "same" [[type]] name = "BinLabels" old = "craft_browse::ui::bin::BinLabels" new = "" status = "removed" note = "Renamed `BinWords`." [[type]] name = "BinWords" old = "" new = "craft_browse::ui::bin::BinWords" status = "replaced" note = "Replaces `BinLabels`. A `craft_ui::words!` set with ids `mediaBin.`; the legacy `browse.bin.*` ids go. The item count is a `count` row (`items`), `selected_of` a template, `clear` is the search field's own." [[type]] name = "BinStyle" old = "craft_browse::ui::bin::BinStyle" new = "" status = "removed" note = "The look is the children's: `Table`, `ListRow`, `TileGrid`, `Tile`, `FooterBar`." [[type]] name = "ITEMS" old = "craft_browse::ui::bin::ITEMS" new = "" status = "removed" note = "The `items` count row of `BinWords`." [[setter]] type = "MediaBin" old = "new(id_salt, &mut BinState, &M)" new = "new(label, Bind>, &M)" [[setter]] type = "MediaBin" old = "selection(&mut Selection)" new = "selection(Bind>)" [[setter]] type = "MediaBin" old = "columns(&[TableColumn])" new = "columns(Vec)" note = "Column keys are `ColumnKey`s; the first column is the name column, key `name`. `ColumnSpec::tooltip` is not at the base, so a column header shows no tip." [[setter]] type = "MediaBin" old = "footer_actions(&[FooterAction])" new = "footer_actions(impl IntoIterator)" note = "A `FooterAction` has no id: events name the action by its index; an action that takes drops is built with `accepts_drops::>`." [[setter]] type = "MediaBin" old = "zoom_range(f32, f32)" new = "zoom_range(f64, f64)" note = "Multiples of the medium thumbnail side." [[setter]] type = "MediaBin" old = "labels(BinLabels)" new = "" note = "The words come from the scope's `BinWords`." [[setter]] type = "MediaBin" old = "header(impl FnOnce(&mut Ui))" new = "header(impl FnOnce(&mut Ui))" [[setter]] type = "MediaBin" old = "freeform(&[FreeformCard])" new = "freeform(&[FreeformCard])" note = "`FreeformCard` is `craft_browse::ui::freebin::FreeformCard`." [[setter]] type = "MediaBin" old = "snap(Option)" new = "snap(Option)" [[setter]] type = "MediaBin" old = "start_rename(K)" new = "start_rename(K)" [[setter]] type = "MediaBin" old = "thumbnails(&Thumbnails, &dyn ThumbSource)" new = "thumbnails(&Thumbnails, &dyn ThumbSource)" note = "The types are `craft_ui::primitives::textures`'." [[setter]] type = "MediaBin" old = "hover_scrub(bool)" new = "hover_scrub(bool)"