this post was submitted on 05 Aug 2023
6 points (100.0% liked)
Rust
6055 readers
167 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pure widgets are just ones that don't contain state. You pick which one you need based on which one you need, so in your case you need state because you must store what's within the number input box.
I'm not wholly familiar with iced, but I'd venture to guess the example you looked at didn't need to store state so it was able to use a non-mutable view, whereas you need to store it so that example doesn't exactly work for you. However it could just be a bit out of date, and I'm sure they'd appreciate a PR
Gotcha. I unfortunately decided to give up on trying to do this in Rust. I'm trying out JUCE since it's industry standard. I'm already bashing my head against the wall with this C++ garbage. Hopefully the gui scene looks better for rust soon
I'm actively working on a UI framework, so hopefully it helps, haha
Good luck with it. What's it called?
Agui, but it's not yet ready for legitimate use. Well, sort of. The engine should be mostly there, I'm just working on integrations with renderers and windowing (winit), now. It doesn't have focusing or accessibility support yet, but that's my next task