1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! `libui` is a **simple**, **small** and **easy to distribute** GUI library. It provides a native UI for your platform by utilising your systems API instead of implementing yet another mismatched looking renderer.
//! Technically, `libui` is a "rustification" wrapper over the C library [`libui-ng`](https://github.com/libui-ng/libui-ng), which actually abstracts the native GUI framework. That is the Win32 API on Windows, Cocoa on Mac OS X, and GTK3 for Linux and others.
//!
//! Add `libui` to your dependency list with:
//!
//! ```toml
//! libui = { git = "https://github.com/libui-rs/libui" }
//! ```
//!
//! Next we suggest to have a look at the [example applications](https://github.com/libui-rs/libui/tree/development/libui/examples) or start with the minimal example printed here:
//!
//! ```no_run
//! #![cfg_attr(not(test), windows_subsystem = "windows")]
//! #![cfg_attr(test, windows_subsystem = "console")]
//!
//! extern crate libui;
//! use libui::controls::*;
//! use libui::prelude::*;
//!
//! fn main() {
//! let ui = UI::init()
//! .expect("Couldn't initialize UI library");
//!
//! let mut win = Window::new(&ui, "Example", 300, 200,
//! WindowType::NoMenubar);
//! let layout = VerticalBox::new();
//!
//! // add controls to your layout here
//!
//! win.set_child(layout);
//! win.show();
//! ui.main();
//! }
//! ```
//!
extern crate bitflags;
extern crate libc;
extern crate libui_ffi;
pub use UIError;
pub use ;
/// Common imports are packaged into this module. It's meant to be glob-imported: `use libui::prelude::*`.