#imgui #ui #graphics #gui-applications #gui-framework

sys easy-imgui-sys

Low level bindings for the Dear ImGui C++ library

21 releases (12 breaking)

new 0.13.0 Jan 15, 2025
0.12.0 Dec 12, 2024
0.11.0 Nov 8, 2024
0.6.1 Jul 10, 2024
0.2.4 Mar 22, 2024

#1353 in GUI

Download history 89/week @ 2024-09-25 176/week @ 2024-10-02 67/week @ 2024-10-09 19/week @ 2024-10-16 154/week @ 2024-10-23 55/week @ 2024-10-30 140/week @ 2024-11-06 15/week @ 2024-11-13 16/week @ 2024-11-20 4/week @ 2024-11-27 40/week @ 2024-12-04 161/week @ 2024-12-11 45/week @ 2024-12-18 125/week @ 2024-12-25 34/week @ 2025-01-01 208/week @ 2025-01-08

419 downloads per month
Used in 4 crates (3 directly)

MIT license

9MB
120K SLoC

C++ 107K SLoC // 0.2% comments Visual Studio Project 7.5K SLoC Objective-C++ 3.5K SLoC // 0.2% comments C 732 SLoC // 0.3% comments Batch 444 SLoC Visual Studio Solution 402 SLoC Rust 169 SLoC // 0.1% comments GLSL 130 SLoC Kotlin 60 SLoC // 0.1% comments Shell 4 SLoC // 0.7% comments GDB Script 2 SLoC // 0.9% comments

Contains (static library, 295KB) glfw3.lib, (static library, 295KB) glfw3.lib, (static library, 190KB) glfw3.lib, (static library, 190KB) glfw3.lib

easy-imgui-rs

build

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

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);
    }
}

Dependencies