class

CRT::Ncurses::ItemList

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

Constructors

new(screen : CRT::Ncurses::Screen, *, x : Int32, y : Int32, items : Array(String), title : String = "", label : String = "", default_item : Int32 = 0, 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
create_field_win(ypos : Int32, xpos : Int32) : Bool
Source
create_list(items : Array(String), count : Int32) : Bool
Source
current_item
Source
current_item=(current_item : Int32)
Source
default_item
Source
default_item=(default_item : Int32)
Source
destroy
Source
draw(box : Bool = @box)
Source
draw_field(highlight : Bool)
Source
erase
Source
field_width
Source
focus
Source
inject(input : Int32) : Int32
Source
item
Source
item_len
Source
item_pos
Source
list_size
Source
maximum_field_width
Source
object_type
Source
parent
Source
unfocus
Source
update_field_width
Source