ElixirOpentui.Border (ElixirOpentui v0.2.0)

Copy Markdown View Source

Border character definitions for different border styles.

Provides the box-drawing characters for :single, :double, :rounded, and :heavy border styles. Used by the Painter to render element borders.

Summary

Types

border_chars()

@type border_chars() :: %{
  tl: String.t(),
  tr: String.t(),
  bl: String.t(),
  br: String.t(),
  h: String.t(),
  v: String.t()
}

border_style()

@type border_style() :: :single | :double | :rounded | :heavy

Functions

chars(atom)

@spec chars(border_style()) :: border_chars()

styles()

@spec styles() :: [border_style()]

valid?(style)

@spec valid?(term()) :: boolean()