|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Download from v0.14.4. Check the archive against SHA256SUMS, then unpack it.
| Target | Library archive |
|---|---|
| Linux x86-64 | native; native-san for ASan + UBSan |
| Windows x86-64 | windows-x86_64 |
| macOS arm64 | macos-arm64 |
| WebAssembly | wasm; wasm-eh for WebAssembly exception handling |
| Package item | Use |
|---|---|
| include/ | Add to the include path. Use <rmgui/rmgui.h> or individual headers. |
| librmgui.a libckdl.a -lm | Link after your objects, in that order. |
| rmgui.target | Use compile_flags and consumer_link_flags for this target. For sokol, supply your own implementation and match the listed commit and shader variant. |
| ABI version | Use matching headers and archive. Check rmgui_abi_version() == RMGUI_ABI_VERSION at startup. |
From the repository root, point package to the unpacked Linux archive:
The full sample is docs/examples/meters.c in the source checkout.
| Who owns it | Responsibilities |
|---|---|
| Host | Pixels, windows, fonts and assets, input routing and presentation |
| RMGui | Measure and arrange the UI, update element state, and paint into host memory |
| ImageMagick | Optional conversion from raw example pixels to PNG |
Next: four illustrated C examples or retained layout and damage.
| Package | Open |
|---|---|
| showcase-linux-x86_64 | rmgui-showcase-window (needs libX11) |
| showcase-windows-x86_64 | rmgui-showcase-window.exe |
| showcase-macos-arm64 | rmgui-showcase-window.app |
| showcase-web | Serve the unpacked files together over HTTP, then open index.html. |
See the showcase guide for pages, input and CLI capture.
Extract showcase-src beside the matching native package. From the showcase-source directory:
This builds the headless CLI against installed headers and archives. CC, CFLAGS and LDFLAGS select a compatible profile. Build other hosts.