fluid 0.6.2

A straightforward and easy to use GUI 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:

Hello World from Fluid!

A flexible UI library for the D programming language. Minimal setup. Declarative. Non-intrusive.

auto root = vspace(
    .layout!"center",
    label(.layout!"center", "Hello World from"),
    imageView("./logo.png", Vector2(499, 240)),
);

Fluid comes with Raylib 5 and arsd.simpledisplay support. Integration is seamless: one or two calls do the job.

while (!WindowShouldClose) {

    BeginDrawing();

        ClearBackground(color!"#fff");
        root.draw();

    EndDrawing();

}

Fluid has a decent feature set at the moment and new features will still be added over time. Fluid is already mostly stable and ready for use, but is still likely to receive a few breaking changes before leaving its pre-release stage.

Support Fluid development on Patreon: https://www.patreon.com/samerion

  • Straightforward, high-level API
  • Responsive layout
  • Extensible
  • Components easily combined together
  • Reliable mouse and keyboard input
  • Separate layout and styling
  • Scrolling support
  • Out-of-the-box Unicode support
  • Full HiDPI support
  • Partial gamepad support

Get Fluid

For a quick start guide on Fluid, check out the showcase:

dub run fluid:showcase

Create a new dub project based on Fluid:

dub init -t fluid

You can use dub to include Fluid in your code:

dub add fluid
dub add raylib-d
dub run raylib-d:install
Authors:
  • Artha
Sub packages:
fluid:showcase, fluid:showcase-raylib, fluid:init-exec
Dependencies:
raylib-d, elemi, arsd-official:image_files, arsd-official:simpledisplay, bindbc-freetype
Versions:
0.7.0-alpha.2 2024-Apr-29
0.7.0-alpha.1 2024-Feb-29
0.6.3 2024-Feb-26
0.6.2 2024-Feb-07
0.6.1 2024-Jan-27
Show all 9 versions
Download Stats:
  • 0 downloads today

  • 8 downloads this week

  • 35 downloads this month

  • 175 downloads total

Score:
2.2
Short URL:
fluid.dub.pm