objc2_ui_kit/generated/
UISceneDefinitions.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8#[repr(transparent)]
11#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
12pub struct UISceneActivationState(pub NSInteger);
13impl UISceneActivationState {
14 #[doc(alias = "UISceneActivationStateUnattached")]
15 pub const Unattached: Self = Self(-1);
16 #[doc(alias = "UISceneActivationStateForegroundActive")]
17 pub const ForegroundActive: Self = Self(0);
18 #[doc(alias = "UISceneActivationStateForegroundInactive")]
19 pub const ForegroundInactive: Self = Self(1);
20 #[doc(alias = "UISceneActivationStateBackground")]
21 pub const Background: Self = Self(2);
22}
23
24unsafe impl Encode for UISceneActivationState {
25 const ENCODING: Encoding = NSInteger::ENCODING;
26}
27
28unsafe impl RefEncode for UISceneActivationState {
29 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
30}
31
32#[repr(transparent)]
35#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
36pub struct UISceneCaptureState(pub NSInteger);
37impl UISceneCaptureState {
38 #[doc(alias = "UISceneCaptureStateUnspecified")]
39 pub const Unspecified: Self = Self(-1);
40 #[doc(alias = "UISceneCaptureStateInactive")]
41 pub const Inactive: Self = Self(0);
42 #[doc(alias = "UISceneCaptureStateActive")]
43 pub const Active: Self = Self(1);
44}
45
46unsafe impl Encode for UISceneCaptureState {
47 const ENCODING: Encoding = NSInteger::ENCODING;
48}
49
50unsafe impl RefEncode for UISceneCaptureState {
51 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
52}
53
54pub type UISceneSessionRole = NSString;
57
58extern "C" {
59 pub static UISceneErrorDomain: Option<&'static NSErrorDomain>;
61}
62
63#[repr(transparent)]
66#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
67pub struct UISceneErrorCode(pub NSInteger);
68impl UISceneErrorCode {
69 #[doc(alias = "UISceneErrorCodeMultipleScenesNotSupported")]
70 pub const MultipleScenesNotSupported: Self = Self(0);
71 #[doc(alias = "UISceneErrorCodeRequestDenied")]
72 pub const RequestDenied: Self = Self(1);
73 #[doc(alias = "UISceneErrorCodeGeometryRequestUnsupported")]
74 pub const GeometryRequestUnsupported: Self = Self(100);
75 #[doc(alias = "UISceneErrorCodeGeometryRequestDenied")]
76 pub const GeometryRequestDenied: Self = Self(101);
77}
78
79unsafe impl Encode for UISceneErrorCode {
80 const ENCODING: Encoding = NSInteger::ENCODING;
81}
82
83unsafe impl RefEncode for UISceneErrorCode {
84 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
85}