Cringe.Layout.Node (cringe v0.2.0)

Copy Markdown View Source

Positioned result of laying out a document node.

Summary

Types

t()

@type t() :: %Cringe.Layout.Node{
  children: [t()],
  content_rect: Cringe.Rect.t(),
  cursor: {pos_integer(), pos_integer()} | nil,
  document: Cringe.Document.t(),
  lines: [String.t()],
  rect: Cringe.Rect.t(),
  size: Cringe.Layout.Size.t()
}

Functions

new(document, lines, opts \\ [])

@spec new(Cringe.Document.t(), [String.t()], keyword()) :: t()