Skip to content

nim-lang/ui

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 13, 2021 10:03
October 23, 2016 22:39
June 6, 2016 13:42
May 4, 2019 13:23
August 24, 2018 22:39
October 23, 2016 17:51
January 13, 2021 17:16

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.

About

Beginnings of what might become Nim's official UI library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published