Skip to main content

Module asset_model

Module asset_model 

Source
Expand description

Custom gio::ListModel backing the library grid.

Replaces the previous gio::ListStore-of-AssetObject mirror. The model owns a Vec<AssetObject> reconciled from LibraryState.assets. extend is used for append-pagination (server-side date sort lets us emit a precise items_changed(prev_n, 0, added) so the visible viewport doesn’t rebind); reset is used for source switches and client-side re-sorts.

Modules§

imp 🔒

Structs§

LibraryAssetModel
GLib type: GObject with reference counted clone semantics.

Functions§

build_asset_objects 🔒
build_sorted_asset_objects 🔒