module

UIng

Constants

SOURCE = "https://github.com/kojix2/uing"
VERSION = {{ (`shards version /tmp/tmp.GDBpIG/src/src/uing`).chomp.stringify }}

Class methods

free_init_error(err) : Nil
Source
free_text(text) : Nil
Source
handle_callback_error(ex : Exception, ctx : String = "callback")

Handle callback errors by printing the error message and backtrace

Source
init(init_options : Pointer(LibUI::InitOptions)) : Nil
Source
init
Source
init
Source
main
Source
main_step(wait) : Bool
Source
main_steps
Source
msg_box(parent, title, description) : Nil

DEPRECATED Use .msg_box on Window instead

Source
msg_box(title : String, description : String) : Nil

Passing NULL is technically valid and handled by all platforms, but it's considered better practice to provide a parent window

Source
msg_box_error(parent, title, description) : Nil

DEPRECATED Use .msg_box_error on Window instead

Source
msg_box_error(title : String, description : String) : Nil

Passing NULL is technically valid and handled by all platforms, but it's considered better practice to provide a parent window

Source
on_should_quit
Source
queue_main
Source
quit
Source
string_from_pointer(str_ptr) : String | Nil

Convert string pointer to Crystal string and free the pointer

Source
timer(sender, &callback : -> LibC::Int) : Nil
Source
to_control(control : Control)

Convert control to Pointer(LibUI::Control)

Source
to_control(control)
Source
uninit
Source

Nested types