use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
use crate::*;
#[cfg(feature = "objc2")]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct ARRaycastTarget(pub NSInteger);
#[cfg(feature = "objc2")]
impl ARRaycastTarget {
#[doc(alias = "ARRaycastTargetExistingPlaneGeometry")]
pub const ExistingPlaneGeometry: Self = Self(0);
#[doc(alias = "ARRaycastTargetExistingPlaneInfinite")]
pub const ExistingPlaneInfinite: Self = Self(1);
#[doc(alias = "ARRaycastTargetEstimatedPlane")]
pub const EstimatedPlane: Self = Self(2);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ARRaycastTarget {
const ENCODING: Encoding = NSInteger::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ARRaycastTarget {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "objc2")]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct ARRaycastTargetAlignment(pub NSInteger);
#[cfg(feature = "objc2")]
impl ARRaycastTargetAlignment {
#[doc(alias = "ARRaycastTargetAlignmentHorizontal")]
pub const Horizontal: Self = Self(0);
#[doc(alias = "ARRaycastTargetAlignmentVertical")]
pub const Vertical: Self = Self(1);
#[doc(alias = "ARRaycastTargetAlignmentAny")]
pub const Any: Self = Self(2);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ARRaycastTargetAlignment {
const ENCODING: Encoding = NSInteger::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ARRaycastTargetAlignment {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "objc2")]
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "objc2")]
pub struct ARRaycastQuery;
);
#[cfg(feature = "objc2")]
extern_conformance!(
unsafe impl NSObjectProtocol for ARRaycastQuery {}
);
#[cfg(feature = "objc2")]
impl ARRaycastQuery {
extern_methods!(
#[unsafe(method(target))]
#[unsafe(method_family = none)]
pub unsafe fn target(&self) -> ARRaycastTarget;
#[unsafe(method(targetAlignment))]
#[unsafe(method_family = none)]
pub unsafe fn targetAlignment(&self) -> ARRaycastTargetAlignment;
#[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(&self) -> Retained<Self>;
);
}
#[cfg(feature = "objc2")]
impl ARRaycastQuery {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new_class() -> Retained<Self>;
);
}