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:))]
107 #[unsafe(method_family = init)]
108 pub unsafe fn initWithCoder(
109 this: Allocated<Self>,
110 a_decoder: &NSCoder,
111 ) -> Option<Retained<Self>>;
112
113 #[unsafe(method(node))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn node(mtm: MainThreadMarker) -> Retained<Self>;
116
117 #[unsafe(method(nodeWithFileNamed:))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn nodeWithFileNamed(
120 filename: &NSString,
121 mtm: MainThreadMarker,
122 ) -> Option<Retained<Self>>;
123
124 #[unsafe(method(nodeWithFileNamed:securelyWithClasses:andError:_))]
128 #[unsafe(method_family = none)]
129 pub unsafe fn nodeWithFileNamed_securelyWithClasses_andError(
130 filename: &NSString,
131 classes: &NSSet<AnyClass>,
132 mtm: MainThreadMarker,
133 ) -> Result<Retained<Self>, Retained<NSError>>;
134 );
135}
136
137#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
139#[cfg(target_os = "macos")]
140impl SKCameraNode {
141 extern_methods!(
142 #[unsafe(method(new))]
143 #[unsafe(method_family = new)]
144 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
145 );
146}