struct Opal::GlyphSet

Overview

Set of configurable UI glyphs and character symbols for controls. Enables global and per-theme character swapping (e.g., retro ASCII vs modern Unicode).

Defined in:

opal/style/glyph_set.cr

Constructors

Instance Method Summary

Constructor Detail

def self.ascii : GlyphSet #

Predefined ASCII-only glyph set for high-portability terminals


[View source]
def self.new(window_close : String = "[x]", window_maximize : String = "[^]", window_minimize : String = "[-]", window_resize : Char = '◢', cursor : String = "▶ ", checkbox_checked : String = "[x]", checkbox_unchecked : String = "[ ]", radio_checked : String = "(•)", radio_unchecked : String = "( )", dropdown_arrow : String = "▼", dropdown_arrow_up : String = "▲", scrollbar_thumb : Char = '█', scrollbar_track : Char = '░', scrollbar_arrow_up : Char = '▲', scrollbar_arrow_down : Char = '▼', scrollbar_arrow_left : Char = '◄', scrollbar_arrow_right : Char = '►', table_junction : Char = '┼', table_horizontal : Char = '─', table_vertical : Char = '│', table_top_junction : Char = '┬', table_bottom_junction : Char = '┴', table_left_junction : Char = '├', table_right_junction : Char = '┤') #

[View source]
def self.unicode : GlyphSet #

Predefined Unicode glyph set


[View source]

Instance Method Detail

def checkbox_checked : String #

[View source]
def checkbox_checked=(checkbox_checked : String) #

[View source]
def checkbox_unchecked : String #

[View source]
def checkbox_unchecked=(checkbox_unchecked : String) #

[View source]
def cursor : String #

[View source]
def cursor=(cursor : String) #

[View source]
def dropdown_arrow : String #

[View source]
def dropdown_arrow=(dropdown_arrow : String) #

[View source]
def dropdown_arrow_up : String #

[View source]
def dropdown_arrow_up=(dropdown_arrow_up : String) #

[View source]
def radio_checked : String #

[View source]
def radio_checked=(radio_checked : String) #

[View source]
def radio_unchecked : String #

[View source]
def radio_unchecked=(radio_unchecked : String) #

[View source]
def scrollbar_arrow_down : Char #

[View source]
def scrollbar_arrow_down=(scrollbar_arrow_down : Char) #

[View source]
def scrollbar_arrow_left : Char #

[View source]
def scrollbar_arrow_left=(scrollbar_arrow_left : Char) #

[View source]
def scrollbar_arrow_right : Char #

[View source]
def scrollbar_arrow_right=(scrollbar_arrow_right : Char) #

[View source]
def scrollbar_arrow_up : Char #

[View source]
def scrollbar_arrow_up=(scrollbar_arrow_up : Char) #

[View source]
def scrollbar_thumb : Char #

[View source]
def scrollbar_thumb=(scrollbar_thumb : Char) #

[View source]
def scrollbar_track : Char #

[View source]
def scrollbar_track=(scrollbar_track : Char) #

[View source]
def swap(window_close : String | Nil = nil, window_maximize : String | Nil = nil, window_minimize : String | Nil = nil, window_resize : Char | Nil = nil, cursor : String | Nil = nil, checkbox_checked : String | Nil = nil, checkbox_unchecked : String | Nil = nil, radio_checked : String | Nil = nil, radio_unchecked : String | Nil = nil, dropdown_arrow : String | Nil = nil, dropdown_arrow_up : String | Nil = nil, scrollbar_thumb : Char | Nil = nil, scrollbar_track : Char | Nil = nil, scrollbar_arrow_up : Char | Nil = nil, scrollbar_arrow_down : Char | Nil = nil, scrollbar_arrow_left : Char | Nil = nil, scrollbar_arrow_right : Char | Nil = nil, table_junction : Char | Nil = nil, table_horizontal : Char | Nil = nil, table_vertical : Char | Nil = nil, table_top_junction : Char | Nil = nil, table_bottom_junction : Char | Nil = nil, table_left_junction : Char | Nil = nil, table_right_junction : Char | Nil = nil) : GlyphSet #

Returns a modified copy with selective character swaps


[View source]
def table_bottom_junction : Char #

[View source]
def table_bottom_junction=(table_bottom_junction : Char) #

[View source]
def table_horizontal : Char #

[View source]
def table_horizontal=(table_horizontal : Char) #

[View source]
def table_junction : Char #

[View source]
def table_junction=(table_junction : Char) #

[View source]
def table_left_junction : Char #

[View source]
def table_left_junction=(table_left_junction : Char) #

[View source]
def table_right_junction : Char #

[View source]
def table_right_junction=(table_right_junction : Char) #

[View source]
def table_top_junction : Char #

[View source]
def table_top_junction=(table_top_junction : Char) #

[View source]
def table_vertical : Char #

[View source]
def table_vertical=(table_vertical : Char) #

[View source]
def window_close : String #

[View source]
def window_close=(window_close : String) #

[View source]
def window_maximize : String #

[View source]
def window_maximize=(window_maximize : String) #

[View source]
def window_minimize : String #

[View source]
def window_minimize=(window_minimize : String) #

[View source]
def window_resize : Char #

[View source]
def window_resize=(window_resize : Char) #

[View source]