CALayerDelegate

Trait CALayerDelegate 

Source
pub unsafe trait CALayerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn displayLayer(&self, layer: &CALayer)
       where Self: Sized + Message { ... }
    unsafe fn drawLayer_inContext(&self, layer: &CALayer, ctx: &CGContext)
       where Self: Sized + Message { ... }
    unsafe fn layerWillDraw(&self, layer: &CALayer)
       where Self: Sized + Message { ... }
    unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
       where Self: Sized + Message { ... }
    unsafe fn actionForLayer_forKey(
        &self,
        layer: &CALayer,
        event: &NSString,
    ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
       where Self: Sized + Message { ... }
}
Available on crate feature CALayer only.
Expand description

Delegate methods. *

See also Apple’s documentation

Provided Methods§

Source

unsafe fn displayLayer(&self, layer: &CALayer)
where Self: Sized + Message,

Source

unsafe fn drawLayer_inContext(&self, layer: &CALayer, ctx: &CGContext)
where Self: Sized + Message,

Available on crate feature objc2-core-graphics only.
Source

unsafe fn layerWillDraw(&self, layer: &CALayer)
where Self: Sized + Message,

Source

unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
where Self: Sized + Message,

Source

unsafe fn actionForLayer_forKey( &self, layer: &CALayer, event: &NSString, ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn CALayerDelegate

Source§

const NAME: &'static str = "CALayerDelegate"

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 CALayerDelegate

Implementations on Foreign Types§

Source§

impl<T> CALayerDelegate for ProtocolObject<T>
where T: ?Sized + CALayerDelegate,

Implementors§