Improve naming in iced_selector crate

This commit is contained in:
Héctor Ramón Jiménez 2025-09-17 22:56:58 +02:00
parent 59e2687146
commit 299eb54d6f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
12 changed files with 235 additions and 219 deletions

View file

@ -1,7 +1,5 @@
//! Find and query widgets in your applications.
pub use iced_selector::Selector;
pub use iced_selector::target::{Bounded, Match, Target, Text};
pub use iced_selector::{Bounded, Candidate, Selector, Target, Text};
use crate::core::Rectangle;
@ -10,7 +8,7 @@ use crate::core::widget;
use crate::task;
/// Finds a widget by the given [`widget::Id`].
pub fn find_by_id(id: impl Into<widget::Id>) -> Task<Option<Match>> {
pub fn find_by_id(id: impl Into<widget::Id>) -> Task<Option<Target>> {
task::widget(id.into().find())
}