objc2_ui_kit/generated/
UIPointerRegion.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[thread_kind = MainThreadOnly]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct UIPointerRegion;
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for UIPointerRegion {}
22);
23
24unsafe impl CopyingHelper for UIPointerRegion {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for UIPointerRegion {}
30);
31
32impl UIPointerRegion {
33 extern_methods!(
34 #[cfg(feature = "objc2-core-foundation")]
35 #[unsafe(method(rect))]
36 #[unsafe(method_family = none)]
37 pub fn rect(&self) -> CGRect;
38
39 #[unsafe(method(identifier))]
40 #[unsafe(method_family = none)]
41 pub fn identifier(&self) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>;
42
43 #[cfg(feature = "UIGeometry")]
44 #[unsafe(method(latchingAxes))]
47 #[unsafe(method_family = none)]
48 pub fn latchingAxes(&self) -> UIAxis;
49
50 #[cfg(feature = "UIGeometry")]
51 #[unsafe(method(setLatchingAxes:))]
53 #[unsafe(method_family = none)]
54 pub fn setLatchingAxes(&self, latching_axes: UIAxis);
55
56 #[cfg(feature = "objc2-core-foundation")]
57 #[unsafe(method(regionWithRect:identifier:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn regionWithRect_identifier(
70 rect: CGRect,
71 identifier: Option<&ProtocolObject<dyn NSObjectProtocol>>,
72 mtm: MainThreadMarker,
73 ) -> Retained<Self>;
74
75 #[unsafe(method(init))]
76 #[unsafe(method_family = init)]
77 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
78
79 #[unsafe(method(new))]
80 #[unsafe(method_family = new)]
81 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
82 );
83}