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")]
41unsafe impl NSCoding for SKCameraNode {}
42
43#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
44#[cfg(target_os = "macos")]
45unsafe impl NSCopying for SKCameraNode {}
46
47#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
48#[cfg(target_os = "macos")]
49unsafe impl CopyingHelper for SKCameraNode {
50 type Result = Self;
51}
52
53#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
54#[cfg(target_os = "macos")]
55unsafe impl NSObjectProtocol for SKCameraNode {}
56
57#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
58#[cfg(target_os = "macos")]
59unsafe impl NSSecureCoding for SKCameraNode {}
60
61#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
62#[cfg(target_os = "macos")]
63impl SKCameraNode {
64 extern_methods!(
65 #[unsafe(method(containsNode:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn containsNode(&self, node: &SKNode) -> bool;
74
75 #[unsafe(method(containedNodeSet))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn containedNodeSet(&self) -> Retained<NSSet<SKNode>>;
81 );
82}
83
84#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
86#[cfg(target_os = "macos")]
87impl SKCameraNode {
88 extern_methods!(
89 #[unsafe(method(init))]
90 #[unsafe(method_family = init)]
91 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
92
93 #[unsafe(method(initWithCoder:))]
95 #[unsafe(method_family = init)]
96 pub unsafe fn initWithCoder(
97 this: Allocated<Self>,
98 a_decoder: &NSCoder,
99 ) -> Option<Retained<Self>>;
100
101 #[unsafe(method(node))]
102 #[unsafe(method_family = none)]
103 pub unsafe fn node(mtm: MainThreadMarker) -> Retained<Self>;
104
105 #[unsafe(method(nodeWithFileNamed:))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn nodeWithFileNamed(
108 filename: &NSString,
109 mtm: MainThreadMarker,
110 ) -> Option<Retained<Self>>;
111
112 #[unsafe(method(nodeWithFileNamed:securelyWithClasses:andError:_))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn nodeWithFileNamed_securelyWithClasses_andError(
115 filename: &NSString,
116 classes: &NSSet<AnyClass>,
117 mtm: MainThreadMarker,
118 ) -> Result<Retained<Self>, Retained<NSError>>;
119 );
120}
121
122#[cfg(all(feature = "SKNode", feature = "objc2-app-kit"))]
124#[cfg(target_os = "macos")]
125impl SKCameraNode {
126 extern_methods!(
127 #[unsafe(method(new))]
128 #[unsafe(method_family = new)]
129 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
130 );
131}