A Go binding of microui, a tiny, portable, immediate-mode UI library written in ANSI C
- Tiny: around
1100 sloc
of ANSI C - Works within a fixed-sized memory region: no additional memory is allocated
- Built-in controls: window, scrollable panel, button, slider, textbox, label, checkbox, wordwrapped text
- Works with any rendering system that can draw rectangles and text
- Designed to allow the user to easily add custom controls
- Simple layout system
This example is using a raylib-go driver. The source code is available at:
https://github.com/gabstv/microui-go-raylib/blob/main/example/demo/main.go
A Go version of the usage docs is not ready yet. In the meantime, you can check the original usage docs at the rxi repository (and use the equivalent functions in Go).
The library expects the user to provide input and handle the resultant drawing commands, it does not do any drawing itself.
The library is designed to be lightweight, providing a foundation to which you can easily add custom controls and UI elements; pull requests adding additional features will likely not be merged. Bug reports are welcome.
This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.