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ยง

asset_dimensions ๐Ÿ”’
Pixel size from the asset, falling back to EXIF (where Immich often keeps it); 0 = unknown.
build_asset_objects ๐Ÿ”’
build_sorted_asset_objects ๐Ÿ”’