pub trait OverlayExt:
IsA<Overlay>
+ Sealed
+ 'static {
// Provided methods
fn add_overlay(&self, widget: &impl IsA<Widget>) { ... }
fn is_overlay_pass_through(&self, widget: &impl IsA<Widget>) -> bool { ... }
fn reorder_overlay(&self, child: &impl IsA<Widget>, index_: i32) { ... }
fn set_overlay_pass_through(
&self,
widget: &impl IsA<Widget>,
pass_through: bool,
) { ... }
fn child_index<T: IsA<Widget>>(&self, item: &T) -> i32 { ... }
fn set_child_index<T: IsA<Widget>>(&self, item: &T, index: i32) { ... }
}
Provided Methods§
fn add_overlay(&self, widget: &impl IsA<Widget>)
fn is_overlay_pass_through(&self, widget: &impl IsA<Widget>) -> bool
fn reorder_overlay(&self, child: &impl IsA<Widget>, index_: i32)
fn set_overlay_pass_through( &self, widget: &impl IsA<Widget>, pass_through: bool, )
fn child_index<T: IsA<Widget>>(&self, item: &T) -> i32
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.