class ListBox

Defined in:

wif/controls.cr

Constructors

Instance Method Summary

Instance methods inherited from class FocusableControl

need_frame need_frame, on_key : OnKey | Nil on_key, process_key(key : Key) : Bool process_key

Instance methods inherited from class Control

clickable clickable, color : ColorPair color, color=(color : ColorPair) color=, draw draw, frontend frontend, have_focus : Bool have_focus, have_focus=(have_focus : Bool) have_focus=, height : Int32 height, height=(height : Int32) height=, includes?(x, y) includes?, name : String | Symbol name, need_frame : Bool need_frame, need_frame=(need_frame : Bool) need_frame=, owner : Window | Nil owner, process_mouse(event : MouseEvent, x : Int32, y : Int32) process_mouse, visible : Bool visible, visible=(visible : Bool) visible=, width : Int32 width, width=(width : Int32) width=, x : Int32 x, x2 x2, x=(x : Int32) x=, y : Int32 y, y2 y2, y=(y : Int32) y=

Constructor methods inherited from class Control

new(owner : Window | Nil, name : String | Symbol, x : Int32, y : Int32, width : Int32, height : Int32) new

Constructor Detail

def self.new(owner, name, x, y, width, height) #

[View source]

Instance Method Detail

def clicked #

[View source]
def draw #

[View source]
def items : Array(String) #

[View source]
def on_click : OnClickItem | Nil #

[View source]
def on_click=(on_click : OnClickItem | Nil) #

[View source]
def on_select : OnSelectItem | Nil #

[View source]
def on_select=(on_select : OnSelectItem | Nil) #

[View source]
def position : Int32 #

[View source]
def position=(value) #

[View source]
def process_key(key : Key) #

[View source]
def process_mouse(event : MouseEvent, x : Int32, y : Int32) #

[View source]
def scroll_shift #

[View source]
def scrollable : Bool #

[View source]
def scrollable=(scrollable : Bool) #

[View source]
def scrollpos : Int32 #

[View source]
def scrollpos=(scrollpos : Int32) #

[View source]
def sel_color : ColorPair #

[View source]
def sel_color=(sel_color : ColorPair) #

[View source]