objc2_sprite_kit/generated/
SKCameraNode.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(SKNode, NSResponder, NSObject))]
33 #[derive(Debug, PartialEq, Eq, Hash)]
34 #[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
35 #[cfg(target_os = "macos")]
36 pub struct SKCameraNode;
37);
38
39#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
40#[cfg(target_os = "macos")]
41extern_conformance!(
42 unsafe impl NSCoding for SKCameraNode {}
43);
44
45#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
46#[cfg(target_os = "macos")]
47extern_conformance!(
48 unsafe impl NSCopying for SKCameraNode {}
49);
50
51#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
52#[cfg(target_os = "macos")]
53unsafe impl CopyingHelper for SKCameraNode {
54 type Result = Self;
55}
56
57#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
58#[cfg(target_os = "macos")]
59extern_conformance!(
60 unsafe impl NSObjectProtocol for SKCameraNode {}
61);
62
63#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
64#[cfg(target_os = "macos")]
65extern_conformance!(
66 unsafe impl NSSecureCoding for SKCameraNode {}
67);
68
69#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
70#[cfg(target_os = "macos")]
71impl SKCameraNode {
72 extern_methods!(
73 #[unsafe(method(containsNode:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn containsNode(&self, node: &SKNode) -> bool;
82
83 #[unsafe(method(containedNodeSet))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn containedNodeSet(&self) -> Retained<NSSet<SKNode>>;
89 );
90}
91
92#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
94#[cfg(target_os = "macos")]
95impl SKCameraNode {
96 extern_methods!(
97 #[unsafe(method(init))]
98 #[unsafe(method_family = init)]
99 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
100
101 #[unsafe(method(initWithCoder:))]
103 #[unsafe(method_family = init)]
104 pub unsafe fn initWithCoder(
105 this: Allocated<Self>,
106 a_decoder: &NSCoder,
107 ) -> Option<Retained<Self>>;
108
109 #[unsafe(method(node))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn node(mtm: MainThreadMarker) -> Retained<Self>;
112
113 #[unsafe(method(nodeWithFileNamed:))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn nodeWithFileNamed(
116 filename: &NSString,
117 mtm: MainThreadMarker,
118 ) -> Option<Retained<Self>>;
119
120 #[unsafe(method(nodeWithFileNamed:securelyWithClasses:andError:_))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn nodeWithFileNamed_securelyWithClasses_andError(
123 filename: &NSString,
124 classes: &NSSet<AnyClass>,
125 mtm: MainThreadMarker,
126 ) -> Result<Retained<Self>, Retained<NSError>>;
127 );
128}
129
130#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
132#[cfg(target_os = "macos")]
133impl SKCameraNode {
134 extern_methods!(
135 #[unsafe(method(new))]
136 #[unsafe(method_family = new)]
137 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
138 );
139}