No description
Find a file
2024-07-24 09:54:32 -04:00
.github/workflows a 2023-08-06 05:24:08 -04:00
docs add redirect so genui's imports section works 2023-02-16 18:58:28 -05:00
examples comment out dll define flag 2024-07-03 09:17:05 -04:00
headers update ui.h 2023-05-01 20:20:07 -04:00
res link extra resources 2023-02-05 02:12:40 -05:00
screenshots add more mac screenshots (thank you @stoneface86) 2023-06-29 21:29:23 -04:00
tests add tests 2023-04-17 13:47:07 -04:00
uing fix linux mingw-w64 cross compile link error 2024-07-04 17:40:33 +02:00
.gitignore add comments to gitignore 2023-05-01 20:22:07 -04:00
.gitmodules explicitly set branch to master 2023-02-05 00:50:39 -05:00
LICENSE add name to license 2023-05-01 20:23:48 -04:00
nimdoc.cfg fix docs... 2023-02-27 05:10:18 -05:00
README.md add link to @stoneface86's account 2023-06-26 18:45:14 -04:00
TODO.md update TODO 2023-03-02 14:41:39 -05:00
uing.nim update docs for Image and newImage, fix #15 2024-07-24 09:54:32 -04:00
uing.nimble bump ver 2024-07-04 12:11:30 -04:00

UIng

Documentation

A fork of ui that wraps libui-ng instead of the old and unmaintained libui library. It also provides a high-level Nim binding for it.

To get started, install using Nimble:

nimble install uing

or add it to your project's Nimble file:

requires "uing"

Runtime Requirements

  • Windows: Windows Vista SP2 with Platform Update or newer
  • Unix: GTK+ 3.10 or newer
  • Mac OS X: OS X 10.8 or newer

Dependencies

  • gtk+-3.0

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

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

Static vs. dynamic linking

This library installs the C sources for libui-ng 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 -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. Build instructions and requirements can be found in libui-ng's README

In addition, if you would rather want to compile with a static library, pass -d:useLibUiStaticLib to the Nim compiler instead. You will then need a libui.lib for Windows and a libui.a for other platforms. Again, Build instructions and requirements can be found in libui-ng's README

Static and dynamic libraries (e.g. libui.so, libui.lib) can be found in the releases page

Screenshots

Windows 11

controllgallery3_tab1.png controllgallery3_tab2.png controllgallery3_tab3.png

Linux (Zorin OS 16.4 Wayland)

controllgallery3_tab1.png controllgallery3_tab2.png controllgallery3_tab3.png

Mac OS X

Thank you @stoneface86 for the screenshots!

controllgallery3_tab1.png controllgallery3_tab3.png

More screenshots are available at screenshots/.

Stargazers over time

Stargazers over time

Made with ❤️ with Nim