Home
last modified time | relevance | path

Searched refs:is_dir (Results 1 – 3 of 3) sorted by relevance

/StarryEngine/starry_applications/src/asset_manager/code/
H A Dmod.rs71 if item.is_dir.get() == false { in init_grid()
199 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_grid() localVariable
200 metadata.is_dir() in refresh_grid()
205 let asset_item = AssetItemGrid::new(item.file_name().to_str().unwrap(), is_dir); in refresh_grid()
242 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_list() localVariable
243 metadata.is_dir() in refresh_list()
248 let asset_item = AssetItemList::new(item.file_name().to_str().unwrap(), is_dir); in refresh_list()
H A Dasset_item_grid.rs35 pub is_dir: Cell<bool>, field
42 pub fn new(file_name: &str, is_dir: bool) -> Arc<Self> { in new()
53 is_dir: Cell::new(is_dir), in new()
65 if let Some(icon) = match is_dir { in new()
H A Dasset_item_list.rs36 pub fn new(file_name: &str, is_dir: bool) -> Arc<Self> { in new()
73 let type_name = if is_dir { "direction" } else { "file" }; in new()