Skip to main content

Module grid

Module grid 

Source
Expand description

CSS properties for CSS Grid layout.

Structs§

GridAreaDefinition
A single named grid area with its row/column bounds (1-based grid line numbers). This matches taffy’s GridTemplateArea<String>.
GridAreaDefinitionVec
GridAreaDefinitionVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
GridAutoTracks
Represents grid-auto-columns or grid-auto-rows Structurally identical to GridTemplate but semantically different
GridMinMax
Wrapper for minmax(min, max) to satisfy repr(C) (enum variants can only have 1 field)
GridPlacement
Represents grid-row or grid-column (start / end)
GridTemplate
Represents grid-template-columns or grid-template-rows
GridTemplateAreas
Represents the parsed value of grid-template-areas.
GridTrackSizingVec
GridTrackSizingVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
LayoutGap
NamedGridLine
Named grid line with optional span count (FFI-safe wrapper)

Enums§

GridAreaDefinitionVecDestructor
GridAutoFlowParseError
GridAutoFlowParseErrorOwned
GridLine
Represents a grid line position (start or end)
GridParseError
GridParseErrorOwned
GridTrackSizing
Represents a single track sizing function for grid
GridTrackSizingVecDestructor
JustifyItemsParseError
JustifyItemsParseErrorOwned
JustifySelfParseError
JustifySelfParseErrorOwned
LayoutGridAutoFlow
Represents the grid-auto-flow property
LayoutJustifyItems
Represents justify-items for grid containers
LayoutJustifySelf
Represents justify-self for grid items
OptionGridAreaDefinition
OptionGridTrackSizing

Functions§

parse_grid_line_owned
parse_grid_placement
parse_grid_template
parse_grid_template_areas
Parse grid-template-areas CSS value.
parse_layout_gap
parse_layout_grid_auto_flow
parse_layout_justify_items
parse_layout_justify_self

Type Aliases§

GridAreaDefinitionVecDestructorType
GridTrackSizingVecDestructorType