Trait OverlayExt

Source
pub trait OverlayExt: 'static {
    // Required methods
    fn add_overlay<P: IsA<Widget>>(&self, widget: &P);
    fn get_overlay_pass_through<P: IsA<Widget>>(&self, widget: &P) -> bool;
    fn reorder_overlay<P: IsA<Widget>>(&self, child: &P, position: i32);
    fn set_overlay_pass_through<P: IsA<Widget>>(
        &self,
        widget: &P,
        pass_through: bool,
    );
    fn get_child_index<T: IsA<Widget>>(&self, item: &T) -> i32;
    fn set_child_index<T: IsA<Widget>>(&self, item: &T, index: i32);
}

Required Methods§

Source

fn add_overlay<P: IsA<Widget>>(&self, widget: &P)

Source

fn get_overlay_pass_through<P: IsA<Widget>>(&self, widget: &P) -> bool

Source

fn reorder_overlay<P: IsA<Widget>>(&self, child: &P, position: i32)

Source

fn set_overlay_pass_through<P: IsA<Widget>>( &self, widget: &P, pass_through: bool, )

Source

fn get_child_index<T: IsA<Widget>>(&self, item: &T) -> i32

Source

fn set_child_index<T: IsA<Widget>>(&self, item: &T, index: i32)

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§