GPUI.WindowSpec (gpui v0.2.0-rc.1)

Copy Markdown View Source

Declarative window specification returned by the application DSL.

Each window owns a bounded set of platform-aware GPUI.Command bindings in addition to its title, size, and root view.

Summary

Types

chrome()

@type chrome() :: :system | :content

key()

@type key() :: String.t()

root()

@type root() :: {module(), map() | keyword()}

t()

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

Functions

validate!(window)

@spec validate!(t()) :: t()