microui-d 0.0.16
A tiny immediate-mode UI library.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
🔩 microui-d
A tiny and portable immediate-mode UI library written in D. Microui-d is a complete rewrite of rxi's microui. It's 90% the same library, but with bug fixes, texture support, and other D-specific improvements.
Major Features
- Around
2000 slocof D - Easily extensible
- Simple layout system
- Works within a fixed memory region
- Works with any rendering system that can draw rectangles and text
- Optional helper modules for libraries like raylib
- C interface for cross-language use
- BetterC support
Example
import raylib;
import murl; // Equivalent to `import microuid`, with additional helper functions for raylib.
void main() {
// Create the window and UI context.
InitWindow(800, 600, "raylib + microui");
auto font = GetFontDefault();
readyUi(&font, 2);
while (!WindowShouldClose) {
BeginDrawing();
ClearBackground(Color(100, 100, 100, 255));
// Update and draw the UI.
beginUi();
if (beginWindow("The Window", UiRect(40, 40, 300, 200))) {
button("My Button");
endWindow();
}
endUi();
EndDrawing();
}
}
Modules
microui: Immediate-mode UI librarymicrouid: Wrapper aroundmicrouimurl: Raylib helper utilities
Documentation
Start with the examples folder for a quick overview. For more details, check out the usage instructions by rxi.
- 0.0.16 released 28 days ago
- Kapendev/microui-d
- MIT
- Copyright © 2024, Alexandros F. G. Kapretsos
- Authors:
- Dependencies:
- none
- Versions:
-
Show all 18 versions0.0.17 2026-Mar-20 0.0.16 2026-Mar-19 0.0.15 2025-Aug-26 0.0.14 2025-Aug-26 0.0.13 2025-Aug-25 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
4 downloads this month
-
83 downloads total
-
- Score:
- 0.9
- Short URL:
- microui-d.dub.pm