GPUI.Debug (gpui v0.2.0)

Copy Markdown View Source

Renderer-independent inspection of authoritative GPUI snapshots and trees.

Summary

Functions

Formats a bounded, human-readable tree.

Prints a bounded tree and returns the original source.

Returns a window's authoritative element tree. Runtime render failures raise GPUI.Runtime.Error.

Functions

format_tree(source, opts \\ [])

@spec format_tree(
  GenServer.server() | GPUI.Snapshot.t() | map(),
  keyword()
) :: String.t()

Formats a bounded, human-readable tree.

tree(source, opts \\ [])

@spec tree(
  GenServer.server() | GPUI.Snapshot.t() | map(),
  keyword()
) :: map()

Returns a window's authoritative element tree. Runtime render failures raise GPUI.Runtime.Error.