objc2_map_kit/generated/
MKGeodesicPolyline.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::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkgeodesicpolyline?language=objc)
12    #[unsafe(super(MKPolyline, MKMultiPoint, MKShape, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
15    pub struct MKGeodesicPolyline;
16);
17
18#[cfg(all(
19    feature = "MKAnnotation",
20    feature = "MKMultiPoint",
21    feature = "MKPolyline",
22    feature = "MKShape"
23))]
24extern_conformance!(
25    unsafe impl MKAnnotation for MKGeodesicPolyline {}
26);
27
28#[cfg(all(
29    feature = "MKAnnotation",
30    feature = "MKMultiPoint",
31    feature = "MKOverlay",
32    feature = "MKPolyline",
33    feature = "MKShape"
34))]
35extern_conformance!(
36    unsafe impl MKOverlay for MKGeodesicPolyline {}
37);
38
39#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
40extern_conformance!(
41    unsafe impl NSObjectProtocol for MKGeodesicPolyline {}
42);
43
44#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
45impl MKGeodesicPolyline {
46    extern_methods!(
47        #[cfg(feature = "MKGeometry")]
48        #[unsafe(method(polylineWithPoints:count:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn polylineWithPoints_count(
51            points: NonNull<MKMapPoint>,
52            count: NSUInteger,
53        ) -> Retained<Self>;
54
55        #[cfg(feature = "objc2-core-location")]
56        #[unsafe(method(polylineWithCoordinates:count:))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn polylineWithCoordinates_count(
59            coords: NonNull<CLLocationCoordinate2D>,
60            count: NSUInteger,
61        ) -> Retained<Self>;
62    );
63}
64
65/// Methods declared on superclass `NSObject`.
66#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
67impl MKGeodesicPolyline {
68    extern_methods!(
69        #[unsafe(method(init))]
70        #[unsafe(method_family = init)]
71        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}