easy-imgui

Crates.ioeasy-imgui
lib.rseasy-imgui
version0.18.0
created_at2024-01-26 18:49:32.848722+00
updated_at2025-09-21 21:13:03.32986+00
descriptionRust wrapper for the Dear ImGui library
homepage
repositoryhttps://github.com/rodrigorc/easy-imgui-rs
max_upload_size
id1115828
size222,820
Rodrigo Rivas Costa (rodrigorc)

documentation

README

easy-imgui-rs

build

Build full GUI applications with Rust and Dear ImGui. It currently uses version v1.92.3.

There are several crates in this repository:

See some examples at the examples directory. The simplest one is just a few lines of code:

use easy_imgui_window::{MainWindow, MainWindowWithRenderer,
    winit::event_loop::EventLoopBuilder,
    easy_imgui as imgui,
};

fn main() {
    let event_loop = EventLoopBuilder::new().build().unwrap();
    let main_window = MainWindow::new(&event_loop, "Example").unwrap();
    let mut window = MainWindowWithRenderer::new(main_window);

    let mut app = App;

    event_loop.run(move |event, w| {
        let res = window.do_event(&mut app, &event, w);
        if res.is_break() {
            w.exit();
        }
    }).unwrap();
}

struct App;

impl imgui::UiBuilder for App {
    fn do_ui(&mut self, ui: &imgui::Ui<Self>) {
        ui.show_demo_window(None);
    }
}
Commit count: 233

cargo fmt