1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UISceneActivationState(pub NSInteger);
impl UISceneActivationState {
    #[doc(alias = "UISceneActivationStateUnattached")]
    pub const Unattached: Self = Self(-1);
    #[doc(alias = "UISceneActivationStateForegroundActive")]
    pub const ForegroundActive: Self = Self(0);
    #[doc(alias = "UISceneActivationStateForegroundInactive")]
    pub const ForegroundInactive: Self = Self(1);
    #[doc(alias = "UISceneActivationStateBackground")]
    pub const Background: Self = Self(2);
}

unsafe impl Encode for UISceneActivationState {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UISceneActivationState {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UISceneCaptureState(pub NSInteger);
impl UISceneCaptureState {
    #[doc(alias = "UISceneCaptureStateUnspecified")]
    pub const Unspecified: Self = Self(-1);
    #[doc(alias = "UISceneCaptureStateInactive")]
    pub const Inactive: Self = Self(0);
    #[doc(alias = "UISceneCaptureStateActive")]
    pub const Active: Self = Self(1);
}

unsafe impl Encode for UISceneCaptureState {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UISceneCaptureState {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_TYPED_ENUM
pub type UISceneSessionRole = NSString;

extern "C" {
    pub static UISceneErrorDomain: Option<&'static NSErrorDomain>;
}

// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UISceneErrorCode(pub NSInteger);
impl UISceneErrorCode {
    #[doc(alias = "UISceneErrorCodeMultipleScenesNotSupported")]
    pub const MultipleScenesNotSupported: Self = Self(0);
    #[doc(alias = "UISceneErrorCodeRequestDenied")]
    pub const RequestDenied: Self = Self(1);
    #[doc(alias = "UISceneErrorCodeGeometryRequestUnsupported")]
    pub const GeometryRequestUnsupported: Self = Self(100);
    #[doc(alias = "UISceneErrorCodeGeometryRequestDenied")]
    pub const GeometryRequestDenied: Self = Self(101);
}

unsafe impl Encode for UISceneErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UISceneErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}