Skip to content
This repository has been archived by the owner. It is now read-only.
Complete OO interfaces of libui( in D
Branch: master
Clone or download
MoGu Merge pull request #5 from finnonly/master
Draw.d change struct to class to resolve issue #4
Latest commit c36e994 Sep 14, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples add example2 (copy from libui) Aug 25, 2016
libui @ 229ed22 update submodule reference Oct 21, 2016
source/ui 修改struct为class Sep 14, 2017
LICENSE Initial commit Aug 4, 2016 update readme for new build option Feb 27, 2017
dub.json remove dflags, dub has --arch=x86_mscoff option Feb 27, 2017

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


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() { Window("Hello").addOnClosing(_ => App.quit).show);
You can’t perform that action at this time.