libui-node

Node bindings for libui, an awesome native UI library for Unix, OSX and Windows

  • 所有者: parro-it/libui-node
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

libui-node

Node.js bindings for libui library.

libui is a lightweight, portable GUI library that uses the native GUI technologies of each platform it supports.

It is in early stage of development, but is evolving at great pace and is really awesome. It could become an awesome alternative to Electron to develop multiplatform GUI, expecially suited to develop small apps.

Travis Build Status
AppVeyor Build Status
NPM module
NPM downloads

Screenshots


macOS


Linux


Windows


Supported platforms

  • Windows: Windows Vista SP2 with Platform Update or newer
  • Unix: GTK+ 3.10 or newer
  • Mac OS X: OS X 10.8 or newer
  • Node.js version 4 or greater.

Prerequisites

Windows

Linux

If they are not provided by default in your distribution:

macOS

Installation

npm install -S libui-node

libui prebuilt binaries are automatically downloaded after install.

If you get this error on Windows:

'__pfnDliNotifyHook2': redefinition; different type modifiers

you need to install latest npm version:

$ npm i -g npm

see this node-gyp issue
for more details.

Documentation & examples

Documentation is in docs folder.
You can also find working examples in examples folder.

How to run the examples

First, you have to clone the GitHub repo and npm install it:

git clone https://github.com/parro-it/libui-node.git
npm install

Then, to run the control gallery example (requires Node.js >= 6), type:

npm start

For the core api, example, type:

npm run start-core

To run other examples:

node <path to example file>

Contribution & design

  • Each libui control implementation is written in it's own C++ file in src folder.
  • Each control is implemented in it's own C++ class, each class is a simple wrapper of related libui C functions.
  • Header files are in src/includes folder.
  • Control events does not follow node convention: if you attach an handler to an event, previous one will be overwritten and never be called.
  • We build the project using the awesome nbind tool, that automate the process of linking a straight C++ class to Node.js stuff...

Related projects

  • libui - Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports.
  • nbind - Magical headers that make your C++ library accessible from JavaScript
  • proton-native - A React environment for cross platform native desktop apps https://proton-native.js.org
  • Vuido - A Vue.js component implementation built on top of LibUI-Node

Contributors

Andrea Parodi, Juha Järvi, Niklas Mischkulnig, Gustav Hansen
---, ---, ---, ---
Andrea Parodi, Juha Järvi, Niklas Mischkulnig, Gustav Hansen

License

The MIT License (MIT)

Copyright (c) 2018 parro-it

主要指標

概覽
名稱與所有者parro-it/libui-node
主編程語言C++
編程語言Python (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2016-05-21 15:38:05
推送於2021-07-22 16:46:18
最后一次提交2019-05-22 14:27:20
發布數16
最新版本名稱v0.2.1 (發布於 2018-06-02 08:24:55)
第一版名稱v0.0.1 (發布於 2016-06-22 15:58:28)
用户参与
星數1.9k
關注者數59
派生數85
提交數696
已啟用問題?
問題數97
打開的問題數37
拉請求數44
打開的拉請求數5
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?