Label
Label displays non-editable text.
Appearance
Runnable example
require "uing"
UIng.init
window = UIng::Window.new("Label Example", 300, 100, margined: true)
window.on_closing do
UIng.quit
true
end
label = UIng::Label.new("This is a label.")
label.font_size = 24
window.child = label
window.show
UIng.main
UIng.uninit
Usage notes
- Update the caption with
text=. - Set
font_sizefor a custom size and callreset_font_sizeto restore the native default.


