Searched refs:item (Results 1 – 4 of 4) sorted by relevance
69 if let Some(item) = asset_manager.items.get(&grid.focused_id.get().unwrap()) { in init_grid()71 if item.is_dir.get() == false { in init_grid()76 if item.file_path.borrow().eq(&"..".to_string()) { in init_grid()87 asset_manager.cur_path.push_str(&item.file_path.borrow()); in init_grid()198 if let Ok(item) = entry { in refresh_grid()199 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_grid()205 let asset_item = AssetItemGrid::new(item.file_name().to_str().unwrap(), is_dir); in refresh_grid()241 if let Ok(item) = entry { in refresh_list()242 let is_dir = if let Ok(metadata) = item.metadata() { in refresh_list()248 let asset_item = AssetItemList::new(item.file_name().to_str().unwrap(), is_dir); in refresh_list()
37 let item = Arc::new(AssetItemList { in new() localVariable49 (*item.self_ref.borrow_mut()) = Arc::downgrade(&item); in new()58 item.add_child(bg); in new()68 item.add_child(name); in new()76 item.add_child(file_type); in new()78 return item; in new()
43 let item = Arc::new(AssetItemGrid { in new() localVariable56 (*item.self_ref.borrow_mut()) = Arc::downgrade(&item); in new()62 item.add_child(bg); in new()71 item.add_child(icon); in new()81 item.add_child(name); in new()83 return item; in new()
110 menu, a prominent item in the list meets this criterion.