objc2_ui_kit/generated/
UIWindowSceneStandardPlacement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// The default placement scene placement provided by the system.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiwindowscenestandardplacement?language=objc)
13    #[unsafe(super(UIWindowScenePlacement, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(feature = "UIWindowScenePlacement")]
16    pub struct UIWindowSceneStandardPlacement;
17);
18
19#[cfg(feature = "UIWindowScenePlacement")]
20unsafe impl NSCopying for UIWindowSceneStandardPlacement {}
21
22#[cfg(feature = "UIWindowScenePlacement")]
23unsafe impl CopyingHelper for UIWindowSceneStandardPlacement {
24    type Result = Self;
25}
26
27#[cfg(feature = "UIWindowScenePlacement")]
28unsafe impl NSObjectProtocol for UIWindowSceneStandardPlacement {}
29
30#[cfg(feature = "UIWindowScenePlacement")]
31impl UIWindowSceneStandardPlacement {
32    extern_methods!(
33        /// Creates a standard placement.
34        #[unsafe(method(standardPlacement))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn standardPlacement() -> Retained<Self>;
37    );
38}
39
40/// Methods declared on superclass `UIWindowScenePlacement`.
41#[cfg(feature = "UIWindowScenePlacement")]
42impl UIWindowSceneStandardPlacement {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51    );
52}