Lines Matching refs:grid
10 layout::grid::{Grid, GridArrangeType},
58 let grid = self.asset_grid.clone(); in init_grid() localVariable
59 grid.set_upper_limit(8); in init_grid()
60 grid.set_space(20, 20); in init_grid()
61 grid.set_arrange_type(GridArrangeType::Horizontal); in init_grid()
65 grid.set_enter_callback(move |grid, char, redraw| { in init_grid()
69 if let Some(item) = asset_manager.items.get(&grid.focused_id.get().unwrap()) { in init_grid()
123 let mut nxt_row = grid.focused_id.get().unwrap().0 as i32 + row_offset; in init_grid()
124 let mut nxt_col = grid.focused_id.get().unwrap().1 as i32 + col_offset; in init_grid()
127 || nxt_row >= grid.max_row.get() as i32 in init_grid()
129 || nxt_col >= grid.max_column.get() as i32 in init_grid()
134 if grid in init_grid()
146 grid.focus( in init_grid()
147 grid.elements in init_grid()
217 let grid = self.asset_grid.clone(); in refresh_grid() localVariable
218 if let Some(widget) = grid.elements.borrow().get(&(0, 0)) { in refresh_grid()
219 grid.focused_id.set(Some((0, 0))); in refresh_grid()
220 grid.focus(widget); in refresh_grid()