Earlier quoted context omitted.
If your UI is fast enough, why not in complex UI’s either? I’d say it gives you good motivation to keep your UI handling code as fast as possible.
Doesn't egui always re-render? I like my idle apps to be doing nothing, I don't want them running their render loop in the background
I Switched from Flutter and Rust to Rust and Egui
21–30 of 148 posts
Re: I Switched from Flutter and Rust to Rust and Egui
#22Earlier quoted context omitted.
Doesn't egui always re-render? I like my idle apps to be doing nothing, I don't want them running their render loop in the background
By default it re-renders on each event. This isn't often on mobile apps, but moving a mouse across a desktop app triggers multiple vents. There is a function call to request a re-render if you want not to wait for an event.
Re: I Switched from Flutter and Rust to Rust and Egui
#23Re: I Switched from Flutter and Rust to Rust and Egui
#24I still prefer good old GUI frameworks with WYSIWYG designers.
Re: I Switched from Flutter and Rust to Rust and Egui
#25I still prefer good old GUI frameworks with WYSIWYG designers.
WYSIWYG designers seem convenient, but they're not that popular anymore for a reason. Writing UI in code is more flexible, easier to maintain, and works better as projects grow.
Re: I Switched from Flutter and Rust to Rust and Egui
#26Earlier quoted context omitted.
By default it re-renders on each event. This isn't often on mobile apps, but moving a mouse across a desktop app triggers multiple vents. There is a function call to request a re-render if you want not to wait for an event.
So if it's just an idle visible application, does it not render at all because there are no events? Or am I right that there's some idle redrawing going on
Re: I Switched from Flutter and Rust to Rust and Egui
#27Immediate mode GUIs are cool but it seems that accessibility support is somewhat lacking. In native frameworks you often get it for free, on the Web you can follow ARIA and get it for free, but with immediate mode GUIs it seems that it is always a bit of an afterthought. For example, it seems that egui supports AccessKit, but not when used on the Web. With Dear ImGui it seems worse, there is some effort in that direc…
Re: I Switched from Flutter and Rust to Rust and Egui
#28I feel obliged to mention that iced is a fantastic Rust GUI library for more complex applications: https://iced.rs
Re: I Switched from Flutter and Rust to Rust and Egui
#29valgrind --leak-check=full --show-reachable=yes --track-origins=yes -s ./your_program
is memory leak?
Re: I Switched from Flutter and Rust to Rust and Egui
#30Earlier quoted context omitted.
WYSIWYG designers seem convenient, but they're not that popular anymore for a reason. Writing UI in code is more flexible, easier to maintain, and works better as projects grow.
In the end the WYSIWYG would produce an XML file that you can put under version control. All depends on the UI of the thing your are building, if what you are building only needs to be functional and nobody cares about the UI (that is always the case of internal use software, that needs to have a good UX but who cares if it has the Windows 95 style controls, like machine HMIs, ERP software, etc.) WYSIWYG (like Visual…