Struct kiss_ui::container::Grid  
            
                [−]
            
        [src]
pub struct Grid(_);
A container widget that lines up its children from left to right, and from top to bottom.
Methods
impl Grid
fn new<C>(children: C) -> Grid where C: AsRef<[BaseWidget]>
fn set_valign(self, valign: VAlign) -> Self
fn set_halign(self, halign: HAlign) -> Self
fn set_ndiv(self, ndiv: u32) -> Self
Based on the orientation, set the number of children to place in a:
Vertial: columnHorizontal: row
before beginning the next one.
fn set_orientation(&mut self, orientation: Orientation) -> &mut Self
Sets how children are distributed in the container.
Vertical: The container will fill columns first.
Visual example (ndiv=3 grid with 7 children):
| Child | Child | Child | 
| Child | Child | |
| Child | Child | 
Horizontal: The container will fill rows first. Default.
Visual example (ndiv=3 grid with 7 children):
| Child | Child | Child | 
| Child | Child | Child | 
| Child |