dreais / simplegui Goto Github PK
View Code? Open in Web Editor NEWLibrary using ncurses to build fast and light GUI, in C.
Home Page: http://rudreais.com
License: MIT License
Library using ncurses to build fast and light GUI, in C.
Home Page: http://rudreais.com
License: MIT License
whitespace should not be considered as "words" but at least appear in the array, so it can be used and printed.
thread 2 (in charge of mouse events) is going slower, which is an issue for the set_active functions. it will prompt the new active window after having printed the window + the box, voiding the effect of the click
suggested: mutex for an access_writing
variable + condition if it is on TRUE
.
please review and delete if necessary the window-rework branch as it's not active anymore
(this issue is merely a reminder for myself when i get the time)
should have a "was_modified" parameter - if false, do NOT rewrite the entirety of the buffer. instead, only print the new elements.
that brings another question: void wb_write(instance *current, const char *str, int index);
is fine but only appends. what if we need to WRITE instead?
might need another variable in t_buff
so we can keep the scroll level registered; then, checking if a specific window needs scroll (or has scroll available) and getting the key event to see if user wishes to process the hidden text.
this could lead to another idea that is unselecting windows - if we click on the selected window, we remove the selection and go back to the initial state. that way, some events that are shared between windows can occur (such as scrolls on all windows)
(sorry, gitkraken mistake)
the way the buffer flushes (word by word) is ineffective since we need to apply an offset. however, the offset would need to cut the word, there's 2 solutions
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.