No description
Find a file
2021-10-13 11:35:26 +02:00
examples Update toy.nim 2021-10-13 10:03:03 +02:00
headers updated to latest libui 2016-10-23 22:39:45 +02:00
res make ui work without DLL via mingw compiler 2017-03-22 00:58:55 +01:00
ui update libui, fix histogram example [closes #26] 2019-09-26 15:14:27 +07:00
.gitignore Initial commit 2016-06-06 13:42:37 +02:00
.gitmodules complete uiTable 2019-05-04 13:23:30 +07:00
license.txt Project cleanup 2016-10-23 17:51:00 +02:00
README.md Update README.md 2018-08-24 22:39:51 -04:00
ui.nim Gen impl helpers 2021-01-13 17:16:36 +01:00
ui.nimble remove OLD_table stuffs from libui 2019-06-06 07:55:07 +07:00

UI

This package wraps the libui C library. It also provides a high-level Nim binding for it.

To get started, install using Nimble:

nimble install ui

or add it to your project's Nimble file:

requires "ui"

Dependencies

  • gtk+-3.0

Linux: $ sudo apt-get install libgtk-3-dev

OSX: $ brew install gtk+3

You should then be able to compile the sample code in the examples/ directory successfully.

Static vs. dynamic linking

This library installs the C sources for libui and statically compiles them into your application.

Static compilation is the default behaviour, but if you would prefer to depend on a DLL instead, pass the -d:useLibUiDll to the Nim compiler. You will then need to bundle your application with a libui.dll, libui.dylib, or libui.so for Windows, macOS, and Linux respectively.