A C/C++ library to interact with the Termux:GUI plugin.
[x] View creation
[x] Activity functions
[x] Task functions
[x] Global functions
[x] ImageView & Buffer
[x] Events
[x] Event control
[x] WebView
[x] View functions
[x] RemoteViews, Widgets, Notifications
[x] GLES2 accelerated rendering with SurfaceView
You have to clone the repository configure cmake and install:
pkg install git build-essential protobuf-static libutf8-range # install git, clang, protobuf-static, utf8-range and cmake if not installed
git clone "https://github.com/tareksander/termux-gui-c-bindings.git" # clone the repository
cd termux-gui-c-bindings # go into the repository
cmake . -DCMAKE_INSTALL_PREFIX="$PREFIX" # configure cmake with the Termux prefix
make install # install
Run pkg install termux-gui-c
.
On device or using the termux-packages repo
Just use it like a normal C/C++ library.
Include this repository as a submodule or any other way.
The license is the Mozilla Public License 2.0.
TL;DR: You can use this library in your own projects, regardless of the license you choose for it. Modifications to this library have to be published under the MPL 2.0 (or a GNU license in some cases) though.