objc2_ui_kit/generated/
UIHoverGestureRecognizer.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-foundation")]
6use objc2_core_foundation::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(UIGestureRecognizer, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "UIGestureRecognizer")]
16 pub struct UIHoverGestureRecognizer;
17);
18
19#[cfg(feature = "UIGestureRecognizer")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for UIHoverGestureRecognizer {}
22);
23
24#[cfg(feature = "UIGestureRecognizer")]
25impl UIHoverGestureRecognizer {
26 extern_methods!(
27 #[cfg(feature = "objc2-core-foundation")]
28 #[unsafe(method(zOffset))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn zOffset(&self) -> CGFloat;
34
35 #[cfg(all(
36 feature = "UIResponder",
37 feature = "UIView",
38 feature = "objc2-core-foundation"
39 ))]
40 #[unsafe(method(azimuthAngleInView:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn azimuthAngleInView(&self, view: Option<&UIView>) -> CGFloat;
45
46 #[cfg(all(
47 feature = "UIResponder",
48 feature = "UIView",
49 feature = "objc2-core-foundation"
50 ))]
51 #[unsafe(method(azimuthUnitVectorInView:))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn azimuthUnitVectorInView(&self, view: Option<&UIView>) -> CGVector;
56
57 #[cfg(feature = "objc2-core-foundation")]
58 #[unsafe(method(altitudeAngle))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn altitudeAngle(&self) -> CGFloat;
62
63 #[cfg(feature = "objc2-core-foundation")]
64 #[unsafe(method(rollAngle))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn rollAngle(&self) -> CGFloat;
67 );
68}
69
70#[cfg(feature = "UIGestureRecognizer")]
72impl UIHoverGestureRecognizer {
73 extern_methods!(
74 #[unsafe(method(initWithTarget:action:))]
75 #[unsafe(method_family = init)]
76 pub unsafe fn initWithTarget_action(
77 this: Allocated<Self>,
78 target: Option<&AnyObject>,
79 action: Option<Sel>,
80 ) -> Retained<Self>;
81
82 #[unsafe(method(init))]
83 #[unsafe(method_family = init)]
84 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
85
86 #[unsafe(method(initWithCoder:))]
87 #[unsafe(method_family = init)]
88 pub unsafe fn initWithCoder(
89 this: Allocated<Self>,
90 coder: &NSCoder,
91 ) -> Option<Retained<Self>>;
92 );
93}
94
95#[cfg(feature = "UIGestureRecognizer")]
97impl UIHoverGestureRecognizer {
98 extern_methods!(
99 #[unsafe(method(new))]
100 #[unsafe(method_family = new)]
101 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
102 );
103}