Searched refs:elements (Results 1 – 3 of 3) sorted by relevance
/StarryEngine/starry_toolkit/src/layout/ |
H A D | grid.rs | 49 pub elements: RefCell<BTreeMap<(usize, usize), Arc<dyn Widget>>>, field 77 elements: RefCell::new(BTreeMap::new()), in new() 104 self.elements.borrow_mut().insert( in add_element() 116 let elements = self.elements.borrow(); in find_next_slot() localVariable 117 while elements.contains_key(&(self.current_row.get(), self.current_column.get())) { in find_next_slot() 144 self.elements in insert() 153 self.elements.borrow_mut().remove(&(row, column)); in remove() 163 if let Some(widget) = self.elements.borrow().get(&(row, col)) { in focus_by_id() 171 if self.elements.borrow().is_empty() { in arrange_elements() 179 for (&(row, col), entry) in self.elements.borrow().iter() { in arrange_elements() [all …]
|
H A D | list.rs | 42 elements: RefCell<BTreeMap<usize, Arc<dyn Widget>>>, field 62 elements: RefCell::new(BTreeMap::new()), in new() 87 self.elements in add_element() 98 if self.elements.borrow().is_empty() { in arrange_elements() 106 for (&_index, element) in self.elements.borrow().iter() { in arrange_elements() 120 for (&_index, element) in self.elements.borrow().iter() { in arrange_elements() 209 for (&_index, widget) in self.elements.borrow().iter() { in draw() 233 for (&index, widget) in self.elements.borrow().iter() { in focus()
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | mod.rs | 135 .elements in init_grid() 147 grid.elements in init_grid() 218 if let Some(widget) = grid.elements.borrow().get(&(0, 0)) { in refresh_grid()
|