MingaEditor.PresentationTarget (Minga v0.1.0)

Copy Markdown View Source

Semantic editor target carried by every native frame.

Summary

Functions

Derives the active file target represented by an editor state.

Types

t()

@type t() :: %MingaEditor.PresentationTarget{
  focus_required: boolean(),
  token: non_neg_integer(),
  window_id: MingaEditor.Window.id()
}

Functions

from_editor_state(state)

@spec from_editor_state(MingaEditor.State.t()) :: t() | nil

Derives the active file target represented by an editor state.