[−][src]Struct native_windows_gui::FlexboxLayoutBuilder
Implementations
impl FlexboxLayoutBuilder[src]
pub fn parent<W: Into<ControlHandle>>(
mut self: Self,
p: W
) -> FlexboxLayoutBuilder[src]
mut self: Self,
p: W
) -> FlexboxLayoutBuilder
Set the layout parent. The handle must be a window object otherwise the function will panic
pub fn child<W: Into<ControlHandle>>(
mut self: Self,
child: W
) -> FlexboxLayoutBuilder[src]
mut self: Self,
child: W
) -> FlexboxLayoutBuilder
Add a new child to the layout build.
Panics if child is not a window-like control.
pub fn auto_size(mut self: 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(mut self: 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(mut self: Self, value: Direction) -> FlexboxLayoutBuilder[src]
pub fn flex_direction(
mut self: Self,
value: FlexDirection
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: FlexDirection
) -> FlexboxLayoutBuilder
pub fn flex_wrap(mut self: Self, value: FlexWrap) -> FlexboxLayoutBuilder[src]
pub fn overflow(mut self: Self, value: Overflow) -> FlexboxLayoutBuilder[src]
pub fn align_items(mut self: Self, value: AlignItems) -> FlexboxLayoutBuilder[src]
pub fn align_content(
mut self: Self,
value: AlignContent
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: AlignContent
) -> FlexboxLayoutBuilder
pub fn justify_content(
mut self: Self,
value: JustifyContent
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: JustifyContent
) -> FlexboxLayoutBuilder
pub fn padding(mut self: Self, value: Rect<Dimension>) -> FlexboxLayoutBuilder[src]
pub fn border(mut self: Self, value: Rect<Dimension>) -> FlexboxLayoutBuilder[src]
pub fn min_size(mut self: Self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]
pub fn max_size(mut self: Self, value: Size<Dimension>) -> FlexboxLayoutBuilder[src]
pub fn aspect_ratio(mut self: Self, value: Number) -> FlexboxLayoutBuilder[src]
pub fn child_size(mut self: 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(
mut self: Self,
position: Rect<Dimension>
) -> FlexboxLayoutBuilder[src]
mut self: Self,
position: Rect<Dimension>
) -> FlexboxLayoutBuilder
Set the position of the current child.
Panics if child was not called before.
pub fn child_margin(
mut self: Self,
value: Rect<Dimension>
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: Rect<Dimension>
) -> FlexboxLayoutBuilder
Set the margin of the current child.
Panics if child was not called before.
pub fn child_min_size(
mut self: Self,
value: Size<Dimension>
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: Size<Dimension>
) -> FlexboxLayoutBuilder
Set the min size of the current child.
Panics if child was not called before.
pub fn child_max_size(
mut self: Self,
value: Size<Dimension>
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: Size<Dimension>
) -> FlexboxLayoutBuilder
Set the max size of the current child.
Panics if child was not called before.
pub fn child_flex_grow(mut self: Self, value: f32) -> FlexboxLayoutBuilder[src]
Panics if child was not called before.
pub fn child_flex_shrink(mut self: Self, value: f32) -> FlexboxLayoutBuilder[src]
Panics if child was not called before.
pub fn child_flex_basis(
mut self: Self,
value: Dimension
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: Dimension
) -> FlexboxLayoutBuilder
Panics if child was not called before.
pub fn child_align_self(
mut self: Self,
value: AlignSelf
) -> FlexboxLayoutBuilder[src]
mut self: Self,
value: AlignSelf
) -> FlexboxLayoutBuilder
Panics if child was not called before.
pub fn style(mut self: 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(mut self: 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
impl !RefUnwindSafe for FlexboxLayoutBuilder[src]
impl !Send for FlexboxLayoutBuilder[src]
impl !Sync for FlexboxLayoutBuilder[src]
impl Unpin for FlexboxLayoutBuilder[src]
impl !UnwindSafe for FlexboxLayoutBuilder[src]
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,
pub 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.
pub 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>,