use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(MKShape, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MKShape")]
pub struct MKMultiPoint;
);
#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
extern_conformance!(
unsafe impl MKAnnotation for MKMultiPoint {}
);
#[cfg(feature = "MKShape")]
extern_conformance!(
unsafe impl NSObjectProtocol for MKMultiPoint {}
);
#[cfg(feature = "MKShape")]
impl MKMultiPoint {
extern_methods!(
#[cfg(feature = "MKGeometry")]
#[unsafe(method(points))]
#[unsafe(method_family = none)]
pub unsafe fn points(&self) -> NonNull<MKMapPoint>;
#[unsafe(method(pointCount))]
#[unsafe(method_family = none)]
pub unsafe fn pointCount(&self) -> NSUInteger;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(getCoordinates:range:))]
#[unsafe(method_family = none)]
pub unsafe fn getCoordinates_range(
&self,
coords: NonNull<CLLocationCoordinate2D>,
range: NSRange,
);
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(locationAtPointIndex:))]
#[unsafe(method_family = none)]
pub unsafe fn locationAtPointIndex(&self, index: NSUInteger) -> CGFloat;
#[unsafe(method(locationsAtPointIndexes:))]
#[unsafe(method_family = none)]
pub unsafe fn locationsAtPointIndexes(
&self,
indexes: &NSIndexSet,
) -> Retained<NSArray<NSNumber>>;
);
}
#[cfg(feature = "MKShape")]
impl MKMultiPoint {
extern_methods!(
#[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() -> Retained<Self>;
);
}