class BearLibFrontend

Included Modules

Defined in:

wif/frontend.cr

Constant Summary

CORNERS = {topleft: "┌", topright: "┐", bottomleft: "└", bottomright: "┘"}
SIDES = {horiz: "─", vert: "│"}

Constructors

Instance Method Summary

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

Constructor methods inherited from class AbstractFrontend

new new

Constructor Detail

def self.new(realtime : Bool, mainformclass) #

[View source]

Instance Method Detail

def close #

[View source]
def fill(x1, y1, width, height) #

[View source]
def frame(x1, y1, width, height, fill : Bool = false) #

[View source]
def process_inputs : ProcessingResult #

[View source]
def realtime : Bool #

[View source]
def realtime=(realtime : Bool) #

[View source]
def set_main_window(cls) #

[View source]
def setchar(x, y, char, color, bgcolor) #

[View source]
def setcolor(color : Color, bgcolor : Color) #

[View source]
def update #

[View source]
def write(x, y, string : String) #

[View source]
def write_centered(x, y, w, h, string : String) #

[View source]