Earlier quoted context omitted.
By the same metric c++ qwidgets is amazing to write UIs and by keeping everything in c++ there is easily less abstraction, I can easily navigate my code, not jump between two different systems. There really is no great reason why qml objects couldn’t be c++ classes/functions. Decoupling does what for me, but introduce more syntax, documentation, and learning curves. You should give writing a Kde6 Kirigami app a try a…
I'm very fond of QML's syntax, so can't quite understand why you don't like it. It has a learning curve, but I studied all the basics in a day (it's just so simple and intuitive, imo). Not sure how "QML in C++" would look like, but it doesn't sound pretty. Recently someone published a declarative UI inside C++[1] (without a different syntax) but I felt a bit off with this approach. Maybe that's something you mean? [1…
Clay – UI Layout Library
91–95 of 95 posts
Re: Clay – UI Layout Library
#92Nice! It's pretty cool what you can make in a few thousand lines. Though Flex isn't my favorite as I prefer full CSS Grid. So I ended up making a CSS Grid layout library that I'm proud of in pure Nim (1). Though I'll have to checkout Clay and compare some of the layout algorithms. It's neat to see boxes resizing themselves using an algorithm you implemented. Wonder if I could expose a C interface? The reason I like C…
Cool! I also have a standalone implementation of CSS Grid [1]. Implemented in Rust in my case (and we also support Flexbox and Block layout). Looks like the licenses are both MIT (although you may want to add a LICENSE file to make that easier to find) so feel free to steal bits if you want. We aim to be fully web compatible, although we're not quite there yet. One thing we have that you may be particularly intereste…
I think a new framework for lightweight native app development can be built on top. Lightweight flutter sort of.
Re: Clay – UI Layout Library
#93This is basically what Flutter web is doing - its own canvas, rendering UI, and leveraging Wasm
Re: Clay – UI Layout Library
#94This is basically what Flutter web is doing - its own canvas, rendering UI, and leveraging Wasm
If Android had provided an defining UI API like this entirely in C without using Java, Android would have 100% monopolized the mobile OS market. So fast, efficient.
If I need to target Android natively today, I first consider Flutter (non-web).
For iOS only apps there's little reason to stay away from Swift.
Re: Clay – UI Layout Library
#95Cool, so if i look for 'clay', i'll find your lib?
"clay ui" or "clay layout" will find it, which seems ok to me.