imgui-ext Build Status Cargo package Documentation on docs.rs

Warning: API from master is heavily subject to changes.

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

Master docs

toml [dependencies] imgui-ext = "0.1"

Features

Example

```rust // You need to import the prelude use imgui_ext::prelude::*;

[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"), label(label = "Is turbo enabled?"), )] turbo: bool, } ```

Result:

Limitations

License

[MIT]