Skip to main content

IFrnNativeControlHostTopLevelAttachmentImpl

Trait IFrnNativeControlHostTopLevelAttachmentImpl 

Source
pub trait IFrnNativeControlHostTopLevelAttachmentImpl: IUnknownImpl {
    // Required methods
    fn get_parent_handle(&self) -> *mut c_void;
    fn initialize_with_child_handle(
        &self,
        child: *mut c_void,
    ) -> Result<(), HResult>;
    fn attach_to(
        &self,
        host: Option<&IFrnNativeControlHost>,
    ) -> Result<(), HResult>;
    fn show_in_bounds(&self, x: f32, y: f32, width: f32, height: f32);
    fn hide_with_size(&self, width: f32, height: f32);
    fn release_child(&self);
}
Expand description

Implement this to provide IFrnNativeControlHostTopLevelAttachment to native code (see IFrnNativeControlHostTopLevelAttachment::from_impl).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: IFrnNativeControlHostTopLevelAttachmentImpl + ?Sized> IFrnNativeControlHostTopLevelAttachmentImpl for Box<T>

Source§

impl<T: IFrnNativeControlHostTopLevelAttachmentImpl + ?Sized> IFrnNativeControlHostTopLevelAttachmentImpl for Rc<T>

Implementors§