Skip to main content

resolve_image_file

Function resolve_image_file 

Source
pub fn resolve_image_file(name: &str) -> Option<PathBuf>
Expand description

Resolve an image name to an on-disk file, for the file-loading backends (AppKit/GTK/Qt, and the desktop/dev path). Probes DAY_IMAGE_ROOT (the project’s images/ under day launch) first, then DAY_ASSET_ROOT and the bundle, trying the bare name and, if it has no extension, each known image extension. Native-pipeline backends (iOS Assets.car, Android R, …) resolve by name through their own store and do not use this.

Day API ↩ Guides· daybrite.dev