objc2_ui_kit/generated/
UIGestureRecognizerSubclass.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[cfg(feature = "UIGestureRecognizer")]
12impl UIGestureRecognizer {
13 extern_methods!(
14 #[unsafe(method(setState:))]
16 #[unsafe(method_family = none)]
17 pub 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 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 fn ignorePress_forEvent(&self, button: &UIPress, event: &UIPressesEvent);
28
29 #[unsafe(method(reset))]
30 #[unsafe(method_family = none)]
31 pub fn reset(&self);
32
33 #[unsafe(method(canPreventGestureRecognizer:))]
34 #[unsafe(method_family = none)]
35 pub fn canPreventGestureRecognizer(
36 &self,
37 prevented_gesture_recognizer: &UIGestureRecognizer,
38 ) -> bool;
39
40 #[unsafe(method(canBePreventedByGestureRecognizer:))]
41 #[unsafe(method_family = none)]
42 pub fn canBePreventedByGestureRecognizer(
43 &self,
44 preventing_gesture_recognizer: &UIGestureRecognizer,
45 ) -> bool;
46
47 #[unsafe(method(shouldRequireFailureOfGestureRecognizer:))]
48 #[unsafe(method_family = none)]
49 pub fn shouldRequireFailureOfGestureRecognizer(
50 &self,
51 other_gesture_recognizer: &UIGestureRecognizer,
52 ) -> bool;
53
54 #[unsafe(method(shouldBeRequiredToFailByGestureRecognizer:))]
55 #[unsafe(method_family = none)]
56 pub 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 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 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 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 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 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 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 fn pressesBegan_withEvent(&self, presses: &NSSet<UIPress>, event: &UIPressesEvent);
95
96 #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
97 #[unsafe(method(pressesChanged:withEvent:))]
98 #[unsafe(method_family = none)]
99 pub fn pressesChanged_withEvent(&self, presses: &NSSet<UIPress>, event: &UIPressesEvent);
100
101 #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
102 #[unsafe(method(pressesEnded:withEvent:))]
103 #[unsafe(method_family = none)]
104 pub fn pressesEnded_withEvent(&self, presses: &NSSet<UIPress>, event: &UIPressesEvent);
105
106 #[cfg(all(feature = "UIEvent", feature = "UIPress", feature = "UIPressesEvent"))]
107 #[unsafe(method(pressesCancelled:withEvent:))]
108 #[unsafe(method_family = none)]
109 pub fn pressesCancelled_withEvent(&self, presses: &NSSet<UIPress>, event: &UIPressesEvent);
110 );
111}