pub struct FlexboxLayoutBuilder { /* private fields */ }

Implementations

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

Add a new child to the layout build. Panics if child is not a window-like control.

Add a new child layout to the layout build.

Make it so that the children of the layout all have equal size This flags is erased when size, max_size, or min_size is set on the children.

Automatically generate padding and margin for the parent layout and the children from the selected value. This flags is erased when padding is called on the layout or when child_margin is called on the children

Set the size of of the current child. Panics if child was not called before.

Set the position of the current child. Panics if child was not called before.

Set the margin of the current child. Panics if child was not called before.

Set the min size of the current child. Panics if child was not called before.

Set the max size of the current child. Panics if child was not called before.

Panics if child was not called before.

Panics if child was not called before.

Panics if child was not called before.

Panics if child was not called before.

Directly set the style parameter of the current child. Panics if child was not called before.

If defining style is too verbose, other method such as size can be used.

Build the layout object and bind the callback.

Build a “partial” layout object - this layout has no direct callback and needs to be added to a parent layout using child_layout

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.