//! Find and query widgets in your applications. pub use iced_selector::{ Bounded, Candidate, Selector, Target, Text, focus, id, is_focused, }; use crate::Task; use crate::task; /// Finds a widget matching the given [`Selector`]. pub fn find(selector: S) -> Task> where S: Selector + Send + 'static, S::Output: Send + Clone + 'static, { task::widget(selector.find()) } /// Finds all widgets matching the given [`Selector`]. pub fn find_all(selector: S) -> Task> where S: Selector + Send + 'static, S::Output: Send + Clone + 'static, { task::widget(selector.find_all()) }