objc2_ui_kit/generated/
UIGestureRecognizerSubclass.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10/// UIGestureRecognizerProtected.
11#[cfg(feature = "UIGestureRecognizer")]
12impl UIGestureRecognizer {
13    extern_methods!(
14        /// Setter for [`state`][Self::state].
15        #[unsafe(method(setState:))]
16        #[unsafe(method_family = none)]
17        pub unsafe fn setState(&self, state: UIGestureRecognizerState);
18
19        #[cfg(all(feature = "UIEvent", feature = "UITouch"))]
20        #[unsafe(method(ignoreTouch:forEvent:))]
21        #[unsafe(method_family = none)]
22        pub unsafe fn ignoreTouch_forEvent(&self, touch: &UITouch, event: &UIEvent);
23
24        #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
25        #[unsafe(method(ignorePress:forEvent:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn ignorePress_forEvent(&self, button: &UIPress, event: &UIPressesEvent);
28
29        #[unsafe(method(reset))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn reset(&self);
32
33        #[unsafe(method(canPreventGestureRecognizer:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn canPreventGestureRecognizer(
36            &self,
37            prevented_gesture_recognizer: &UIGestureRecognizer,
38        ) -> bool;
39
40        #[unsafe(method(canBePreventedByGestureRecognizer:))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn canBePreventedByGestureRecognizer(
43            &self,
44            preventing_gesture_recognizer: &UIGestureRecognizer,
45        ) -> bool;
46
47        #[unsafe(method(shouldRequireFailureOfGestureRecognizer:))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn shouldRequireFailureOfGestureRecognizer(
50            &self,
51            other_gesture_recognizer: &UIGestureRecognizer,
52        ) -> bool;
53
54        #[unsafe(method(shouldBeRequiredToFailByGestureRecognizer:))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn shouldBeRequiredToFailByGestureRecognizer(
57            &self,
58            other_gesture_recognizer: &UIGestureRecognizer,
59        ) -> bool;
60
61        #[cfg(feature = "UIEvent")]
62        #[unsafe(method(shouldReceiveEvent:))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn shouldReceiveEvent(&self, event: &UIEvent) -> bool;
65
66        #[cfg(all(feature = "UIEvent", feature = "UITouch"))]
67        #[unsafe(method(touchesBegan:withEvent:))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn touchesBegan_withEvent(&self, touches: &NSSet<UITouch>, event: &UIEvent);
70
71        #[cfg(all(feature = "UIEvent", feature = "UITouch"))]
72        #[unsafe(method(touchesMoved:withEvent:))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn touchesMoved_withEvent(&self, touches: &NSSet<UITouch>, event: &UIEvent);
75
76        #[cfg(all(feature = "UIEvent", feature = "UITouch"))]
77        #[unsafe(method(touchesEnded:withEvent:))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn touchesEnded_withEvent(&self, touches: &NSSet<UITouch>, event: &UIEvent);
80
81        #[cfg(all(feature = "UIEvent", feature = "UITouch"))]
82        #[unsafe(method(touchesCancelled:withEvent:))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn touchesCancelled_withEvent(&self, touches: &NSSet<UITouch>, event: &UIEvent);
85
86        #[cfg(feature = "UITouch")]
87        #[unsafe(method(touchesEstimatedPropertiesUpdated:))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>);
90
91        #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
92        #[unsafe(method(pressesBegan:withEvent:))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn pressesBegan_withEvent(
95            &self,
96            presses: &NSSet<UIPress>,
97            event: &UIPressesEvent,
98        );
99
100        #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
101        #[unsafe(method(pressesChanged:withEvent:))]
102        #[unsafe(method_family = none)]
103        pub unsafe fn pressesChanged_withEvent(
104            &self,
105            presses: &NSSet<UIPress>,
106            event: &UIPressesEvent,
107        );
108
109        #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
110        #[unsafe(method(pressesEnded:withEvent:))]
111        #[unsafe(method_family = none)]
112        pub unsafe fn pressesEnded_withEvent(
113            &self,
114            presses: &NSSet<UIPress>,
115            event: &UIPressesEvent,
116        );
117
118        #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
119        #[unsafe(method(pressesCancelled:withEvent:))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn pressesCancelled_withEvent(
122            &self,
123            presses: &NSSet<UIPress>,
124            event: &UIPressesEvent,
125        );
126    );
127}