class

CRT::Ncurses::Viewer

Inherits CRT::Ncurses::CRTObjs < CRT::Ncurses::Formattable < CRT::Ncurses::CommonControls < CRT::Ncurses::WindowHooks < CRT::Ncurses::WindowInput < CRT::Ncurses::HasTitle < CRT::Ncurses::HasScreen < CRT::Ncurses::ExitConditions < CRT::Ncurses::Bindings < CRT::Ncurses::Focusable < CRT::Ncurses::Borders < CRT::Ncurses::Movement < CRT::Ncurses::Converters < CRT::Ncurses::Justifications < CRT::Ncurses::Alignments < Reference < Object

Constants

DOWN = 0
UP = 1

Constructors

new(screen : CRT::Ncurses::Screen, *, x : Int32, y : Int32, height : Int32, width : Int32, buttons : Array(String) = ["OK"], button_highlight : Int32 = LibNCurses::Attribute::Reverse.value.to_i32, box : Bool | CRT::Ncurses::Framing | Nil = nil, shadow : Bool = false)
Source

Instance methods

activate(actions : Array(Int32) | Nil = nil) : Int32
Source
background=(attrib : Int32)
Source
destroy
Source
draw(box : Bool = @box)
Source
draw_buttons
Source
draw_info
Source
erase
Source
focus
Source
highlight=(button_highlight : Int32)
Source
info_line=(show : Bool)
Source
inject(input : Int32) : Int32
Source
object_type
Source
set_info(list : Array(String), fmt : Bool = false) : Int32
Source
unfocus
Source
viewer_title=(title : String)
Source