zng_app::update

Trait 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§

source

type WidgetIter<'s>: Iterator<Item = WidgetId> where Self: 's

Output of widget_and_ancestors.

Required Methods§

source

fn window_id(&self) -> WindowId

The window parent.

source

fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>

Iterate over the widget, parent, grandparent, .., root.

Object Safety§

This trait is not object safe.

Implementors§