objc2_ui_kit/generated/
UIStoryboardPopoverSegue.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uistoryboardpopoversegue?language=objc)
12    #[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")]
21extern_conformance!(
22    unsafe impl NSObjectProtocol for UIStoryboardPopoverSegue {}
23);
24
25#[cfg(feature = "UIStoryboardSegue")]
26impl UIStoryboardPopoverSegue {
27    extern_methods!(
28        #[cfg(feature = "UIPopoverController")]
29        #[deprecated = "Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"]
30        #[unsafe(method(popoverController))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn popoverController(&self) -> Retained<UIPopoverController>;
33    );
34}
35
36/// Methods declared on superclass `UIStoryboardSegue`.
37#[cfg(feature = "UIStoryboardSegue")]
38impl UIStoryboardPopoverSegue {
39    extern_methods!(
40        #[cfg(all(
41            feature = "UIResponder",
42            feature = "UIViewController",
43            feature = "block2"
44        ))]
45        #[unsafe(method(segueWithIdentifier:source:destination:performHandler:))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn segueWithIdentifier_source_destination_performHandler(
48            identifier: Option<&NSString>,
49            source: &UIViewController,
50            destination: &UIViewController,
51            perform_handler: &block2::DynBlock<dyn Fn()>,
52        ) -> Retained<Self>;
53
54        #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
55        #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
56        #[unsafe(method(initWithIdentifier:source:destination:))]
57        #[unsafe(method_family = init)]
58        pub unsafe fn initWithIdentifier_source_destination(
59            this: Allocated<Self>,
60            identifier: Option<&NSString>,
61            source: &UIViewController,
62            destination: &UIViewController,
63        ) -> Retained<Self>;
64
65        #[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
66        #[unsafe(method(init))]
67        #[unsafe(method_family = init)]
68        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69    );
70}
71
72/// Methods declared on superclass `NSObject`.
73#[cfg(feature = "UIStoryboardSegue")]
74impl UIStoryboardPopoverSegue {
75    extern_methods!(
76        #[unsafe(method(new))]
77        #[unsafe(method_family = new)]
78        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
79    );
80}