Minga.RenderModel.Cursor (Minga v0.1.0)

Copy Markdown View Source

Cursor state for one rendered frame.

The editor owns cursor semantics. The render model carries the resolved cursor position and shape so frontend adapters can encode or draw it without reaching back into editor state.

Summary

Functions

Creates a cursor model.

Types

shape()

@type shape() :: :block | :beam | :underline

t()

@type t() :: %Minga.RenderModel.Cursor{
  col: non_neg_integer(),
  row: non_neg_integer(),
  shape: shape()
}

Functions

new(row, col, shape)

@spec new(non_neg_integer(), non_neg_integer(), shape()) :: t()

Creates a cursor model.