[−][src]Struct newt::grid::Grid
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]
&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
)
Add a component or sub-grid to the positon (col, row) in the grid.
Trait Implementations
impl<'a> Component for Grid<'a>[src]
fn co(&self) -> newtComponent[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> WidgetFns for T where
T: Grid, [src]
T: Grid,