struct GridContainerConstants {Show 20 fields
direction: Direction,
contain: Contain,
containing_block_claims: ContainingBlockClaims,
padding: Rect<f32>,
border: Rect<f32>,
padding_border_size: Size<f32>,
min_size: Size<Option<f32>>,
max_size: Size<Option<f32>>,
preferred_size: Size<Option<f32>>,
scrollbar_gutter: Point<f32>,
content_box_inset: Rect<f32>,
align_content: AlignContent,
justify_content: AlignContent,
align_items: AlignItems,
justify_items: AlignItems,
available_grid_space: Size<AvailableSpace>,
outer_node_size: Size<Option<f32>>,
inner_min_size: Size<Option<f32>>,
inner_max_size: Size<Option<f32>>,
inner_node_size: Size<Option<f32>>,
}Expand description
The grid container’s resolved box, size constraints, alignment styles and available space, computed once from the container’s style and the layout inputs before the grid is laid out
Fields§
§direction: DirectionThe container’s direction style
contain: ContainThe container’s contain style
containing_block_claims: ContainingBlockClaimsWhich positioning schemes the container is a containing block for
padding: Rect<f32>The container’s resolved padding
border: Rect<f32>The container’s resolved border
padding_border_size: Size<f32>The sum of padding and border in each axis
min_size: Size<Option<f32>>The container’s border-box min size, if definite
max_size: Size<Option<f32>>The container’s border-box max size, if definite
preferred_size: Size<Option<f32>>The container’s border-box preferred size, if definite
scrollbar_gutter: Point<f32>The space reserved for scrollbars in each axis
content_box_inset: Rect<f32>Padding, border and scrollbar gutter combined
align_content: AlignContentThe container’s align-content style
justify_content: AlignContentThe container’s justify-content style
align_items: AlignItemsThe container’s align-items style
justify_items: AlignItemsThe container’s justify-items style
available_grid_space: Size<AvailableSpace>The space available to size the grid tracks in each axis
outer_node_size: Size<Option<f32>>The container’s border-box size, if definite
inner_min_size: Size<Option<f32>>The container’s content-box min size, if definite
inner_max_size: Size<Option<f32>>The container’s content-box max size, if definite
inner_node_size: Size<Option<f32>>The container’s content-box size, if definite
Trait Implementations§
Source§impl Clone for GridContainerConstants
impl Clone for GridContainerConstants
Source§fn clone(&self) -> GridContainerConstants
fn clone(&self) -> GridContainerConstants
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more