Dovyski / cvui

A (very) simple UI lib built on top of OpenCV drawing primitives
https://dovyski.github.io/cvui/
MIT License
832 stars 213 forks source link

Is it possible support the function of text box input? #103

Open Rayqun opened 4 years ago

cwreynolds commented 3 years ago

Thanks to Fernando Bevilacqua (@Dovyski) for creating this utility.

I had created some simple UI components in my own code before seeing CVUI. I now have a need for a text input box (to enter a pathname) and thought “I should switch over to CVUI and use its text input box.” After reading the doc, I could find none, and came here to file a feature request, and found that @Rayqun had done so a few months ago.

So I guess I am just here to verify that no text input capability exists, and to upvote this request.

I may try prototyping this in my own “mini CV GUI” — if that works, and is general-purpose enough, I will come back here to discuss integrating it into CVUI.

Dovyski commented 3 years ago

Thank you @cwreynolds and @Rayqun for up voting this feature! It is something that I myself want for a long time. A pull request implementing a basic input component has already been merged into the dev branch. However, I never quite had the time to polish everything up and release a new version of cvui with that.

I think it might work as is if you checkout the code from the dev branch. This branch also received quite a bit of contributions, so it'll be a significant amount of smoothing and testing before a new release. I've been planning on doing that, but it is clearly not happening effectively.

cwreynolds commented 3 years ago

That is great news! Thanks to @huangyuyao for the original contribution!

I will take a look.