class UIng::Window

Defined in:

uing/window.cr

Constructors

Instance Method Summary

Instance methods inherited from class UIng::Control

__parent__ __parent__, __set_parent__(parent) : Nil __set_parent__, delete(child : Control) delete, destroy : Nil destroy, disable : Nil disable, enable : Nil enable, enabled? : Bool enabled?, enabled_to_user? : Bool enabled_to_user?, handle handle, hide : Nil hide, parent : Control | Nil parent, show : Nil show, to_unsafe to_unsafe, toplevel? : Bool toplevel?, verify_set_parent(parent) : Nil verify_set_parent, visible? : Bool visible?

Macros inherited from module UIng::BlockConstructor

block_constructor block_constructor

Constructor Detail

def self.new(*args, &) #

[View source]
def self.new(*args, **kwargs, &) #

[View source]
def self.new(title, width, height, menubar = false, margined : Bool = false) #

[View source]
def self.new(ref_ptr : Pointer(LibUI::Window), borrowed : Bool = true) #

[View source]

Instance Method Detail

def borderless=(borderless : Bool) : Nil #

[View source]
def borderless? : Bool #

[View source]
def child=(control : UIng::Control | Nil) : Nil #

[View source]
def content_size : Tuple(Int32, Int32) #

[View source]
def delete(child : Control) #

Raises: Not supported for this container.


[View source]
def destroy #

[View source]
def focused? : Bool #

[View source]
def fullscreen=(fullscreen : Bool) : Nil #

[View source]
def fullscreen? : Bool #

[View source]
def margined=(margined : Bool) : Nil #

[View source]
def margined? : Bool #

[View source]
def on_closing(&block : -> Bool) #

[View source]
def on_content_size_changed(&block : Int32, Int32 -> _) #

[View source]
def on_focus_changed(&block : Bool -> _) #

[View source]
def on_position_changed(&block : Int32, Int32 -> _) #

[View source]
def open_file : String | Nil #

[View source]
def open_folder : String | Nil #

[View source]
def position : Tuple(Int32, Int32) #

[View source]
def resizeable=(resizeable : Bool) : Nil #

[View source]
def resizeable? : Bool #

[View source]
def save_file : String | Nil #

[View source]
def set_child(control : Control) : Nil #

alias for #child=


[View source]
def set_child(&block : -> Control) #

For DSL style


[View source]
def set_content_size(width : Int32, height : Int32) : Nil #

[View source]
def set_position(x : Int32, y : Int32) : Nil #

[View source]
def title : String | Nil #

[View source]
def title=(title : String) : Nil #

[View source]
def to_unsafe : Pointer(Void) #

[View source]