class

Opal::UI::Text

Inherits Opal::UI::Element < Opal::UI::Themable < Reference < Object

Renders styled text with optional wrapping or clipping.

Constructors

new(content : String, fg : Color | Symbol | String = Color.none, bg : Color | Symbol | String = Color.none, bold : Bool = false, dim : Bool = false, italic : Bool = false, underline : Bool = false, wrap : Bool = false)
Source

Instance methods

bg=(bg : Color)
Source
bold=(bold : Bool)
Source
bold?
Source
content
Source
content=(content : String)
Source
dim=(dim : Bool)
Source
dim?
Source
fg=(fg : Color)
Source
italic=(italic : Bool)
Source
italic?
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
underline=(underline : Bool)
Source
underline?
Source
wrap=(wrap : Bool)
Source
wrap?
Source