Skip to main content

Crate kova_native_layout

Crate kova_native_layout 

Source
Expand description

Layout for Kova Native.

LayoutStyle is Kova Native’s own vocabulary for flexbox, grid, block, absolute positioning, sizing constraints, spacing and overflow. The LayoutEngine solves it incrementally with taffy: nodes cache their results and only dirty subtrees are recomputed.

Structs§

Axes
Width/height pair for layout properties.
GridStyle
LayoutEngine
An incremental layout tree.
LayoutId
Handle to a node in the LayoutEngine.
LayoutStyle
Everything that influences layout.
MeasureInput
Inputs passed to leaf measure functions (e.g. text).
NodeLayout
Computed layout of a node, relative to its parent’s border box.

Enums§

Align
Cross axis alignment (align-items, align-self, justify-items).
AvailableSpace
Space available to a node along one axis while measuring.
Display
FlexDirection
FlexWrap
GridPlacement
Placement of a grid item along one axis.
Justify
Main axis distribution (justify-content, align-content).
Length
A length that can be absolute, relative to the parent, or automatic.
Overflow
Position
Track
A grid track size.

Functions§

auto
Automatic sizing.
pct
Percentage of the parent (pct(50.) = half).
px
Logical pixels.
relative
Fraction of the parent (relative(0.5) = half).