struct

Opal::GlyphSet

Inherits Struct < Value < Object

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

Constructors

ascii

Predefined ASCII-only glyph set for high-portability terminals

Source
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 = '┤')
Source
unicode

Predefined Unicode glyph set

Source

Instance methods

checkbox_checked
Source
checkbox_checked=(checkbox_checked : String)
Source
checkbox_unchecked
Source
checkbox_unchecked=(checkbox_unchecked : String)
Source
cursor
Source
cursor=(cursor : String)
Source
radio_checked
Source
radio_checked=(radio_checked : String)
Source
radio_unchecked
Source
radio_unchecked=(radio_unchecked : String)
Source
scrollbar_arrow_down
Source
scrollbar_arrow_down=(scrollbar_arrow_down : Char)
Source
scrollbar_arrow_left
Source
scrollbar_arrow_left=(scrollbar_arrow_left : Char)
Source
scrollbar_arrow_right
Source
scrollbar_arrow_right=(scrollbar_arrow_right : Char)
Source
scrollbar_arrow_up
Source
scrollbar_arrow_up=(scrollbar_arrow_up : Char)
Source
scrollbar_thumb
Source
scrollbar_thumb=(scrollbar_thumb : Char)
Source
scrollbar_track
Source
scrollbar_track=(scrollbar_track : Char)
Source
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

Source
table_bottom_junction
Source
table_bottom_junction=(table_bottom_junction : Char)
Source
table_horizontal
Source
table_horizontal=(table_horizontal : Char)
Source
table_junction
Source
table_junction=(table_junction : Char)
Source
table_left_junction
Source
table_left_junction=(table_left_junction : Char)
Source
table_right_junction
Source
table_right_junction=(table_right_junction : Char)
Source
table_top_junction
Source
table_top_junction=(table_top_junction : Char)
Source
table_vertical
Source
table_vertical=(table_vertical : Char)
Source
window_close
Source
window_close=(window_close : String)
Source
window_maximize
Source
window_maximize=(window_maximize : String)
Source
window_minimize
Source
window_minimize=(window_minimize : String)
Source
window_resize
Source
window_resize=(window_resize : Char)
Source