class Window

Direct Known Subclasses

Defined in:

wif/window.cr

Constructors

Macro Summary

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]

Macro Detail

macro controls(**args) #

[View source]

Instance Method Detail

def after_init #

[View source]
def controls : Array(Control) #

[View source]
def draw #

[View source]
def focused_child : FocusableControl | Nil #

[View source]
def focused_child=(focused_child : FocusableControl | Nil) #

[View source]
def init_controls #

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

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

[View source]