objc2_ui_kit/generated/
UIWindowSceneDragInteraction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiwindowscenedraginteraction?language=objc)
10    #[unsafe(super(NSObject))]
11    #[thread_kind = MainThreadOnly]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct UIWindowSceneDragInteraction;
14);
15
16unsafe impl NSObjectProtocol for UIWindowSceneDragInteraction {}
17
18#[cfg(feature = "UIInteraction")]
19unsafe impl UIInteraction for UIWindowSceneDragInteraction {}
20
21impl UIWindowSceneDragInteraction {
22    extern_methods!(
23        #[cfg(feature = "UIGestureRecognizer")]
24        /// Use this to set up failure relationships with other gesture recognizers that may conflict.
25        /// Note that this is only available on platforms where gesture recognizers are used for window dragging.
26        #[unsafe(method(gestureForFailureRelationships))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn gestureForFailureRelationships(&self) -> Retained<UIGestureRecognizer>;
29    );
30}
31
32/// Methods declared on superclass `NSObject`.
33impl UIWindowSceneDragInteraction {
34    extern_methods!(
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
42    );
43}