class BearLibFrontend
- BearLibFrontend
- AbstractFrontend
- Reference
- Object
Included Modules
Defined in:
wif/frontend.crConstant Summary
-
CORNERS =
{topleft: "┌", topright: "┐", bottomleft: "└", bottomright: "┘"}
-
SIDES =
{horiz: "─", vert: "│"}
Constructors
Instance Method Summary
- #close
- #fill(x1, y1, width, height)
- #frame(x1, y1, width, height, fill : Bool = false)
- #process_inputs : ProcessingResult
- #realtime : Bool
- #realtime=(realtime : Bool)
- #set_main_window(cls)
- #setchar(x, y, char, color, bgcolor)
- #setcolor(color : Color, bgcolor : Color)
- #update
- #write(x, y, string : String)
- #write_centered(x, y, w, h, string : String)
Instance methods inherited from module TerminalHelper
check(code)
check,
is_keyboard(code : Terminal::TK)
is_keyboard,
is_mouse(code : Terminal::TK)
is_mouse,
is_release(code : Terminal::TK)
is_release,
print(x, y, string)
print
Instance methods inherited from class AbstractFrontend
close
close,
frame(x1, y1, width, height, fill : Bool = false)
frame,
main_window : Window | Nil
main_window,
main_window=(main_window : Window | Nil)
main_window=,
main_window? : Window | Nil | Nil
main_window?,
process_inputs : ProcessingResult
process_inputs,
quitting : Bool
quitting,
quitting=(quitting : Bool)
quitting=,
setchar(x, y, char, color, bgcolor)
setchar,
setcolor(color : Color, bgcolor : Color)setcolor(pair : ColorPair) setcolor, update update, write(x, y, string : String) write, write_centered(x, y, w, h, string : String) write_centered