module

Ctop::TUI::Widgets::Text

Class methods

draw(tui : Termisu, x : Int32, y : Int32, text : String, fg : Termisu::Color = Termisu::Color.white, attr : Termisu::Attribute = Termisu::Attribute::None, bg : Termisu::Color = Termisu::Color.default) : Int32

Draw a string at position (x, y). Returns x + length for chaining.

Source
draw_right(tui : Termisu, max_x : Int32, y : Int32, text : String, fg : Termisu::Color = Termisu::Color.white, attr : Termisu::Attribute = Termisu::Attribute::None) : Int32

Draw a right-aligned string ending at max_x on row y.

Source