class
UIng::Window
- UIng::Window
- UIng::Control
- Reference
- Object
Defined in:
uing/window.crConstructors
- .new(*args, &)
- .new(*args, **kwargs, &)
- .new(title, width, height, menubar = false, margined : Bool = false)
- .new(ref_ptr : Pointer(LibUI::Window), borrowed : Bool = true)
Instance Method Summary
- #borderless=(borderless : Bool) : Nil
- #borderless? : Bool
- #child=(control : UIng::Control | Nil) : Nil
- #content_size : Tuple(Int32, Int32)
-
#delete(child : Control)
Raises: Not supported for this container.
- #destroy
- #focused? : Bool
- #fullscreen=(fullscreen : Bool) : Nil
- #fullscreen? : Bool
- #margined=(margined : Bool) : Nil
- #margined? : Bool
- #on_closing(&block : -> Bool)
- #on_content_size_changed(&block : Int32, Int32 -> _)
- #on_focus_changed(&block : Bool -> _)
- #on_position_changed(&block : Int32, Int32 -> _)
- #open_file : String | Nil
- #open_folder : String | Nil
- #position : Tuple(Int32, Int32)
- #resizeable=(resizeable : Bool) : Nil
- #resizeable? : Bool
- #save_file : String | Nil
-
#set_child(control : Control) : Nil
alias for
#child=
-
#set_child(&block : -> Control)
For DSL style
- #set_content_size(width : Int32, height : Int32) : Nil
- #set_position(x : Int32, y : Int32) : Nil
- #title : String | Nil
- #title=(title : String) : Nil
- #to_unsafe : Pointer(Void)