class

Opal::UI::Placeholder

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

Layout prototyping placeholder widget inspired by Python Textual's Placeholder. Renders an area-filling card with interior diagonal cross or pattern, centered title, and computed width x height dimensions badge.

Constructors

new(label : String | Nil = nil, border : Symbol | Border = :rounded, border_fg : Color | Symbol | String = Color.none, text_fg : Color | Symbol | String = Color.none, bg : Color | Symbol | String = Color.none)
Source

Instance methods

bg=(bg : Color | Nil)
Source
border
Source
border=(border : Border)
Source
border_fg
Source
border_fg=(border_fg : Color | Nil)
Source
fill_char
Source
fill_char=(fill_char : Char)
Source
label
Source
label=(label : String | Nil)
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
text_fg
Source
text_fg=(text_fg : Color | Nil)
Source