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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§