Skia.ParagraphStyle (Skia v0.3.7)

Copy Markdown View Source

Reusable paragraph layout options for Skia.text/3.

Summary

Types

t()

@type t() :: %Skia.ParagraphStyle{
  align: atom() | nil,
  direction: atom() | nil,
  ellipsis: String.t() | nil,
  height: number() | nil,
  max_lines: non_neg_integer() | nil,
  vertical_align: :top | :center | :bottom | nil,
  width: number() | nil
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()

to_opts(style)

@spec to_opts(t()) :: keyword()