slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
15.92k stars 524 forks source link

Add a new children/descendants api as well as deeper element queries to ElementHandle #5433

Open tronical opened 1 week ago

tronical commented 1 week ago

Should visit_element be removed. It is a bit redundent since you can do HasElementHandle::root_element(component).visit_descendants

(the only difference is that it visits the root)

Yes, I'm in favor of that - if you're okay with the rest of this API. I'd make that a separate change though.