Trait NativeViewLifecycle
pub trait NativeViewLifecycle {
// Required methods
fn mount_native_view(&mut self, host: &NativeViewHost<'_>);
fn unmount_native_view(&mut self);
fn native_view_frame_start(&mut self);
}Expand description
Optional lifecycle for widgets backed by a platform-native child view.
Required Methods§
fn mount_native_view(&mut self, host: &NativeViewHost<'_>)
fn mount_native_view(&mut self, host: &NativeViewHost<'_>)
Attach the native child after the host window exists.
fn unmount_native_view(&mut self)
fn unmount_native_view(&mut self)
Tear the native child down while its parent window is still alive.
fn native_view_frame_start(&mut self)
fn native_view_frame_start(&mut self)
Hide the native child at the start of a frame until drawing reveals it.