Expand description
wgui — a lightweight immediate-mode debug GUI served over localhost. Visual theme heavily inspired by https://www.youtube.com/@PezzzasWork
§Example
let mut ctx = w_gui::Context::new();
let mut color = [1.0f32, 0.0, 0.5];
let mut speed = 5.0f32;
loop {
let mut win = ctx.window("Utils");
win.color_picker("My Color", &mut color);
win.slider("Speed", &mut speed, 0.0..=10.0);
drop(win);
ctx.end_frame();
// ... your game/engine frame ...
}Structs§
- Context
- Context
Options - Options for creating a wgui
Context. - Grid
- A grid container for arranging elements in columns.
- Window
- A named window containing UI elements. Created via
Context::window().
Enums§
- Accent
Color - Accent colors available for UI elements