use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-scene-kit")]
use objc2_scene_kit::*;
use crate::*;
extern_class!(
#[unsafe(super(GKComponent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "GKComponent")]
pub struct GKSCNNodeComponent;
);
#[cfg(all(feature = "GKAgent", feature = "GKComponent"))]
extern_conformance!(
unsafe impl GKAgentDelegate for GKSCNNodeComponent {}
);
#[cfg(feature = "GKComponent")]
extern_conformance!(
unsafe impl NSCoding for GKSCNNodeComponent {}
);
#[cfg(feature = "GKComponent")]
extern_conformance!(
unsafe impl NSCopying for GKSCNNodeComponent {}
);
#[cfg(feature = "GKComponent")]
unsafe impl CopyingHelper for GKSCNNodeComponent {
type Result = Self;
}
#[cfg(feature = "GKComponent")]
extern_conformance!(
unsafe impl NSObjectProtocol for GKSCNNodeComponent {}
);
#[cfg(feature = "GKComponent")]
extern_conformance!(
unsafe impl NSSecureCoding for GKSCNNodeComponent {}
);
#[cfg(feature = "GKComponent")]
impl GKSCNNodeComponent {
extern_methods!(
#[cfg(feature = "objc2-scene-kit")]
#[unsafe(method(componentWithNode:))]
#[unsafe(method_family = none)]
pub unsafe fn componentWithNode(node: &SCNNode) -> Retained<Self>;
#[cfg(feature = "objc2-scene-kit")]
#[unsafe(method(initWithNode:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNode(this: Allocated<Self>, node: &SCNNode) -> Retained<Self>;
#[cfg(feature = "objc2-scene-kit")]
#[unsafe(method(node))]
#[unsafe(method_family = none)]
pub unsafe fn node(&self) -> Retained<SCNNode>;
);
}
#[cfg(feature = "GKComponent")]
impl GKSCNNodeComponent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}