objc2_map_kit/generated/
MKMultiPolygon.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(MKShape, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "MKShape")]
14 pub struct MKMultiPolygon;
15);
16
17#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
18unsafe impl MKAnnotation for MKMultiPolygon {}
19
20#[cfg(all(feature = "MKAnnotation", feature = "MKOverlay", feature = "MKShape"))]
21unsafe impl MKOverlay for MKMultiPolygon {}
22
23#[cfg(feature = "MKShape")]
24unsafe impl NSObjectProtocol for MKMultiPolygon {}
25
26#[cfg(feature = "MKShape")]
27impl MKMultiPolygon {
28 extern_methods!(
29 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
30 #[unsafe(method(initWithPolygons:))]
31 #[unsafe(method_family = init)]
32 pub unsafe fn initWithPolygons(
33 this: Allocated<Self>,
34 polygons: &NSArray<MKPolygon>,
35 ) -> Retained<Self>;
36
37 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
38 #[unsafe(method(polygons))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn polygons(&self) -> Retained<NSArray<MKPolygon>>;
41 );
42}
43
44#[cfg(feature = "MKShape")]
46impl MKMultiPolygon {
47 extern_methods!(
48 #[unsafe(method(init))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51
52 #[unsafe(method(new))]
53 #[unsafe(method_family = new)]
54 pub unsafe fn new() -> Retained<Self>;
55 );
56}