egui is a portable immediate-mode GUI library for Rust that runs on native platforms, WebAssembly, and inside game engines. eframe is the official app framework for web and desktop targets.
Overview
egui draws textured triangles each frame in immediate mode, so UI code runs every refresh without retained widget callbacks. It targets simple, responsive interfaces in Rust for tools, demos, and games, and can embed into an existing engine through a small integration layer.
Widgets include labels, buttons, checkboxes, sliders, text fields, color pickers, layouts, scroll regions, windows, and tooltips. Styling and fonts are adjustable through the context API. Optional AccessKit support hooks into native accessibility on Windows and macOS in eframe.
eframe compiles the same application to web and to Linux, macOS, Windows, and Android using winit with glow or wgpu backends. Integrations also exist for third-party engines; eguiextras helps load images. The library stays platform-agnostic at its core with minimal default dependencies.
Key features
- Immediate-mode widget API
- WebAssembly and native targets
- eframe cross-platform apps
- Layout columns and scrolling
- Custom fonts and themes
- Optional AccessKit accessibility
- Game engine integrations
- Anti-aliased vector rendering
Use cases
- Rust desktop utilities and tools
- In-game debug and editor UIs
- Web demos via Wasm
- Simple internal admin panels