iup-ffi is a library providing an FFI binding for Ruby to the IUP GUI library. The library provides both a low-level binding to the C library calls, and a high-level wrapping of most widgets to give a more natural Ruby syntax.
Getting Started
-
install iup-ffi
-
first example - to enter and run
-
overview of library - the underlying structure of the Iup library and this wrapper.
The source code contains a large set of examples, converted from the original C code into Ruby: these, as well as examples for the tutorial below, can be downloaded from the latest tagged version.
For reference, the API documentation is provided.
Tutorial
Tecgraf’s IUP website contains a Guide and Tutorial, using C and Lua. The pages here reproduce some of this information, but using Ruby.
-
Introduction - to Tecgraf Tutorial