Registry / other / egui-winit

egui-winit

JSON →
library0.33.2rscratesunverified

Bindings for using the egui immediate mode GUI library with the winit windowing system.

# Cargo.toml [dependencies] egui-winit = "0.33.2"
INSTALL
IMPORT
SIG · EGUI-WINIT
E
egui-winit
otherrustv0.33.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

State
use egui_winit::State;

Creates an egui-winit State for integrating egui with winit.

use egui_winit::State; use winit::event_loop::EventLoop; fn main() { let event_loop = EventLoop::new().unwrap(); let mut state = State::new(&event_loop); println!("egui-winit state created"); }
Debug
Known issues
gotchaRequires an active winit event loop and OpenGL context to function.
fix
Ensure you have set up a winit window with an OpenGL context before using egui-winit.
affects: >=0.33.0
Upgrade
Version history
0.33.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
egui-winit — cargo add egui-winit · libregistry