First Example
As a first example, we can display a simple dialog:
require "iup-ffi"
Iup.mainloop do
label = Iup::Label.new("Hello World!")
Iup::Dialog.new(label) do |d|
d.title = " ... from IUP"
d.size = "150x50"
end.show
end
This example can be found as "examples/hello-from-iup.rb" in the latest tagged version.