use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(MKShape, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MKShape")]
pub struct MKMultiPolygon;
);
#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
extern_conformance!(
unsafe impl MKAnnotation for MKMultiPolygon {}
);
#[cfg(all(feature = "MKAnnotation", feature = "MKOverlay", feature = "MKShape"))]
extern_conformance!(
unsafe impl MKOverlay for MKMultiPolygon {}
);
#[cfg(feature = "MKShape")]
extern_conformance!(
unsafe impl NSObjectProtocol for MKMultiPolygon {}
);
#[cfg(feature = "MKShape")]
impl MKMultiPolygon {
extern_methods!(
#[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
#[unsafe(method(initWithPolygons:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithPolygons(
this: Allocated<Self>,
polygons: &NSArray<MKPolygon>,
) -> Retained<Self>;
#[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
#[unsafe(method(polygons))]
#[unsafe(method_family = none)]
pub unsafe fn polygons(&self) -> Retained<NSArray<MKPolygon>>;
);
}
#[cfg(feature = "MKShape")]
impl MKMultiPolygon {
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>;
);
}