MingaEditor.Mouse.Target.Text (Minga v0.1.0)

Copy Markdown View Source

A source-backed text target resolved from an immutable frontend presentation.

Summary

Types

position()

@type position() :: {line :: non_neg_integer(), byte :: non_neg_integer()}

t()

@type t() :: %MingaEditor.Mouse.Target.Text{
  buffer: pid(),
  byte: non_neg_integer(),
  line: non_neg_integer(),
  source_version: non_neg_integer(),
  window_id: MingaEditor.Window.id()
}

Functions

new(attrs)

@spec new(map()) :: t()

position(text)

@spec position(t()) :: position()