tareksander / termux-gui-c-bindings Goto Github PK
View Code? Open in Web Editor NEWA C/C++ library to interact with the Termux:GUI plugin
License: Mozilla Public License 2.0
A C/C++ library to interact with the Termux:GUI plugin
License: Mozilla Public License 2.0
Button
?TouchEvent
within 1 second?I am now making a video player, but there is no struct like AddPcmRequest
.
I've just been making my first test programs with the C API .
Initially installing via the dpkg archive I found the connection kept failing with errr = 6 (TGUI_ERR_EXCEPTION).
I rebuilt from latest github source and got the same issue.
After some brute force debugging with printfs I determined the exception was coming from the second timeout in Connection::Connection.
For some reason "termux-am" doesn't work on either of my android devices (Android 12 issue?) so it was falling through to "am" but am is slow to respond. 5 seconds is too short a timeout on my system after I upped the second timeout to 10 times the value (overkill :-) A crude connect and quit immediately test times at about 12 seconds.
I understand that termux-am, when working, is supposed to be faster, so maybe 5 secs is suitable there but I would suggest the timeout for "am" could be upped to 10s for more consistent results.
when i try to run some example i get the error: Could not connect to socket.
And if i try to run an example that uses opengl i get: eglInitialize: 0x3001
When i try to run buffer_gl.c, i get the error: No egl display
Please add a tutorial on how to detect touches in surfaceview
But it works on Button.
I did not understand how to solve any of the problems, could you explain in more detail
How to enable alpha color in hardware buffer
What is the lifecycle of a buffer and how do I change the buffer in case of screen orientation change(treating it like "windows has changed size, new buffer needed" on desktop)? tgui_create_image_view(), is this even the right type of view I need?
Basically I want to create bitmap gui that always occupies full screen and handles rotation.
https://gist.github.com/pachuco/4c769f1a55d1745fd38b76ea445ed3cc/fd91f9747c7694ef19c01ce1b9faaa8d103c0e83
This is my code so far. Feel free to poke at other deficiencies.
~/termuxgui $ gcc ./es2gears.c -o gears -lm -lEGL -lGLESv2 -ltermuxgui
~/termuxgui $ ./gears
CANNOT LINK EXECUTABLE "./gears": cannot locate symbol "_ZN4absl12lts_202301255MutexD1Ev" referenced by "/data/data/com.termux/files/usr/lib/libtermuxgui.so"...
~/termuxgui $
termux-gui-c is already the newest version (0.1.1).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.