use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIStoryboardSegue, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIStoryboardSegue")]
#[deprecated = "Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"]
pub struct UIStoryboardPopoverSegue;
);
#[cfg(feature = "UIStoryboardSegue")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIStoryboardPopoverSegue {}
);
#[cfg(feature = "UIStoryboardSegue")]
impl UIStoryboardPopoverSegue {
extern_methods!(
#[cfg(feature = "UIPopoverController")]
#[deprecated = "Access destinationViewController.popoverPresentationController from your segue's performHandler or override of -perform"]
#[unsafe(method(popoverController))]
#[unsafe(method_family = none)]
pub fn popoverController(&self) -> Retained<UIPopoverController>;
);
}
#[cfg(feature = "UIStoryboardSegue")]
impl UIStoryboardPopoverSegue {
extern_methods!(
#[cfg(all(
feature = "UIResponder",
feature = "UIViewController",
feature = "block2"
))]
#[unsafe(method(segueWithIdentifier:source:destination:performHandler:))]
#[unsafe(method_family = none)]
pub fn segueWithIdentifier_source_destination_performHandler(
identifier: Option<&NSString>,
source: &UIViewController,
destination: &UIViewController,
perform_handler: &block2::DynBlock<dyn Fn()>,
) -> Retained<Self>;
#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
#[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
#[unsafe(method(initWithIdentifier:source:destination:))]
#[unsafe(method_family = init)]
pub fn initWithIdentifier_source_destination(
this: Allocated<Self>,
identifier: Option<&NSString>,
source: &UIViewController,
destination: &UIViewController,
) -> Retained<Self>;
#[deprecated = "Loading Interface Builder products will not be supported in a future version of visionOS."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "UIStoryboardSegue")]
impl UIStoryboardPopoverSegue {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}