GPUI.Snapshot.Window (gpui v0.2.0)

Copy Markdown View Source

Typed shape of one serialized window in a GPUI.Snapshot.

Window snapshots remain plain maps so they can cross local and remote display boundaries without conversion. This module supplies named map types for that stable in-process contract.

Summary

Types

root()

@type root() :: %{module: String.t(), assigns: map(), tree: map()}

t()

@type t() :: %{
  id: pos_integer(),
  key: String.t() | nil,
  title: String.t(),
  size: [pos_integer()],
  min_size: [pos_integer()] | nil,
  resizable: boolean(),
  chrome: GPUI.WindowSpec.chrome(),
  lifecycle: [GPUI.View.window_event()],
  commands: [{String.t(), String.t()}],
  root: root() | nil
}