objc2_quartz_core/generated/
CARemoteLayerServer.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/caremotelayerserver?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct CARemoteLayerServer;
13);
14
15extern_conformance!(
16    unsafe impl NSObjectProtocol for CARemoteLayerServer {}
17);
18
19impl CARemoteLayerServer {
20    extern_methods!(
21        #[unsafe(method(sharedServer))]
22        #[unsafe(method_family = none)]
23        pub unsafe fn sharedServer() -> Retained<CARemoteLayerServer>;
24
25        #[cfg(feature = "libc")]
26        #[unsafe(method(serverPort))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn serverPort(&self) -> libc::mach_port_t;
29    );
30}
31
32/// Methods declared on superclass `NSObject`.
33impl CARemoteLayerServer {
34    extern_methods!(
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new() -> Retained<Self>;
42    );
43}
44
45/// CARemoteLayerServer.
46#[cfg(feature = "CALayer")]
47impl CALayer {
48    extern_methods!(
49        #[unsafe(method(layerWithRemoteClientId:))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn layerWithRemoteClientId(client_id: u32) -> Retained<CALayer>;
52    );
53}