objc2_ui_kit/generated/
UIWindowSceneReplacePlacement.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(UIWindowScenePlacement, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "UIWindowScenePlacement")]
19 #[deprecated = "UIWindowSceneReplacePlacement has been replaced with UIWindowScenePushPlacement"]
20 pub struct UIWindowSceneReplacePlacement;
21);
22
23#[cfg(feature = "UIWindowScenePlacement")]
24extern_conformance!(
25 unsafe impl NSCopying for UIWindowSceneReplacePlacement {}
26);
27
28#[cfg(feature = "UIWindowScenePlacement")]
29unsafe impl CopyingHelper for UIWindowSceneReplacePlacement {
30 type Result = Self;
31}
32
33#[cfg(feature = "UIWindowScenePlacement")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for UIWindowSceneReplacePlacement {}
36);
37
38#[cfg(feature = "UIWindowScenePlacement")]
39impl UIWindowSceneReplacePlacement {
40 extern_methods!(
41 #[cfg(feature = "UISceneSession")]
42 #[deprecated = "UIWindowSceneReplacePlacement has been replaced with UIWindowScenePushPlacement"]
45 #[unsafe(method(placementToReplaceSceneSession:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn placementToReplaceSceneSession(
48 scene_session: &UISceneSession,
49 ) -> Retained<Self>;
50 );
51}
52
53#[cfg(feature = "UIWindowScenePlacement")]
55impl UIWindowSceneReplacePlacement {
56 extern_methods!(
57 #[unsafe(method(init))]
58 #[unsafe(method_family = init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61 #[unsafe(method(new))]
62 #[unsafe(method_family = new)]
63 pub unsafe fn new() -> Retained<Self>;
64 );
65}