microui-d 0.0.8

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 sloc of 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 other libraries (raylib, Parin)
  • C interface for cross-language use
  • BetterC support

Hello World Example

import murl; // Equivalent to `import microuid`, with additional helper functions for raylib.
import raylib;

void main() {
    // Create the window and UI context.
    InitWindow(800, 600, "raylib + microui");
    auto font = GetFontDefault();
    readyUi(&font);

    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 library
  • microuid: Wrapper around microui
  • murl: Raylib helper utilities
  • mupr: Parin helper utilities

Documentation

Start with the examples folder for a quick overview. For more details, check out the usage instructions by rxi.

Authors:
  • Alexandros F. G. Kapretsos
Dependencies:
none
Versions:
0.0.8 2025-Jul-12
0.0.7 2025-Jul-12
0.0.6 2025-Jul-10
0.0.5 2025-Jul-08
0.0.4 2025-Jul-03
Show all 9 versions
Download Stats:
  • 1 downloads today

  • 1 downloads this week

  • 10 downloads this month

  • 15 downloads total

Score:
0.5
Short URL:
microui-d.dub.pm