Crates.io | aflak_imgui |
lib.rs | aflak_imgui |
version | 0.18.1 |
source | src |
created_at | 2018-08-11 01:02:51.90916 |
updated_at | 2018-08-11 01:02:51.90916 |
description | High-level Rust bindings to dear imgui |
homepage | https://github.com/malikolivier/imgui-rs |
repository | https://github.com/malikolivier/imgui-rs |
max_upload_size | |
id | 78839 |
size | 181,557 |
Still fairly experimental!
Minimum Rust version: 1.20
ui.window(im_str!("Hello world"))
.size((300.0, 100.0), ImGuiCond::FirstUseEver)
.build(|| {
ui.text(im_str!("Hello world!"));
ui.text(im_str!("こんにちは世界!"));
ui.text(im_str!("This...is...imgui-rs!"));
ui.separator();
let mouse_pos = ui.imgui().mouse_pos();
ui.text(im_str!("Mouse Position: ({:.1},{:.1})", mouse_pos.0, mouse_pos.1));
})
im_str!
needs to be used most of the time. For more
information and justification for this design, please see issue #7Examples are under the imgui-examples directory.
git clone https://github.com/Gekkio/imgui-rs
cd imgui-rs
git submodule update --init --recursive
cd imgui-examples
cargo test
cargo run --example hello_world
cargo run --example test_window
cargo run --example test_window_impl
Note to Windows users: You will need to use the MSVC ABI version of the Rust compiler along with its associated dependencies to build this libary and run the examples.
Change or add something
Run rustfmt to guarantee code style conformance
cargo install rustfmt
cargo fmt -- --write-mode=overwrite
Open a pull request in Github
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.