use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIGestureRecognizer, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIGestureRecognizer")]
pub struct UIHoverGestureRecognizer;
);
#[cfg(feature = "UIGestureRecognizer")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIHoverGestureRecognizer {}
);
#[cfg(feature = "UIGestureRecognizer")]
impl UIHoverGestureRecognizer {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(zOffset))]
#[unsafe(method_family = none)]
pub fn zOffset(&self) -> CGFloat;
#[cfg(all(
feature = "UIResponder",
feature = "UIView",
feature = "objc2-core-foundation"
))]
#[unsafe(method(azimuthAngleInView:))]
#[unsafe(method_family = none)]
pub fn azimuthAngleInView(&self, view: Option<&UIView>) -> CGFloat;
#[cfg(all(
feature = "UIResponder",
feature = "UIView",
feature = "objc2-core-foundation"
))]
#[unsafe(method(azimuthUnitVectorInView:))]
#[unsafe(method_family = none)]
pub fn azimuthUnitVectorInView(&self, view: Option<&UIView>) -> CGVector;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(altitudeAngle))]
#[unsafe(method_family = none)]
pub fn altitudeAngle(&self) -> CGFloat;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(rollAngle))]
#[unsafe(method_family = none)]
pub fn rollAngle(&self) -> CGFloat;
);
}
#[cfg(feature = "UIGestureRecognizer")]
impl UIHoverGestureRecognizer {
extern_methods!(
#[unsafe(method(initWithTarget:action:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTarget_action(
this: Allocated<Self>,
target: Option<&AnyObject>,
action: Option<Sel>,
) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(feature = "UIGestureRecognizer")]
impl UIHoverGestureRecognizer {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}