class

CRT::Ncurses::Dialog

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

MIN_DIALOG_WIDTH = 10

Constructors

new(screen : CRT::Ncurses::Screen, *, x : Int32, y : Int32, mesg : Array(String), buttons : Array(String), highlight : Int32 = LibNCurses::Attribute::Reverse.value.to_i32, separator : Bool = true, 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
button_count
Source
current_button
Source
destroy
Source
draw(box : Bool = @box)
Source
draw_buttons
Source
erase
Source
focus
Source
highlight
Source
highlight=(highlight : Int32)
Source
inject(input : Int32) : Int32
Source
message_rows
Source
object_type
Source
parent
Source
separator
Source
separator=(separator : Bool)
Source
unfocus
Source