Module: Tui::Helpers
- Included in:
- Screen, SegmentWriter
- Defined in:
- lib/tui.rb
Instance Method Summary collapse
- #accent(text) ⇒ Object
- #bold(text) ⇒ Object
- #dim(text) ⇒ Object
-
#emoji(char) ⇒ Object
Use for emoji characters - precomputes width and enables fast-path.
- #fill(char = " ") ⇒ Object
- #highlight(text) ⇒ Object
Instance Method Details
#accent(text) ⇒ Object
284 285 286 |
# File 'lib/tui.rb', line 284 def accent(text) Text.accent(text) end |
#bold(text) ⇒ Object
272 273 274 |
# File 'lib/tui.rb', line 272 def bold(text) Text.bold(text) end |
#dim(text) ⇒ Object
276 277 278 |
# File 'lib/tui.rb', line 276 def dim(text) Text.dim(text) end |
#emoji(char) ⇒ Object
Use for emoji characters - precomputes width and enables fast-path
293 294 295 |
# File 'lib/tui.rb', line 293 def emoji(char) SegmentWriter::EmojiSegment.new(char) end |
#fill(char = " ") ⇒ Object
288 289 290 |
# File 'lib/tui.rb', line 288 def fill(char = " ") SegmentWriter::FillSegment.new(char.to_s) end |
#highlight(text) ⇒ Object
280 281 282 |
# File 'lib/tui.rb', line 280 def highlight(text) Text.highlight(text) end |