Trait zng_app::update::WidgetPathProvider
source · pub trait WidgetPathProvider {
type WidgetIter<'s>: Iterator<Item = WidgetId>
where Self: 's;
// Required methods
fn window_id(&self) -> WindowId;
fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>;
}
Expand description
Provides an iterator of widget IDs and a window ID.
Required Associated Types§
sourcetype WidgetIter<'s>: Iterator<Item = WidgetId>
where
Self: 's
type WidgetIter<'s>: Iterator<Item = WidgetId> where Self: 's
Output of widget_and_ancestors
.
Required Methods§
sourcefn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
Iterate over the widget, parent, grandparent, .., root.
Object Safety§
This trait is not object safe.