MingaEditor.RenderModel.Window.VisualRow (Minga v0.1.0)

Copy Markdown View Source

Internal retained visual-row entry for semantic window builds.

Summary

Types

t()

@type t() :: %MingaEditor.RenderModel.Window.VisualRow{
  buf_line: non_neg_integer(),
  display_row: non_neg_integer(),
  indent_width: non_neg_integer(),
  input_hash: non_neg_integer() | nil,
  reused?: boolean(),
  row: Minga.RenderModel.Window.Row.t(),
  row_width: non_neg_integer(),
  source_end_byte: non_neg_integer(),
  source_end_col: non_neg_integer(),
  source_start_byte: non_neg_integer(),
  source_start_col: non_neg_integer(),
  source_text: String.t(),
  visual_index: non_neg_integer(),
  wrap_line_hash: non_neg_integer() | nil
}

Functions

new(row, source_text, source_start_col, source_end_col, source_start_byte, source_end_byte, indent_width)

reposition(entry, buf_line)

@spec reposition(t(), non_neg_integer()) :: t()

retained_row(visual_row)

reused?(visual_row)

@spec reused?(t()) :: boolean()

with_display_row(entry, display_row)

@spec with_display_row(t(), non_neg_integer()) :: t()

with_retention(entry, input_hash, reused?)

@spec with_retention(t(), non_neg_integer(), boolean()) :: t()

with_wrap_line_hash(entry, wrap_line_hash)

@spec with_wrap_line_hash(t(), non_neg_integer()) :: t()