TextUi::Box
Inherits TextUi::Widget / Reference / Object
Constructors
new(parent, x, y, width, height, title : String, shortcut : String = "")
Sourcenew(parent, x, y, title : String, shortcut : String = "")
Sourcenew(parent, title : String, shortcut : String = "")
SourceInstance methods
border_color
Sourceborder_color=(border_color : Format)
Sourceborder_style=(border_style : BorderStyle)
Sourcefocused_border_color
Sourcefocused_border_color=(focused_border_color : Format)
Sourceinspect(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>
render
Sourcerender_rounded_border_style(color)
Sourceright_of(another : Box)
Sourcetitle
Sourcetitle=(title : String)
Source