tengri/output/README.md

844 B

tengri_output is an abstract interface layout framework.

it expresses the following notions:

  • space: Direction, Coordinate, Area, Size, Measure

  • output: Out, Draw, Content

    • the layout operators are generic over Draw and/or Content
    • the traits Draw and Content are generic over Out
    • implement Out to bring a layout to a new backend: see TuiOut in tengri_tui
  • layout:

    • conditionals: When, Either
    • iteration: Map
    • concatenation: Bsp
    • positioning: Align, Push, Pull
    • sizing: Fill, Fixed, Expand, Shrink, Min, Max
    • implement custom components (that may be backend-dependent): see tui_content in tengri_tui