Skip to main content

NativeControlHostImpl

Trait NativeControlHostImpl 

Source
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§

Source

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.

Source

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".

Implementors§