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

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.

  1. Introduction - to Tecgraf Tutorial

  2. Hello World

  3. Simple Notepad