objc2_ui_kit/generated/
UIScreenEdgePanGestureRecognizer.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(UIPanGestureRecognizer, UIGestureRecognizer, NSObject))]
16 #[thread_kind = MainThreadOnly]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
19 pub struct UIScreenEdgePanGestureRecognizer;
20);
21
22#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
23extern_conformance!(
24 unsafe impl NSObjectProtocol for UIScreenEdgePanGestureRecognizer {}
25);
26
27#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
28impl UIScreenEdgePanGestureRecognizer {
29 extern_methods!(
30 #[cfg(feature = "UIGeometry")]
31 #[unsafe(method(edges))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn edges(&self) -> UIRectEdge;
34
35 #[cfg(feature = "UIGeometry")]
36 #[unsafe(method(setEdges:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setEdges(&self, edges: UIRectEdge);
40 );
41}
42
43#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
45impl UIScreenEdgePanGestureRecognizer {
46 extern_methods!(
47 #[unsafe(method(initWithTarget:action:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithTarget_action(
50 this: Allocated<Self>,
51 target: Option<&AnyObject>,
52 action: Option<Sel>,
53 ) -> Retained<Self>;
54
55 #[unsafe(method(init))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59 #[unsafe(method(initWithCoder:))]
60 #[unsafe(method_family = init)]
61 pub unsafe fn initWithCoder(
62 this: Allocated<Self>,
63 coder: &NSCoder,
64 ) -> Option<Retained<Self>>;
65 );
66}
67
68#[cfg(all(feature = "UIGestureRecognizer", feature = "UIPanGestureRecognizer"))]
70impl UIScreenEdgePanGestureRecognizer {
71 extern_methods!(
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
75 );
76}