[][src]Struct native_windows_gui::FlexboxLayoutBuilder

pub struct FlexboxLayoutBuilder { /* fields omitted */ }

Implementations

impl FlexboxLayoutBuilder[src]

pub fn parent<W: Into<ControlHandle>>(self, p: W) -> FlexboxLayoutBuilder[src]

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

pub fn child<W: Into<ControlHandle>>(self, child: W) -> FlexboxLayoutBuilder[src]

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

pub fn auto_size(self, auto: bool) -> FlexboxLayoutBuilder[src]

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.

pub fn auto_spacing(self, auto: Option<u32>) -> FlexboxLayoutBuilder[src]

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

pub fn direction(self, value: Direction) -> FlexboxLayoutBuilder[src]

pub fn flex_direction(self, value: FlexDirection) -> FlexboxLayoutBuilder[src]

pub fn flex_wrap(self, value: FlexWrap) -> FlexboxLayoutBuilder[src]

pub fn overflow(self, value: Overflow) -> FlexboxLayoutBuilder[src]

pub fn align_items(self, value: AlignItems) -> FlexboxLayoutBuilder[src]

pub fn align_content(self, value: AlignContent) -> FlexboxLayoutBuilder[src]

pub fn justify_content(self, value: JustifyContent) -> FlexboxLayoutBuilder[src]

pub fn padding(self, value: Rect<Dimension>) -> FlexboxLayoutBuilder[src]

pub fn border(self, value: Rect<Dimension>) -> FlexboxLayoutBuilder[src]

pub fn min_size(self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]

pub fn max_size(self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]

pub fn aspect_ratio(self, value: Number) -> FlexboxLayoutBuilder[src]

pub fn child_size(self, size: Size<Dimension>) -> FlexboxLayoutBuilder[src]

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

pub fn child_position(self, position: Rect<Dimension>) -> FlexboxLayoutBuilder[src]

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

pub fn child_margin(self, value: Rect<Dimension>) -> FlexboxLayoutBuilder[src]

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

pub fn child_min_size(self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]

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

pub fn child_max_size(self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]

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

pub fn child_flex_grow(self, value: f32) -> FlexboxLayoutBuilder[src]

Panics if child was not called before.

pub fn child_flex_shrink(self, value: f32) -> FlexboxLayoutBuilder[src]

Panics if child was not called before.

pub fn child_flex_basis(self, value: Dimension) -> FlexboxLayoutBuilder[src]

Panics if child was not called before.

pub fn child_align_self(self, value: AlignSelf) -> FlexboxLayoutBuilder[src]

Panics if child was not called before.

pub fn style(self, style: Style) -> FlexboxLayoutBuilder[src]

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.

pub fn build(self, layout: &FlexboxLayout) -> Result<(), NwgError>[src]

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

Auto Trait Implementations

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.