pub struct BentoGrid { /* private fields */ }Expand description
Bento grid layout component
§Example
use armas_basic::layout::{BentoGrid, GridSpan};
BentoGrid::new()
.columns(3)
.cell_size(120.0)
.gap(8.0)
.show(ui, |grid| {
grid.item(GridSpan::Single, |ui| { ui.label("Cell 1"); });
grid.item(GridSpan::Wide, |ui| { ui.label("Wide cell"); });
});Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BentoGrid
impl RefUnwindSafe for BentoGrid
impl Send for BentoGrid
impl Sync for BentoGrid
impl Unpin for BentoGrid
impl UnsafeUnpin for BentoGrid
impl UnwindSafe for BentoGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more