Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nim-lang/ui
Beginnings of what might become Nim's official UI library.
https://github.com/nim-lang/ui
Last synced: 29 days ago
JSON representation
Beginnings of what might become Nim's official UI library.
- Host: GitHub
- URL: https://github.com/nim-lang/ui
- Owner: nim-lang
- License: mit
- Created: 2016-06-06T11:42:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T19:13:14.000Z (almost 2 years ago)
- Last Synced: 2024-08-04T02:07:54.332Z (4 months ago)
- Language: Nim
- Size: 82 KB
- Stars: 239
- Watchers: 12
- Forks: 32
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
- awesome-electron-alternatives - ui
- awesome-nim - ui - Wrapper for libui. Beginnings of what might become Nim's official UI library. (User Interface / GUI)
README
# UI
This package wraps the [libui](https://github.com/andlabs/libui) C library. It
also provides a high-level Nim binding for it.To get started, install using Nimble:
```bash
nimble install ui
```or add it to your project's Nimble file:
```nim
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/``](https://github.com/nim-lang/ui/tree/master/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.