objc2_ui_kit/generated/
UIStoryboardPopoverSegue.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(UIStoryboardSegue, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "UIStoryboardSegue")]
16 #[deprecated = "Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"]
17 pub struct UIStoryboardPopoverSegue;
18);
19
20#[cfg(feature = "UIStoryboardSegue")]
21unsafe impl NSObjectProtocol for UIStoryboardPopoverSegue {}
22
23#[cfg(feature = "UIStoryboardSegue")]
24impl UIStoryboardPopoverSegue {
25 extern_methods!(
26 #[cfg(feature = "UIPopoverController")]
27 #[deprecated = "Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"]
28 #[unsafe(method(popoverController))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn popoverController(&self) -> Retained<UIPopoverController>;
31 );
32}
33
34#[cfg(feature = "UIStoryboardSegue")]
36impl UIStoryboardPopoverSegue {
37 extern_methods!(
38 #[cfg(all(
39 feature = "UIResponder",
40 feature = "UIViewController",
41 feature = "block2"
42 ))]
43 #[unsafe(method(segueWithIdentifier:source:destination:performHandler:))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn segueWithIdentifier_source_destination_performHandler(
46 identifier: Option<&NSString>,
47 source: &UIViewController,
48 destination: &UIViewController,
49 perform_handler: &block2::Block<dyn Fn()>,
50 ) -> Retained<Self>;
51
52 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
53 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
54 #[unsafe(method(initWithIdentifier:source:destination:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithIdentifier_source_destination(
57 this: Allocated<Self>,
58 identifier: Option<&NSString>,
59 source: &UIViewController,
60 destination: &UIViewController,
61 ) -> Retained<Self>;
62
63 #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
64 #[unsafe(method(init))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
67 );
68}
69
70#[cfg(feature = "UIStoryboardSegue")]
72impl UIStoryboardPopoverSegue {
73 extern_methods!(
74 #[unsafe(method(new))]
75 #[unsafe(method_family = new)]
76 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
77 );
78}