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"))]
18extern_conformance!(
19 unsafe impl MKAnnotation for MKMultiPolygon {}
20);
21
22#[cfg(all(feature = "MKAnnotation", feature = "MKOverlay", feature = "MKShape"))]
23extern_conformance!(
24 unsafe impl MKOverlay for MKMultiPolygon {}
25);
26
27#[cfg(feature = "MKShape")]
28extern_conformance!(
29 unsafe impl NSObjectProtocol for MKMultiPolygon {}
30);
31
32#[cfg(feature = "MKShape")]
33impl MKMultiPolygon {
34 extern_methods!(
35 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
36 #[unsafe(method(initWithPolygons:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithPolygons(
39 this: Allocated<Self>,
40 polygons: &NSArray<MKPolygon>,
41 ) -> Retained<Self>;
42
43 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon"))]
44 #[unsafe(method(polygons))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn polygons(&self) -> Retained<NSArray<MKPolygon>>;
47 );
48}
49
50#[cfg(feature = "MKShape")]
52impl MKMultiPolygon {
53 extern_methods!(
54 #[unsafe(method(init))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
57
58 #[unsafe(method(new))]
59 #[unsafe(method_family = new)]
60 pub unsafe fn new() -> Retained<Self>;
61 );
62}