class Termbox::Container

Overview

A container is a "sandbox" for content

Direct Known Subclasses

Defined in:

termbox/container.cr

Constructors

Instance Method Summary

Instance methods inherited from class Termbox::Element

render : Array(Cell) render

Constructor Detail

def self.new(pivot : Position, width : Int32, height : Int32) #

Accepts a pivot (top left position), width, and height


[View source]

Instance Method Detail

def <<(el : Element) #

Alias put (append operator)


[View source]
def elements : Array(Termbox::Element) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def pivot : Termbox::Position #

[View source]
def pivot=(pivot : Termbox::Position) #

[View source]
def put(el : Element) #

[View source]
def render : Array(Cell) #

Render as list of cells


[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]