Searched refs:row (Results 1 – 4 of 4) sorted by relevance
/StarryEngine/starry_toolkit/src/layout/ |
H A D | grid.rs | 143 pub fn insert<T: Widget>(&self, column: usize, row: usize, element: &Arc<T>) { in insert() 146 .insert((row, column), element.clone()); in insert() 152 pub fn remove(&self, column: usize, row: usize) { in remove() 153 self.elements.borrow_mut().remove(&(row, column)); in remove() 162 pub fn focus_by_id(&self, (row, col): (usize, usize)) { in focus_by_id() argument 163 if let Some(widget) = self.elements.borrow().get(&(row, col)) { in focus_by_id() 165 self.focused_id.set(Some((row, col))); in focus_by_id() 179 for (&(row, col), entry) in self.elements.borrow().iter() { in arrange_elements() 183 while row >= rows.len() { in arrange_elements() 190 if rect.width >= rows[row].width { in arrange_elements() [all …]
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | mod.rs | 192 let (row, col) = self.asset_grid.add_element(&parent_asset_item); in refresh_grid() 193 self.items.insert((row, col), parent_asset_item.clone()); in refresh_grid() 206 let (row, col) = self.asset_grid.add_element(&asset_item); in refresh_grid() 207 self.items.insert((row, col), asset_item.clone()); in refresh_grid()
|
/StarryEngine/starry_server/src/base/ |
H A D | image.rs | 68 let (row, tail) = data.split_at_mut(self.w as usize); in next() 73 Some(&mut row[start..end]) in next()
|
/StarryEngine/starry_client/src/base/ |
H A D | renderer.rs | 87 for row in 0..16 { in char() 97 self.pixel(x + col, y + row, color); in char()
|