class Termbox::Container
- Termbox::Container
- Termbox::Element
- Reference
- Object
Overview
A container is a "sandbox" for content
Direct Known Subclasses
Defined in:
termbox/container.crConstructors
-
.new(pivot : Position, width : Int32, height : Int32)
Accepts a pivot (top left position), width, and height
Instance Method Summary
-
#<<(el : Element)
Alias put (append operator)
- #elements : Array(Termbox::Element)
- #height : Int32
- #height=(height : Int32)
- #pivot : Termbox::Position
- #pivot=(pivot : Termbox::Position)
- #put(el : Element)
-
#render : Array(Cell)
Render as list of cells
- #width : Int32
- #width=(width : Int32)
Instance methods inherited from class Termbox::Element
render : Array(Cell)
render
Constructor Detail
Accepts a pivot (top left position), width, and height