Struct cursive_flexbox::FlexItem
source · pub struct FlexItem { /* private fields */ }
Expand description
A single item in a Flexbox.
Implementations§
source§impl FlexItem
impl FlexItem
sourcepub fn with_flex_grow(view: impl IntoBoxedView, flex_grow: u8) -> Self
pub fn with_flex_grow(view: impl IntoBoxedView, flex_grow: u8) -> Self
Create a flex item with the given grow factor.
sourcepub fn set_flex_grow(&mut self, flex_grow: u8)
pub fn set_flex_grow(&mut self, flex_grow: u8)
Set the flex-grow.