class

CRT::Ncurses::Selection

Inherits CRT::Ncurses::Scroller < 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, height : Int32, width : Int32, list : Array(String), choices : Array(String), splace : Position = Position::Right, title : String = "", 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
available_width
Source
background=(attrib : Int32)
Source
choice_count
Source
choices
Source
choices=(choices : Array(Int32))
Source
create_list(list : Array(String), list_size : Int32) : Int32
Source
destroy
Source
draw(box : Bool = @box)
Source
draw_list(box : Bool)
Source
erase
Source
fix_cursor_position
Source
focus
Source
get_choice(index : Int32) : Int32
Source
get_mode(index : Int32) : Int32
Source
highlight
Source
highlight=(highlight : Int32)
Source
inject(input : Int32) : Int32
Source
item
Source
item_len
Source
item_pos
Source
mode
Source
mode=(mode : Array(Int32))
Source
modes
Source
modes=(modes : Array(Int32))
Source
object_type
Source
parent
Source
screenpos(n : Int32, scrollbar_adj : Int32) : Int32
Source
scrollbar
Source
scrollbar=(scrollbar : Bool)
Source
scrollbar_placement
Source
scrollbar_placement=(scrollbar_placement : Position)
Source
scrollbar_win
Source
selections
Source
set_choice(index : Int32, choice : Int32)
Source
set_mode(index : Int32, mode : Int32)
Source
toggle_pos
Source
unfocus
Source
update_view_width(widest : Int32)
Source