class CryTUI::Buffer

Defined in:

crytui/buffer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(area : Rect, fill = Cell.new) #

[View source]

Instance Method Detail

def [](x : Int, y : Int) : Cell #

[View source]
def []?(x : Int, y : Int) : Cell | Nil #

[View source]
def area : Rect #

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

[View source]
def copy : Buffer #

[View source]
def diff(other : Buffer) : Array(Tuple(Int32, Int32, Cell)) #

[View source]
def lines : Array(String) #

[View source]
def reset #

[View source]
def set_string(x : Int, y : Int, text : String, style = Style.new, max_width : Int | Nil = nil) : Int32 #

[View source]
def set_style(area : Rect, style : Style) #

[View source]