objc2_map_kit/generated/
MKMultiPolygon.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkmultipolygon?language=objc)
11    #[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/// Methods declared on superclass `NSObject`.
51#[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}