enum Dimension
Swift
enum Dimension
Maps onto Yoga's width/height states (not a single -1 sentinel).
Sources/LavaUI/Dimension.swift:2
Cases
case undefined
Leave unspecified / YGUndefined — parent or content decides.
Sources/LavaUI/Dimension.swift:4
case auto
YGNodeStyleSetWidthAuto / height auto.
Sources/LavaUI/Dimension.swift:6
case point(Float)
Fixed point size in pixels.
Sources/LavaUI/Dimension.swift:8
case percent(Float)
YGNodeStyleSetWidthPercent / height percent, 0–100, of the
containing block — a split workspace panel that should stay 38% of
the window rather than a fixed point width, still shrinkable no
further than whatever minWidth/minHeight says separately.
Sources/LavaUI/Dimension.swift:13
Methods
static func pct(_ value: Float) -> Dimension
Not documented.
Sources/LavaUI/Dimension.swift:16
static func pt(_ value: Float) -> Dimension
Not documented.
Sources/LavaUI/Dimension.swift:15