class Termbox::Cell

Overview

A cell is a coordinate with content and foreground/background colors

Defined in:

termbox/cell.cr

Constructors

Instance Method Summary

Instance methods inherited from class Termbox::Element

render : Array(Cell) render

Constructor Detail

def self.new(char : Char, position : Position, foreground : Int32, background : Int32) #

Make a cell with a specified foreground and background


[View source]
def self.new(char : Char, position : Position) #

Make a cell with default colors


[View source]

Instance Method Detail

def background : Int32 #

[View source]
def char : Char #

[View source]
def foreground : Int32 #

[View source]
def new_transform(x : Int32, y : Int32) #

Make a new cell with a position transformed by x and y


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

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

Render as list of cells


[View source]