use core::ffi::*;
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(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIPointerRegion;
);
extern_conformance!(
unsafe impl NSCopying for UIPointerRegion {}
);
unsafe impl CopyingHelper for UIPointerRegion {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIPointerRegion {}
);
impl UIPointerRegion {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(rect))]
#[unsafe(method_family = none)]
pub fn rect(&self) -> CGRect;
#[unsafe(method(identifier))]
#[unsafe(method_family = none)]
pub fn identifier(&self) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>;
#[cfg(feature = "UIGeometry")]
#[unsafe(method(latchingAxes))]
#[unsafe(method_family = none)]
pub fn latchingAxes(&self) -> UIAxis;
#[cfg(feature = "UIGeometry")]
#[unsafe(method(setLatchingAxes:))]
#[unsafe(method_family = none)]
pub fn setLatchingAxes(&self, latching_axes: UIAxis);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(regionWithRect:identifier:))]
#[unsafe(method_family = none)]
pub unsafe fn regionWithRect_identifier(
rect: CGRect,
identifier: Option<&ProtocolObject<dyn NSObjectProtocol>>,
mtm: MainThreadMarker,
) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}