class Termbox::Window
- Termbox::Window
- Termbox::Container
- Termbox::Element
- Reference
- Object
Defined in:
termbox/window.crConstructors
Instance Method Summary
-
#<<(el : Element)
Alias put (append operator)
-
#clear : Void
Clear terminal window
-
#clear_cell(position : Position) : Void
Clear a single cell
-
#cursor(position : Position) : Void
Move cursor position
-
#finalize
If the window [singleton] is GC'd, then shut down Termbox
-
#height : Int32
Get height of termbox
- #hide_cursor : Void
- #peek(timeout : Int32)
- #poll
- #put(el : Element)
-
#put_raw(position : Position, char : Char, foreground, background) : Void
Put a decomposed cell, bypassing @elements store
-
#put_raw(position : Position, char : Char)
Put a decomposed cell, bypassing @elements store, using default colors
-
#put_raw(cell : Cell) : Void
Put a cell, bypassing @elements store
-
#render : Array(Cell)
Render all children (recursively) as cells, give them to termbox, present them
- #render_raw : Void
-
#set_input_mode(mode : Int32) : Int32
Set input mode
-
#set_output_mode(mode : Int32) : Int32
Set output mode
-
#set_primary_colors(foreground : Int32, background : Int32) : Void
Set primary colors
- #shutdown
-
#width : Int32
Get width of termbox
-
#write_string(pivot : Position, string : String, foreground : Int32, background : Int32)
Write a string horizontal starting at pivot
-
#write_string(pivot : Position, string : String)
Write a string horizontal starting at pivot
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
Instance Method Detail
Alias put (append operator)
Put a decomposed cell, bypassing @elements store
Put a decomposed cell, bypassing @elements store, using default colors
Render all children (recursively) as cells, give them to termbox, present them
Write a string horizontal starting at pivot
Write a string horizontal starting at pivot