GPUI.Text.Rectangle (gpui v0.2.0-rc.1)

Copy Markdown View Source

Window-relative native pixel rectangle for laid-out text.

Summary

Functions

Decodes a protocol rectangle map into a typed rectangle value.

Types

t()

@type t() :: %GPUI.Text.Rectangle{
  height: float(),
  width: float(),
  x: float(),
  y: float()
}

Functions

from_event(value)

@spec from_event(map()) :: t()

Decodes a protocol rectangle map into a typed rectangle value.