Lines Matching refs:cols
177 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()
225 child.set_pivot_offset(Vector2::new(cols[col].x, rows[row].y)); in arrange_elements()
227 child.resize(cols[col].width, rows[row].height); in arrange_elements()