imgui-ext

Build Status Cargo package docs.rs docs Master docs

A crate to quickly build [imgui] UIs using annotations and a custom Derive.

Features

Example

```rust use imgui_ext::ImGuiExt;

[derive(ImGuiExt)]

struct Example { #[imgui(slider(min = 0.0, max = 4.0))] x: f32, #[imgui(input(step = 2))] y: i32, #[imgui(drag(label = "Drag 2D"))] drag_2d: [f32; 2], #[imgui( checkbox(label = "Turbo mode"), display(label = "Is turbo enabled?"), )] turbo: bool, } ```

Result:

See full example

bash cargo run --package example

Limitations

License

MIT