The smallest header-only GUI library(4 KLOC) for all platforms
Opening the entry
Opening the entry
egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
egui is an immediate mode GUI library written in pure Rust that runs on both web (via WebAssembly) and native platforms. It integrates easily into game engines and uses eframe as its official framework for building cross-platform applications. The library emphasizes ease of use, portability, and safety with no unsafe code.
git clone https://github.com/emilk/egui.git
ui.heading("My egui Application");
ui.horizontal(|ui| {
ui.label("Your name: ");
ui.text_edit_singleline(&mut name);
});
ui.add(egui::Slider::new(&mut age, 0..=120).text("age"));
if ui.button("Increment").clicked() {
age += 1;
}emilk/egui is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.