125 points · by networked · 10y ago · 40 comments
It works with NanoVG, so it is useful in environments where you're already running OpenGL.
Assuming this approach would relieve a lot of the stress I've experienced on my more popular projects. I'm seriously considering it.
(i just added the Win32 backend and the last time
i touched the code before that was at January 2011).
seems like he just released the code for the benefit of others stead some goal to develop iti wonder what sorts of projects he created it for
http://runtimelegend.com/rep/lforms/artifact/5c9b5b527c2b37e...
which was commited in july of 2011, so he was excusing a 6 month break from developing it
I have a variety of open source projects, and some fall towards each end of the spectrum.
I think one of the major advantages of open source is that you can fix a bug or add a feature that you want.
Actually I think he himself just wants to not collaborate, but I don't see anything saying that you can't copy his code and then collaborate with others.
There are also other benefits of open source other than collaboration, such as security from being able to review the code, and being able to run in a totally free system.
As someone who is Gtk, Qt, C++ averse, I thought I'll have to settle on something like FLTK. This is another option in my basket.
Is it tied to X or fairly independent? Because Wayland is an upcoming standard which aims to be a lot more cruft-free.
- Internationalization: The edit control doesn't support input method editors. On Windows, wide-character functions aren't used; that means Unicode isn't supported.
- Accessibility: Here I'm talking about the ability for users with disabilities, most notably blind users but also users with mobility impairments, to access a UI via assistive technologies such as screen readers or alternative types of input. This requires the GUI toolkit to implement an accessibility API such as Microsoft Active Accessibility or UI Automation on Windows, or AT-SPI for X11-based environments. This is something that practically everyone who sets out to implement a lean, mean, simple toolkit just doesn't pay attention to.
- Native look: The toolkit doesn't attempt to mimic the look of the rest of the system at all. On my Windows 10 machine, the demo looks like a throwback to Windows 95. This is also an accessibility issue, for low-vision users that need a different color scheme.
And there are probably other considerations I've forgotten or am unaware of. You'd probably be better off using one of those big, bloated C++ toolkits, like Qt or (better yet, IMO) wxWidgets. Not GTK, since that doesn't cover accessibility except under X11 via GNOME.
- It used to be that Qt was massive; because it existed before ubiquitous, usable STL implementations, Qt had to essentially also ship its own C++ standard library. Which meant that you couldn't use standard C++ strings, you had to use QString, and so on. This is less true with Qt 4 & 5, but reputations stick around.
- Often-times C++ APIs are a pain, even if you are using C++, many people have the opinion that the API exposed should be C.
And the STL data structures are sometimes kind of unwieldy:
if (dict.find(key) != dict.end()) { ... }
is lame compared to the easily understood: if (dict.contains(key)) { ... }
Not to mention all the stupid inconsistencies: // std::vector has no sort function, haha!
std::sort(std_vector.begin(), std_vector.end());
// std::sort doesn't work on std::list, haha!
std_list.sort();
And my favorite annoyance, the fact that std::vector::size() returns unsigned int, despite the fact that for practical purposes you aren't going to get anywhere near even 2 billion elements without running out of memory (or other performance problems), so I'm stuck writing for (unsigned int idx = 0; idx < v.size(); ++idx) {...}
or omitting the "unsigned" and getting lots of compiler warnings. I get why they would have done it; I would have done it too. Until I used Qt, then I like how everything is simply int. I suppose if you are doing physics simulations or something you might need something different, but it's the rare GUI program that needs unsigned int for size.- I'm in the camp that thinks widget libraries for C++ should be workable in C.
- I'm big on minimalism, and being strongly aware of "90% of programs out there are bloated", and was horrified when I had to install a tiny Qt based program in ubuntu, and it required me to install a gazillion packages that looked like they belonged to Qt. (I don't remember the details).
- I always keep looking for C programs that can do in a couple thousand lines, what takes tens of thousands of non-C code for other programs to accomplish. I'm fairly aligned with the suckless philosophy, although I may not 100% agree with them. (suckless website would give you a good idea of what I'm talking about).
The moc is to effectively extend C++ with signals and slot at a language level. I'm not crazy about the moc, but I love signals and slots. The only alternative is slow-compiling templates like boost signals and slots, which also have less than compelling syntax.
On the other hand... I kind of want vector graphics, and cairo would be really great for that, and if I use cairo, well I might as well use gtk, and... hmm. I see why these things end up with lots of features.