Expand description
RTL layout mirroring and logical direction support (bd-ic6i.3).
Provides types for text-direction–aware layout: FlowDirection controls
whether horizontal content flows left-to-right or right-to-left,
LogicalSides maps logical start/end to physical left/right, and
LogicalAlignment resolves Start/End alignment relative to flow.
§Invariants
- Idempotent mirroring: resolving the same logical values with the same direction always produces the same physical values.
- RTL↔LTR symmetry:
resolve(Rtl)is the mirror ofresolve(Ltr). - Vertical invariance: RTL only affects the horizontal axis.
- Composable: logical values can be nested; each subtree resolves independently.
Structs§
- Logical
Sides - Padding or margin expressed in logical (direction-aware) terms.
Enums§
- Flow
Direction - Horizontal text flow direction.
- Logical
Alignment - Alignment in logical (direction-aware) terms.
Functions§
- mirror_
rects_ horizontal - Mirror a sequence of
Rects horizontally within a containing area.