pub trait NativeControlHostImpl: ControlImpl + Upcast<NativeControlHost> {
// Provided methods
fn create_native_control_core(
this: &Self,
parent: Rc<dyn IPlatformHandle>,
) -> Rc<dyn IPlatformHandle> { ... }
fn destroy_native_control_core(
this: &Self,
control: Rc<dyn IPlatformHandle>,
) { ... }
}Expand description
The overridable members introduced by the class.
Provided Methods§
Sourcefn create_native_control_core(
this: &Self,
parent: Rc<dyn IPlatformHandle>,
) -> Rc<dyn IPlatformHandle>
fn create_native_control_core( this: &Self, parent: Rc<dyn IPlatformHandle>, ) -> Rc<dyn IPlatformHandle>
Creates the native control as a child of parent. The default
asks the native control host of the platform for its default
child.
Sourcefn destroy_native_control_core(this: &Self, control: Rc<dyn IPlatformHandle>)
fn destroy_native_control_core(this: &Self, control: Rc<dyn IPlatformHandle>)
Destroys the native control. The default destroys a handle that can be destroyed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".