pub struct Container {
pub child: Node,
pub align: Option<Alignment>,
pub height: Option<Unit>,
pub max_height: Option<Unit>,
pub max_width: Option<Unit>,
pub width: Option<Unit>,
pub padding: Option<VecUnit>,
pub margin: Option<VecUnit>,
pub background_color: Option<Color>,
pub border: Option<Border>,
pub shadow: Option<BoxShadow>,
}Expand description
To be honest, Container is a part of Flex family, but he is too brilliant to stay in Flex family, Layout calls him.
Fields§
§child: NodeContainer child
align: Option<Alignment>Container align
height: Option<Unit>Container height
max_height: Option<Unit>SizedBox Max Height
max_width: Option<Unit>SizedBox Max Width
width: Option<Unit>Container width
padding: Option<VecUnit>Container padding
margin: Option<VecUnit>Container margin
background_color: Option<Color>Container background
border: Option<Border>Container Border
shadow: Option<BoxShadow>Box Shadow
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Container
impl !RefUnwindSafe for Container
impl !Send for Container
impl !Sync for Container
impl Unpin for Container
impl !UnwindSafe for Container
Blanket Implementations§
Source§impl<T> AlignItems for T
impl<T> AlignItems for T
Source§fn align_items(self, value: FlexPosition) -> Node
fn align_items(self, value: FlexPosition) -> Node
AlignItem Style
Source§impl<T> BackgroundColor for T
impl<T> BackgroundColor for T
Source§fn background_color(self, value: Color) -> Node
fn background_color(self, value: Color) -> Node
Custom Color
Source§impl<T> BorderBottom for T
impl<T> BorderBottom for T
Source§fn border_bottom(self, value: BoxBorder) -> Node
fn border_bottom(self, value: BoxBorder) -> Node
Border Bottom
Source§impl<T> BorderLeft for T
impl<T> BorderLeft for T
Source§fn border_left(self, value: BoxBorder) -> Node
fn border_left(self, value: BoxBorder) -> Node
Border Left
Source§impl<T> BorderRight for T
impl<T> BorderRight for T
Source§fn border_right(self, value: BoxBorder) -> Node
fn border_right(self, value: BoxBorder) -> Node
Border Right
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ColumnCount for T
impl<T> ColumnCount for T
Source§fn column_count(self, value: Unit) -> Node
fn column_count(self, value: Unit) -> Node
ColumnCount Style
Source§impl<T> ColumnRuleColor for T
impl<T> ColumnRuleColor for T
Source§fn column_rule_color(self, value: Color) -> Node
fn column_rule_color(self, value: Color) -> Node
ColumnRuleColor Style
Source§impl<T> ColumnRuleStyle for T
impl<T> ColumnRuleStyle for T
Source§fn column_rule_style(self, value: MultiColumnLineStyle) -> Node
fn column_rule_style(self, value: MultiColumnLineStyle) -> Node
ColumnRuleStyle Style
Source§impl<T> FontStretch for T
impl<T> FontStretch for T
Source§fn font_stretch(self, value: Unit) -> Node
fn font_stretch(self, value: Unit) -> Node
Font Stretch Style
Source§impl<T> FontWeight for T
impl<T> FontWeight for T
Source§fn font_weight(self, value: Unit) -> Node
fn font_weight(self, value: Unit) -> Node
Font Weight Style
Source§impl<T> GridAutoColumns for T
impl<T> GridAutoColumns for T
Source§fn grid_auto_columns(self, value: GridAuto) -> Node
fn grid_auto_columns(self, value: GridAuto) -> Node
GridAutoColumn Style
Source§impl<T> GridAutoFlow for T
impl<T> GridAutoFlow for T
Source§fn grid_auto_flow(self, value: GridFlow) -> Node
fn grid_auto_flow(self, value: GridFlow) -> Node
GridAutoFlow Style
Source§impl<T> GridAutoRows for T
impl<T> GridAutoRows for T
Source§fn grid_auto_rows(self, value: GridAuto) -> Node
fn grid_auto_rows(self, value: GridAuto) -> Node
GridAutoColumn Style
Source§impl<T> GridColumnGap for T
impl<T> GridColumnGap for T
Source§fn grid_column_gap(self, value: Unit) -> Node
fn grid_column_gap(self, value: Unit) -> Node
GridColumnGap Style
Source§impl<T> GridRowGap for T
impl<T> GridRowGap for T
Source§fn grid_row_rap(self, value: Unit) -> Node
fn grid_row_rap(self, value: Unit) -> Node
GridColumnGap Style
Source§impl<T> GridTemplateColumns for T
impl<T> GridTemplateColumns for T
Source§fn grid_template_columns(self, value: GridTemplate) -> Node
fn grid_template_columns(self, value: GridTemplate) -> Node
GridTemplateColumns Style
Source§impl<T> GridTemplateRows for T
impl<T> GridTemplateRows for T
Source§fn grid_tempalte_row(self, value: GridTemplate) -> Node
fn grid_tempalte_row(self, value: GridTemplate) -> Node
GridTemplateRow Style
Source§impl<T> JustifyContent for T
impl<T> JustifyContent for T
Source§fn justify_content(self, value: FlexPosition) -> Node
fn justify_content(self, value: FlexPosition) -> Node
AlignItem Style
Source§impl<T> LineHeight for T
impl<T> LineHeight for T
Source§fn line_hegiht(self, value: Unit) -> Node
fn line_hegiht(self, value: Unit) -> Node
Line Height Style
Source§impl<T> MarginBottom for T
impl<T> MarginBottom for T
Source§fn margin_bottom(self, value: Unit) -> Node
fn margin_bottom(self, value: Unit) -> Node
Margin Bottom
Source§impl<T> MarginLeft for T
impl<T> MarginLeft for T
Source§fn margin_left(self, value: Unit) -> Node
fn margin_left(self, value: Unit) -> Node
Margin left
Source§impl<T> MarginRight for T
impl<T> MarginRight for T
Source§fn margin_right(self, value: Unit) -> Node
fn margin_right(self, value: Unit) -> Node
Margin right
Source§impl<T> OutlineWidth for T
impl<T> OutlineWidth for T
Source§fn outline_width(self, value: Unit) -> Node
fn outline_width(self, value: Unit) -> Node
Box Outline Width
Source§impl<T> PaddingBottom for T
impl<T> PaddingBottom for T
Source§fn padding_bottom(self, value: Unit) -> Node
fn padding_bottom(self, value: Unit) -> Node
Padding Bottom
Source§impl<T> PaddingLeft for T
impl<T> PaddingLeft for T
Source§fn padding_left(self, value: Unit) -> Node
fn padding_left(self, value: Unit) -> Node
Padding left
Source§impl<T> PaddingRight for T
impl<T> PaddingRight for T
Source§fn padding_right(self, value: Unit) -> Node
fn padding_right(self, value: Unit) -> Node
Padding right
Source§impl<T> PaddingTop for T
impl<T> PaddingTop for T
Source§fn padding_top(self, value: Unit) -> Node
fn padding_top(self, value: Unit) -> Node
Padding Top