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(VNPoint, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VNGeometry")]
pub struct VNDetectedPoint;
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSCoding for VNDetectedPoint {}
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSCopying for VNDetectedPoint {}
);
#[cfg(feature = "VNGeometry")]
unsafe impl CopyingHelper for VNDetectedPoint {
type Result = Self;
}
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSObjectProtocol for VNDetectedPoint {}
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSSecureCoding for VNDetectedPoint {}
);
#[cfg(feature = "VNGeometry")]
impl VNDetectedPoint {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithX:y:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithX_y(
this: Allocated<Self>,
x: c_double,
y: c_double,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(initWithLocation:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithLocation(this: Allocated<Self>, location: CGPoint) -> Retained<Self>;
#[cfg(feature = "VNTypes")]
#[unsafe(method(confidence))]
#[unsafe(method_family = none)]
pub unsafe fn confidence(&self) -> VNConfidence;
);
}
extern_class!(
#[unsafe(super(VNDetectedPoint, VNPoint, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "VNGeometry")]
pub struct VNRecognizedPoint;
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSCoding for VNRecognizedPoint {}
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSCopying for VNRecognizedPoint {}
);
#[cfg(feature = "VNGeometry")]
unsafe impl CopyingHelper for VNRecognizedPoint {
type Result = Self;
}
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSObjectProtocol for VNRecognizedPoint {}
);
#[cfg(feature = "VNGeometry")]
extern_conformance!(
unsafe impl NSSecureCoding for VNRecognizedPoint {}
);
#[cfg(feature = "VNGeometry")]
impl VNRecognizedPoint {
extern_methods!(
#[cfg(feature = "VNTypes")]
#[unsafe(method(identifier))]
#[unsafe(method_family = none)]
pub unsafe fn identifier(&self) -> Retained<VNRecognizedPointKey>;
);
}
#[cfg(feature = "VNGeometry")]
impl VNRecognizedPoint {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithX:y:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithX_y(
this: Allocated<Self>,
x: c_double,
y: c_double,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(initWithLocation:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithLocation(this: Allocated<Self>, location: CGPoint) -> Retained<Self>;
);
}