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

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiwindowscenedraginteraction?language=objc)
    #[unsafe(super(NSObject))]
    #[thread_kind = MainThreadOnly]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UIWindowSceneDragInteraction;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for UIWindowSceneDragInteraction {}
);

#[cfg(feature = "UIInteraction")]
extern_conformance!(
    unsafe impl UIInteraction for UIWindowSceneDragInteraction {}
);

impl UIWindowSceneDragInteraction {
    extern_methods!(
        #[cfg(feature = "UIGestureRecognizer")]
        /// Use this to set up failure relationships with other gesture recognizers that may conflict.
        /// Note that this is only available on platforms where gesture recognizers are used for window dragging.
        #[unsafe(method(gestureForFailureRelationships))]
        #[unsafe(method_family = none)]
        pub fn gestureForFailureRelationships(&self) -> Retained<UIGestureRecognizer>;
    );
}

/// Methods declared on superclass `NSObject`.
impl UIWindowSceneDragInteraction {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}
