Raxol.Style.Layout (Raxol v0.4.0)

View Source

Defines layout properties for terminal UI elements.

Summary

Functions

Merges two layout structs, with the second overriding the first.

Creates a new layout with default values.

Creates a new layout with the specified values.

Types

t()

@type t() :: %Raxol.Style.Layout{
  alignment: :left | :center | :right,
  height: integer() | :auto,
  margin: {integer(), integer(), integer(), integer()},
  overflow: :visible | :hidden | :scroll,
  padding: {integer(), integer(), integer(), integer()},
  width: integer() | :auto
}

Functions

merge(base, override)

Merges two layout structs, with the second overriding the first.

new()

Creates a new layout with default values.

new(attrs)

Creates a new layout with the specified values.