3 releases (breaking)

0.3.0 Jun 5, 2018
0.2.0 Feb 15, 2018
0.1.0 Jan 30, 2018

#63 in GUI

Download history 7/week @ 2018-05-06 7/week @ 2018-05-13 13/week @ 2018-05-20 26/week @ 2018-05-27 25/week @ 2018-06-03 67/week @ 2018-06-10 56/week @ 2018-06-17 47/week @ 2018-06-24 70/week @ 2018-07-01 23/week @ 2018-07-08 28/week @ 2018-07-15 34/week @ 2018-07-22 22/week @ 2018-07-29

61 downloads per month


lib.rs:

iui, the improved user interface crate, provides Rust bindings to libui, a wrapper library for native(ish) GUI libraries:

  • Win32API on Windows
  • Cocoa on Mac OS X
  • GTK+ on Linux and elsewhere

This library exposes a Rusty procedural interface to the "Least Common Denominator" of GUI widgets. They are all available on all supported platforms, though some functionality may not perform precisely the same on all platforms. These inconsistencies are marked.

To use the library, add the following to your Cargo.toml:

"iui" = "0.3"

Most of the functionality of the crate is exposed via the UI RAII guard, which handles all initialization and cleanup for the underlying library.

After initialization, all the functionality used for creating actual UIs is in the controls module.

Fine-grained control of the event loop is avilable via the EventLoop struct. Be aware the Cocoa (GUI toolkit on Mac OS) requires that the first thread spawned controls the UI, so do not spin off your UI interactions into an alternative thread. You're likely to have problems on Mac OS.

For code examples, see the examples directory.

MIT license

Dependencies

Reverse deps