Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Crubbletea::Lipgloss
Constants
ANSI_COLORS = {"black" => 0, "red" => 1, "green" => 2, "yellow" => 3, "blue" => 4, "magenta" => 5, "cyan" => 6, "white" => 7, "default" => 9} of
String
=>
Int32
Class methods
ansi_color_code
(color) :
Int32
|
Nil
Source
background
(color :
Color
) :
String
Source
color_profile
Source
foreground
(color :
Color
) :
String
Source
height
(s :
String
) :
Int32
Source
hex_to_rgb
(hex :
String
) :
Tuple
(
Int32
,
Int32
,
Int32
)
Source
join_horizontal
(position :
Style::Pos
, strs :
Array
(
String
)) :
String
Source
join_vertical
(position :
Style::Pos
, strs :
Array
(
String
)) :
String
Source
new_style
Source
place
(box_w :
Int32
, box_h :
Int32
, h_pos :
Style::Pos
, v_pos :
Style::Pos
, content :
String
, bg_char :
Char
|
Nil
= nil) :
String
Source
place_horizontal
(box_w :
Int32
, pos :
Style::Pos
, content :
String
) :
String
Source
place_vertical
(box_h :
Int32
, pos :
Style::Pos
, content :
String
, bg_char :
Char
|
Nil
= nil) :
String
Source
rgb_to_ansi256
(r :
Int32
, g :
Int32
, b :
Int32
) :
Int32
Source
size
(s :
String
) :
Tuple
(
Int32
,
Int32
)
Source
width
(s :
String
) :
Int32
Source
wrap
(s :
String
, width :
Int32
) :
String
Source
Nested types
Crubbletea::Lipgloss::ANSI
Crubbletea::Lipgloss::Border
Crubbletea::Lipgloss::Color
Crubbletea::Lipgloss::ColorProfile
Crubbletea::Lipgloss::List
Crubbletea::Lipgloss::Style
Crubbletea::Lipgloss::TableRenderer
Crubbletea::Lipgloss::Tree
Crubbletea::Lipgloss::Whitespace