icrate/generated/MapKit/
MKMultiPoint.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Contacts::*;
6use crate::CoreLocation::*;
7use crate::Foundation::*;
8use crate::MapKit::*;
9
10extern_class!(
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "MapKit_MKMultiPoint")]
13    pub struct MKMultiPoint;
14
15    #[cfg(feature = "MapKit_MKMultiPoint")]
16    unsafe impl ClassType for MKMultiPoint {
17        #[inherits(NSObject)]
18        type Super = MKShape;
19        type Mutability = InteriorMutable;
20    }
21);
22
23#[cfg(feature = "MapKit_MKMultiPoint")]
24unsafe impl MKAnnotation for MKMultiPoint {}
25
26#[cfg(feature = "MapKit_MKMultiPoint")]
27unsafe impl NSObjectProtocol for MKMultiPoint {}
28
29extern_methods!(
30    #[cfg(feature = "MapKit_MKMultiPoint")]
31    unsafe impl MKMultiPoint {
32        #[method(points)]
33        pub unsafe fn points(&self) -> NonNull<MKMapPoint>;
34
35        #[method(pointCount)]
36        pub unsafe fn pointCount(&self) -> NSUInteger;
37
38        #[method(getCoordinates:range:)]
39        pub unsafe fn getCoordinates_range(
40            &self,
41            coords: NonNull<CLLocationCoordinate2D>,
42            range: NSRange,
43        );
44
45        #[method(locationAtPointIndex:)]
46        pub unsafe fn locationAtPointIndex(&self, index: NSUInteger) -> CGFloat;
47
48        #[cfg(all(
49            feature = "Foundation_NSArray",
50            feature = "Foundation_NSIndexSet",
51            feature = "Foundation_NSNumber"
52        ))]
53        #[method_id(@__retain_semantics Other locationsAtPointIndexes:)]
54        pub unsafe fn locationsAtPointIndexes(&self, indexes: &NSIndexSet)
55            -> Id<NSArray<NSNumber>>;
56    }
57);
58
59extern_methods!(
60    /// Methods declared on superclass `NSObject`
61    #[cfg(feature = "MapKit_MKMultiPoint")]
62    unsafe impl MKMultiPoint {
63        #[method_id(@__retain_semantics Init init)]
64        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
65
66        #[method_id(@__retain_semantics New new)]
67        pub unsafe fn new() -> Id<Self>;
68    }
69);