Cross-axis alignment for layout containers (e.g. UIStack).

An enum abstract over Int (just an Int at runtime). Usable unqualified where a UIAlign is expected; from/to Int keep it interchangeable with plain ints.

  • START — left (horizontal) / top (vertical)
  • CENTER — centered on the cross axis
  • END — right (horizontal) / bottom (vertical)

Variables

@:value(cast 1)@:impl@:enuminlineread onlyCENTER:UIAlign = 1

@:value(cast 2)@:impl@:enuminlineread onlyEND:UIAlign = 2

@:value(cast 0)@:impl@:enuminlineread onlySTART:UIAlign = 0