Crate iui [−] [src]
iui
, the i
mproved u
ser i
nterface crate, provides Rust bindings to libui
, a wrapper library for native(ish) GUI libraries
- Win32API on Windows, Cocoa on Mac OS X, and 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.
To use this library, import it in your Cargo.toml
:
iui = "0.1.0"
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.
Modules
controls |
Available user interface controls and related functionality. |
prelude |
Common imports are packaged into this module. It's meant to be glob-imported: |
Structs
EventLoop |
Provides fine-grained control over the user interface event loop, exposing the |
UI |
A handle to user interface functionality. |
Enums
UIError |
The error type returned by functions in this crate which might fail. |