class

Opal::UI::Header

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

Standardized application top header inspired by Python Textual's Header. Displays app title, optional subtitle/screen mode badge, and a real-time clock.

Constructors

new(title : String = "Opal Application", subtitle : String | Nil = nil, icon : String | Nil = "[*]", show_clock : Bool = true)
Source

Instance methods

bg

Styling

Source
bg=(bg : Color | Nil)

Styling

Source
clock_fg
Source
clock_fg=(clock_fg : Color | Nil)
Source
icon
Source
icon=(icon : 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
show_clock=(show_clock : Bool)
Source
show_clock?
Source
subtitle
Source
subtitle=(subtitle : String | Nil)
Source
subtitle_fg
Source
subtitle_fg=(subtitle_fg : Color | Nil)
Source
title
Source
title=(title : String)
Source
title_fg
Source
title_fg=(title_fg : Color | Nil)
Source