Struct newt::grid::Grid

source · []
pub struct Grid<'a> { /* private fields */ }
Expand description

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

Create a new Grid with the specified columns and rows.

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

Trait Implementations

Return newtComponent pointer.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Allow the Widget to be focused when its parent Form is run. Read more

Get the position of the Widget’s top left corner. Read more

Get the Widget’s width and height. Read more