class Termbox::Window

Defined in:

termbox/window.cr

Constructors

Instance Method Summary

Instance methods inherited from class Termbox::Container

<<(el : Element) <<, elements : Array(Termbox::Element) elements, height : Int32 height, height=(height : Int32) height=, pivot : Termbox::Position pivot, pivot=(pivot : Termbox::Position) pivot=, put(el : Element) put, render : Array(Cell) render, width : Int32 width, width=(width : Int32) width=

Constructor methods inherited from class Termbox::Container

new(pivot : Position, width : Int32, height : Int32) new

Instance methods inherited from class Termbox::Element

render : Array(Cell) render

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def <<(el : Element) #
Description copied from class Termbox::Container

Alias put (append operator)


[View source]
def clear : Void #

Clear terminal window


[View source]
def clear_cell(position : Position) : Void #

Clear a single cell


[View source]
def cursor(position : Position) : Void #

Move cursor position


[View source]
def finalize #

If the window [singleton] is GC'd, then shut down Termbox


[View source]
def height : Int32 #

Get height of termbox


[View source]
def hide_cursor : Void #

[View source]
def peek(timeout : Int32) #

[View source]
def poll #

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

[View source]
def put_raw(position : Position, char : Char, foreground, background) : Void #

Put a decomposed cell, bypassing @elements store


[View source]
def put_raw(position : Position, char : Char) #

Put a decomposed cell, bypassing @elements store, using default colors


[View source]
def put_raw(cell : Cell) : Void #

Put a cell, bypassing @elements store


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

Render all children (recursively) as cells, give them to termbox, present them


[View source]
def render_raw : Void #

[View source]
def set_input_mode(mode : Int32) : Int32 #

Set input mode


[View source]
def set_output_mode(mode : Int32) : Int32 #

Set output mode


[View source]
def set_primary_colors(foreground : Int32, background : Int32) : Void #

Set primary colors


[View source]
def shutdown #

[View source]
def width : Int32 #

Get width of termbox


[View source]
def write_string(pivot : Position, string : String, foreground : Int32, background : Int32) #

Write a string horizontal starting at pivot


[View source]
def write_string(pivot : Position, string : String) #

Write a string horizontal starting at pivot


[View source]