View Source Mudbrick.TextBlock (mudbrick v0.7.0)

Summary

Types

@type alignment() :: :left | :right
@type option() ::
  {:align, alignment()}
  | {:colour, Mudbrick.colour()}
  | {:font, atom()}
  | {:font_size, number()}
  | {:leading, number()}
  | {:position, Mudbrick.coords()}
@type options() :: [option()]
@type part_option() ::
  {:colour, Mudbrick.colour()}
  | {:font, atom()}
  | {:font_size, number()}
  | {:leading, number()}
  | {:underline, underline_options()}
@type part_options() :: [part_option()]
@type t() :: %Mudbrick.TextBlock{
  align: alignment(),
  colour: Mudbrick.colour(),
  font: Mudbrick.Font.t(),
  font_size: number(),
  leading: number(),
  lines: list(),
  position: Mudbrick.coords()
}
@type underline_option() :: {:width, number()} | {:colour, Mudbrick.colour()}
@type underline_options() :: [underline_option()]
@type write() :: String.t() | write_tuple() | [write_tuple()]
@type write_tuple() :: {String.t(), part_options()}