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        /// # Safety
49        ///
50        /// `points` must be a valid pointer.
51        #[unsafe(method(polylineWithPoints:count:))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn polylineWithPoints_count(
54            points: NonNull<MKMapPoint>,
55            count: NSUInteger,
56        ) -> Retained<Self>;
57
58        #[cfg(feature = "objc2-core-location")]
59        /// # Safety
60        ///
61        /// `coords` must be a valid pointer.
62        #[unsafe(method(polylineWithCoordinates:count:))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn polylineWithCoordinates_count(
65            coords: NonNull<CLLocationCoordinate2D>,
66            count: NSUInteger,
67        ) -> Retained<Self>;
68    );
69}
70
71/// Methods declared on superclass `NSObject`.
72#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
73impl MKGeodesicPolyline {
74    extern_methods!(
75        #[unsafe(method(init))]
76        #[unsafe(method_family = init)]
77        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
78
79        #[unsafe(method(new))]
80        #[unsafe(method_family = new)]
81        pub unsafe fn new() -> Retained<Self>;
82    );
83}