Expand description
Backend-agnostic UI geometry types — Margin, Stroke,
CornerRadius, Align, Align2.
These mirror the same concepts every immediate-mode UI library
exposes (egui, iced, druid, …). Apps and widget code reference
only these neutral types; the concrete backend in khora-infra
converts them to its native equivalents at the trait-impl boundary.
Structs§
- Align2
- Two-axis alignment — combination of horizontal + vertical
Align. - Corner
Radius - Per-corner radius of a rounded rectangle, in logical pixels.
- Margin
- Padding (or outer spacing) on the four sides of a region.
- Stroke
- A border or line stroke — colour + thickness.
Enums§
- Align
- One-axis alignment —
Min(top/left),Center, orMax(bottom/right).