MingaEditor.Frontend.Emit.Context (Minga v0.1.0)

Copy Markdown View Source

Strict emit-local projection over a materialized render input.

The accepted intent stays nested and identical. This context keeps only renderer-local values plus derived emit fields.

Summary

Functions

Accepts message-store write-back produced while building UI models.

Strict test/helper path from editor state through intent and renderer-local input.

Builds an emit context from materialized render input.

Types

t()

@type t() :: %MingaEditor.Frontend.Emit.Context{
  acknowledgement_required?: boolean(),
  completion: Minga.Editing.Completion.t() | nil,
  font_registry: MingaEditor.UI.FontRegistry.t(),
  frame_seq: non_neg_integer() | nil,
  git_toast: MingaEditor.Shell.Traditional.GitToast.t() | nil,
  gui?: boolean(),
  intent: MingaEditor.RenderPipeline.Intent.t(),
  layout: MingaEditor.Layout.t(),
  link_cursor: boolean(),
  message_store: MingaEditor.UI.Panel.MessageStore.t(),
  surface_placements: [MingaEditor.Layout.SurfaceRegistry.wire_placement()],
  tab_bar: MingaEditor.State.TabBar.t() | nil,
  title: String.t(),
  windows: MingaEditor.State.Windows.t(MingaEditor.Renderer.RenderWindow.t()),
  workspace: MingaEditor.RenderPipeline.WorkspaceIntent.t()
}

Functions

accept_message_store(ctx, message_store)

@spec accept_message_store(t(), MingaEditor.UI.Panel.MessageStore.t()) :: t()

Accepts message-store write-back produced while building UI models.

from_editor_state(state)

@spec from_editor_state(MingaEditor.State.t() | MingaEditor.RenderPipeline.Input.t()) ::
  t()

Strict test/helper path from editor state through intent and renderer-local input.

from_input(input)

@spec from_input(MingaEditor.RenderPipeline.Input.t()) :: t()

Builds an emit context from materialized render input.