Description

D OO interface of libui

Package Information

Version0.0.6 (2017-Feb-27)
Repository https://github.com/mogud/libuid
LicenseMIT
CopyrightCopyright © 2016, mogu
Authorsmogu
Registered bymogu
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

libuid: Complete OO interfaces of libui in D

  • libuid is a binding of libui. So you have to build libui first. libui now is a submodule of libuid to prevent compatible issues. Dynamic library is recommend as you can build your programm without other static libraries to link.

  • Build existing examples with dub:

dub build --config=example1 --arch=x86_mscoff

or

dub build --config=example2 --arch=x86_64

You can use --arch to specify architecture of you platform. Note in windows, use --arch=x86_mscoff to create 32bit binary.

  • Minimal Example:

import ui;

void main() {
    App.run(new Window("Hello").addOnClosing(_ => App.quit).show);
}

Available versions

0.0.6 0.0.5 0.0.4 0.0.3 0.0.2 0.0.1 ~master