Skip to main content

w_gui/
lib.rs

1//! wgui — a lightweight immediate-mode debug GUI served over localhost.
2//! Visual theme heavily inspired by https://www.youtube.com/@PezzzasWork
3//! # Example
4//! ```no_run
5//! let mut ctx = w_gui::Context::new();
6//! let mut color = [1.0f32, 0.0, 0.5];
7//! let mut speed = 5.0f32;
8//!
9//! loop {
10//!     let mut win = ctx.window("Utils");
11//!     win.color_picker("My Color", &mut color);
12//!     win.slider("Speed", &mut speed, 0.0..=10.0);
13//!     drop(win);
14//!     ctx.end_frame();
15//!     // ... your game/engine frame ...
16//! }
17//! ```
18
19mod context;
20mod element;
21mod protocol;
22mod server;
23mod window;
24
25pub use context::{Context, ContextOptions};
26pub use element::AccentColor;
27pub use window::{Grid, Horizontal, Response, Window};