class

TextUi::Box

Inherits TextUi::Widget / Reference / Object

Constructors

new(parent, x, y, width, height, title : String, shortcut : String = "")
Source
new(parent, x, y, title : String, shortcut : String = "")
Source
new(parent, title : String, shortcut : String = "")
Source

Instance methods

border_color
Source
border_color=(border_color : Format)
Source
border_style=(border_style : BorderStyle)
Source
focused_border_color
Source
focused_border_color=(focused_border_color : Format)
Source
inspect(io : IO)

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
render
Source
render_rounded_border_style(color)
Source
right_of(another : Box)
Source
title
Source
title=(title : String)
Source

Nested types