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
16extern_conformance!(
17    unsafe impl NSObjectProtocol for UIWindowSceneDragInteraction {}
18);
19
20#[cfg(feature = "UIInteraction")]
21extern_conformance!(
22    unsafe impl UIInteraction for UIWindowSceneDragInteraction {}
23);
24
25impl UIWindowSceneDragInteraction {
26    extern_methods!(
27        #[cfg(feature = "UIGestureRecognizer")]
28        /// Use this to set up failure relationships with other gesture recognizers that may conflict.
29        /// Note that this is only available on platforms where gesture recognizers are used for window dragging.
30        #[unsafe(method(gestureForFailureRelationships))]
31        #[unsafe(method_family = none)]
32        pub fn gestureForFailureRelationships(&self) -> Retained<UIGestureRecognizer>;
33    );
34}
35
36/// Methods declared on superclass `NSObject`.
37impl UIWindowSceneDragInteraction {
38    extern_methods!(
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[unsafe(method(new))]
44        #[unsafe(method_family = new)]
45        pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
46    );
47}