use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CARemoteLayerClient;
unsafe impl ClassType for CARemoteLayerClient {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CARemoteLayerClient {}
extern_methods!(
unsafe impl CARemoteLayerClient {
#[method(invalidate)]
pub unsafe fn invalidate(&self);
#[method(clientId)]
pub unsafe fn clientId(&self) -> u32;
#[cfg(feature = "CALayer")]
#[method_id(@__retain_semantics Other layer)]
pub unsafe fn layer(&self) -> Option<Retained<CALayer>>;
#[cfg(feature = "CALayer")]
#[method(setLayer:)]
pub unsafe fn setLayer(&self, layer: Option<&CALayer>);
}
);
extern_methods!(
unsafe impl CARemoteLayerClient {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);