pub struct GridLayoutBuilder { /* private fields */ }
Expand description

Builder for a GridLayout struct

Implementations

Set the layout parent. The handle must be a window object otherwise the function will panic

Add a children to the layout at the position col and row. This is a shortcut over child_item for item with default span. The handle must be a window object otherwise the function will panic

Add a children to the layout The handle must be a window object otherwise the function will panic

Set the margins of the layout. The four values are in this order: top, right, bottom, left.

Set the size of the space between the children in the layout. Default value is 5.

Sets the minimum size of the layout

Sets the maximum size of the layout

Set the number of column in the layout

Set the number of row in the layout

Build the layout object and bind the callback. Children must only contains window object otherwise this method will panic.

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.