raygui is a single-header immediate-mode GUI module originally built for raylib. It ships many controls, theming helpers, and optional standalone use with other graphics engines.
Overview
raygui draws simple flat widgets inspired by Unity IMGUI and matches raylib’s minimal visual style. Controls include buttons, sliders, lists, and advanced widgets suited to internal tools and editors rather than polished consumer apps.
Styling covers colors, fonts, metrics, and packaged themes loadable at runtime. A 1-bit icon pack embeds hundreds of glyphs addressable from control labels or helper functions.
The library ships as one header with optional implementation macro for a single translation unit, and can compile as a shared library on major desktop toolchains. Support utilities assist authoring styles and icon sets.
raygui targets tool and editor development; several raylibtech utilities already depend on it. Recent releases return result values from all widget calls, a breaking API change.
Key features
- Immediate-mode widget model
- Over twenty built-in controls
- Runtime-loadable style themes
- Embedded 1-bit icon pack
- Single-header distribution
- raylib integration path
- Standalone mode for other engines
- Style and icon authoring tools
Use cases
- In-game debug and editor panels
- Desktop utilities built with raylib
- Prototyping internal tool UIs
- Lightweight configuration dialogs
- Visual tools for content pipelines