objc2_ar_kit/generated/
ARPlaneDetectionTypes.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3#[cfg(feature = "objc2")]
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8/// Option set indicating the type of planes to detect.
9///
10/// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/arplanedetection?language=objc)
11// NS_OPTIONS
12#[cfg(feature = "objc2")]
13#[repr(transparent)]
14#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
15pub struct ARPlaneDetection(pub NSUInteger);
16#[cfg(feature = "objc2")]
17bitflags::bitflags! {
18    impl ARPlaneDetection: NSUInteger {
19/// No plane detection is run.
20        #[doc(alias = "ARPlaneDetectionNone")]
21        const None = 0;
22/// Plane detection determines horizontal planes in the scene.
23        #[doc(alias = "ARPlaneDetectionHorizontal")]
24        const Horizontal = 1<<0;
25/// Plane detection determines vertical planes in the scene.
26        #[doc(alias = "ARPlaneDetectionVertical")]
27        const Vertical = 1<<1;
28    }
29}
30
31#[cfg(feature = "objc2")]
32unsafe impl Encode for ARPlaneDetection {
33    const ENCODING: Encoding = NSUInteger::ENCODING;
34}
35
36#[cfg(feature = "objc2")]
37unsafe impl RefEncode for ARPlaneDetection {
38    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
39}