objc2_map_kit/generated/
MKMultiPolyline.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/mkmultipolyline?language=objc)
11    #[unsafe(super(MKShape, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "MKShape")]
14    pub struct MKMultiPolyline;
15);
16
17#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
18unsafe impl MKAnnotation for MKMultiPolyline {}
19
20#[cfg(all(feature = "MKAnnotation", feature = "MKOverlay", feature = "MKShape"))]
21unsafe impl MKOverlay for MKMultiPolyline {}
22
23#[cfg(feature = "MKShape")]
24unsafe impl NSObjectProtocol for MKMultiPolyline {}
25
26#[cfg(feature = "MKShape")]
27impl MKMultiPolyline {
28    extern_methods!(
29        #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline"))]
30        #[unsafe(method(initWithPolylines:))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn initWithPolylines(
33            this: Allocated<Self>,
34            polylines: &NSArray<MKPolyline>,
35        ) -> Retained<Self>;
36
37        #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline"))]
38        #[unsafe(method(polylines))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn polylines(&self) -> Retained<NSArray<MKPolyline>>;
41    );
42}
43
44/// Methods declared on superclass `NSObject`.
45#[cfg(feature = "MKShape")]
46impl MKMultiPolyline {
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}