class

CRT::Ncurses::Radio

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), splace : Position = Position::Right, title : String = "", choice_char : Char = 'X', def_item : Int32 = 0, 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

Available width accounts for the [X] selection box

Source
background=(attrib : Int32)
Source
choice_char
Source
choice_char=(choice_char : Int32)
Source
choice_character=(character : Char)
Source
create_list(list : Array(String), list_size : Int32, box_width : Int32) : Int32
Source
current_item=(item : Int32)
Source
destroy
Source
draw(box : Bool = @box)
Source
draw_list(box : Bool)
Source
erase
Source
fix_cursor_position
Source
focus
Source
highlight
Source
highlight=(highlight : Int32)
Source
inject(input : Int32) : Int32
Source
item
Source
item_len
Source
item_pos
Source
left_box_char
Source
left_box_char=(left_box_char : Int32)
Source
left_brace=(character : Char)
Source
object_type
Source
parent
Source
right_box_char
Source
right_box_char=(right_box_char : Int32)
Source
right_brace=(character : Char)
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
selected_item
Source
selected_item=(item : Int32)
Source
toggle_pos
Source
unfocus
Source
update_view_width(widest : Int32)
Source
widest_item
Source
widest_item_width
Source