raylib-lists

Raylib List widget lib

List widget for Raylib-zig.

Example usage here -> ZISTORY.

Tested on Zig version 0.16.0 and 0.17.0-dev.387+31f157d80.

[!NOTE] This is configured to work on wayland. If you are on x11, you’ll need to change the display backend.

In the raylib dependency.

const raylib_dep = b.dependency("raylib_zig", .{
    .target = target,
    .optimize = optimize,
    .linux_display_backend = .X11,
});

Usage

The project must have been created using zig init.

Run this to add it to your build.zig.zon:

zig fetch --save git+https://github.com/RomaricKc1/raylib-lists/

And add these lines to your build.zig file:

const rl_lists_dep = b.dependency("raylib_lists", .{
    .target = target,
    .optimize = optimize,
});
const rl_lists = rl_lists_dep.module("raylib_lists"); // lists widget

Now add the modules to your target:

exe.root_module.addImport("rl_lists", rl_lists);

You can then import it in your code.

const rl_lists = @import("rl_lists");

Checkout another widget