Bsp.Node (Jigsaw v0.1.0)

Copy Markdown View Source

Node represents a split in the layout with a left and right side. Direction represents the direction of the split.

The ratio field is currently experimental and reserved for future proportional layout support and is not used when calculating geometry.

Summary

Types

t()

@type t() :: %Bsp.Node{
  direction: Types.Direction.t(),
  id: Types.Id.t(),
  left: Bsp.Pane.t(),
  ratio: float(),
  right: Bsp.Pane.t()
}