Home
last modified time | relevance | path

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

/StarryEngine/starry_applications/src/asset_manager/code/
H A Dmod.rs10 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()
[all …]
/StarryEngine/starry_toolkit/src/
H A Dmain.rs8 layout::grid::{Grid, GridArrangeType},
27 let grid = Grid::new(); in main() localVariable
28 grid.set_arrange_type(GridArrangeType::Horizontal); //优先横向排列 in main()
29 grid.set_upper_limit(3); //每行最大元素个数为3 in main()
31 grid.set_space(20, 20); in main()
32 grid.add_element(&image1); in main()
33 grid.add_element(&image2); in main()
34 grid.add_element(&image3); in main()
35 grid.add_element(&image4); in main()
36 grid.add_element(&image5); in main()
[all …]
/StarryEngine/starry_toolkit/src/layout/
H A Dgrid.rs62 let grid = Arc::new(Grid { in new() localVariable
84 (*grid.self_ref.borrow_mut()) = Arc::downgrade(&grid); in new()
86 return grid; in new()
H A Dmod.rs1 pub mod grid; module