[][src]Struct newt::grid::Grid

pub struct Grid<'a> { /* fields omitted */ }

Arrange Components and sub-grids within a two-dimensional grid.

Component screen positions will automatically be calculated based on their position in the grid.

Implementations

impl<'a> Grid<'a>[src]

pub fn new(cols: i32, rows: i32) -> Grid<'a>[src]

Create a new Grid with the specified columns and rows.

pub fn set_field(
    &mut self,
    col: i32,
    row: i32,
    val: &'a dyn Component,
    pad_left: i32,
    pad_top: i32,
    pad_right: i32,
    pad_bottom: i32,
    anchor: i32,
    flags: i32
)
[src]

Add a component or sub-grid to the positon (col, row) in the grid.

Trait Implementations

impl<'a> Component for Grid<'a>[src]

impl<'a> Drop for Grid<'a>[src]

impl<'a> GridFns for Grid<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Grid<'a>

impl<'a> !Send for Grid<'a>

impl<'a> !Sync for Grid<'a>

impl<'a> Unpin for Grid<'a>

impl<'a> !UnwindSafe for Grid<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WidgetFns for T where
    T: Grid, 
[src]