CIPlugInRegistration

Trait CIPlugInRegistration 

Source
pub unsafe trait CIPlugInRegistration {
    // Provided method
    unsafe fn load(&self, host: *mut c_void) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature CIPlugInInterface only.
Expand description

This protocol defines the calls made by the host to the CIPlugIn when initializing it

The principal class of a CIPlugIn must support the CIPlugInRegistration protocol

See also Apple’s documentation

Provided Methods§

Source

unsafe fn load(&self, host: *mut c_void) -> bool
where Self: Sized + Message,

the plugin gets a chance to do custom initialization (like registration check ) here

Load gets called once by the host when the first filter from the plug-in gets instantiated. Return of true means that the plugIn successfully initialized

Parameter host: for future use only

§Safety

host must be a valid pointer.

Trait Implementations§

Source§

impl ProtocolType for dyn CIPlugInRegistration

Source§

const NAME: &'static str = "CIPlugInRegistration"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CIPlugInRegistration

Implementations on Foreign Types§

Source§

impl<T> CIPlugInRegistration for ProtocolObject<T>

Implementors§