bodil / vgtk

A declarative desktop UI framework for Rust built on GTK and Gtk-rs
http://bodil.lol/vgtk/
Other
1.06k stars 37 forks source link

Feature request: render and defer #54

Open jocelyn-stericker opened 4 years ago

jocelyn-stericker commented 4 years ago

Consider a component with an image of a good dog and a refresh button. Clicking refresh enters a pending state (maybe a dog fact?) while fetching another good dog image, then switches to that image.

UpdateAction::Defer and UpdateAction::Render are currently mutually exclusive. Would an UpdateAction::RenderAndDefer or something make sense for the above scenario?

bodil commented 4 years ago

I'd say it makes a lot of sense.