use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIPanGestureRecognizer, UIGestureRecognizer, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
pub struct UIScreenEdgePanGestureRecognizer;
);
#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
extern_conformance!(
unsafe impl NSObjectProtocol for UIScreenEdgePanGestureRecognizer {}
);
#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
impl UIScreenEdgePanGestureRecognizer {
extern_methods!(
#[cfg(feature = "UIGeometry")]
#[unsafe(method(edges))]
#[unsafe(method_family = none)]
pub fn edges(&self) -> UIRectEdge;
#[cfg(feature = "UIGeometry")]
#[unsafe(method(setEdges:))]
#[unsafe(method_family = none)]
pub fn setEdges(&self, edges: UIRectEdge);
);
}
#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
impl UIScreenEdgePanGestureRecognizer {
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(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
impl UIScreenEdgePanGestureRecognizer {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}