//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uistoryboardpopoversegue?language=objc)
    #[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>;
    );
}

/// Methods declared on superclass `UIStoryboardSegue`.
#[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>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "UIStoryboardSegue")]
impl UIStoryboardPopoverSegue {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}
