Home
last modified time | relevance | path

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

/StarryEngine/starry_toolkit/src/layout/
H A Dgrid.rs177 let mut cols = Vec::new(); in arrange_elements() localVariable
180 while col >= cols.len() { in arrange_elements()
181 cols.push(Rect::default()); in arrange_elements()
187 if rect.width >= cols[col].width { in arrange_elements()
188 cols[col as usize].width = rect.width; in arrange_elements()
193 if rect.height >= cols[col].height { in arrange_elements()
194 cols[col as usize].height = rect.height; in arrange_elements()
202 self.max_column.set(cols.len()); in arrange_elements()
208 for col in cols.iter_mut() { in arrange_elements()
219 let grid_width = cols.len() as i32 * (cols[0].width as i32 + space_x) - space_x; in arrange_elements()
[all …]