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)
Instance Method Summary
- #borderless=(borderless : Bool) : Nil
- #borderless? : Bool
- #child : Control | Nil
- #child(&block : -> Control)
- #child=(control : Control) : Nil
- #child=(control : Nil) : Nil
-
#clear_on_closing : Nil
Clears the callback; equivalent to
#on_closing(nil). -
#clear_on_content_size_changed : Nil
Clears the callback; equivalent to
#on_content_size_changed(nil). -
#clear_on_focus_changed : Nil
Clears the callback; equivalent to
#on_focus_changed(nil). -
#clear_on_position_changed : Nil
Clears the callback; equivalent to
#on_position_changed(nil). - #content_size : Tuple(Int32, Int32)
- #delete(child : Control)
- #destroy : Nil
- #focused? : Bool
- #fullscreen=(fullscreen : Bool) : Nil
- #fullscreen? : Bool
- #margined=(margined : Bool) : Nil
- #margined? : Bool
- #msg_box(title : String, description : String) : Nil
- #msg_box_error(title : String, description : String) : Nil
- #on_closing(&block : -> Bool)
- #on_closing(callback : Nil) : Nil
- #on_content_size_changed(&block : Int32, Int32 -> Nil)
- #on_content_size_changed(callback : Nil) : Nil
- #on_focus_changed(&block : Bool -> Nil)
- #on_focus_changed(callback : Nil) : Nil
- #on_position_changed(&block : Int32, Int32 -> Nil)
- #on_position_changed(callback : Nil) : Nil
- #open_file : String | Nil
-
#open_files : Array(String) | Nil
Returns selected file paths, or nil when canceled or the dialog fails.
- #open_folder : String | Nil
-
#open_folders : Array(String) | Nil
Returns selected folder paths, or nil when canceled or the dialog fails.
- #position : Tuple(Int32, Int32)
- #resizable=(resizable : Bool) : Nil
-
#resizable? : Bool
libui spells this "resizeable"; provide the standard spelling as an alias.
- #resizeable=(resizeable : Bool) : Nil
- #resizeable? : Bool
- #save_file : String | Nil
-
#set_child(control : Control) : Nil
Aliases for
#child=and `child { ... - #set_child(&block : -> Control)
- #set_content_size(width : Int32, height : Int32) : Nil
- #set_position(x : Int32, y : Int32) : Nil
- #title : String | Nil
- #title=(title : String) : Nil
- #to_unsafe
- #toolbar : Toolbar | Nil
- #toolbar=(toolbar : Toolbar) : Nil
- #toolbar=(toolbar : Nil) : Nil
Instance methods inherited from class UIng::Control
delete(child : Control)
delete,
destroy : Nil
destroy,
detach : self
detach,
disable : Nil
disable,
enable : Nil
enable,
enabled? : Bool
enabled?,
enabled_to_user? : Bool
enabled_to_user?,
handle : Pointer(Void)
handle,
hide : Nil
hide,
parent : Control | Nil
parent,
released? : Bool
released?,
set_minimum_size(width : Int32, height : Int32) : Nil
set_minimum_size,
show : Nil
show,
to_unsafe
to_unsafe,
tooltip=(tooltip : String) : Niltooltip=(tooltip : Nil) : Nil tooltip=, toplevel? : Bool toplevel?, visible? : Bool visible?
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Instance Method Detail
def clear_on_content_size_changed : Nil
#
Clears the callback; equivalent to #on_content_size_changed(nil).
def open_files : Array(String) | Nil
#
Returns selected file paths, or nil when canceled or the dialog fails.
def open_folders : Array(String) | Nil
#
Returns selected folder paths, or nil when canceled or the dialog fails.