objc2_map_kit/generated/
MKMultiPoint.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-core-location")]
9use objc2_core_location::*;
10use objc2_foundation::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(MKShape, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "MKShape")]
19 pub struct MKMultiPoint;
20);
21
22#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
23extern_conformance!(
24 unsafe impl MKAnnotation for MKMultiPoint {}
25);
26
27#[cfg(feature = "MKShape")]
28extern_conformance!(
29 unsafe impl NSObjectProtocol for MKMultiPoint {}
30);
31
32#[cfg(feature = "MKShape")]
33impl MKMultiPoint {
34 extern_methods!(
35 #[cfg(feature = "MKGeometry")]
36 #[unsafe(method(points))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn points(&self) -> NonNull<MKMapPoint>;
39
40 #[unsafe(method(pointCount))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn pointCount(&self) -> NSUInteger;
43
44 #[cfg(feature = "objc2-core-location")]
45 #[unsafe(method(getCoordinates:range:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn getCoordinates_range(
48 &self,
49 coords: NonNull<CLLocationCoordinate2D>,
50 range: NSRange,
51 );
52
53 #[cfg(feature = "objc2-core-foundation")]
54 #[unsafe(method(locationAtPointIndex:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn locationAtPointIndex(&self, index: NSUInteger) -> CGFloat;
57
58 #[unsafe(method(locationsAtPointIndexes:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn locationsAtPointIndexes(
61 &self,
62 indexes: &NSIndexSet,
63 ) -> Retained<NSArray<NSNumber>>;
64 );
65}
66
67#[cfg(feature = "MKShape")]
69impl MKMultiPoint {
70 extern_methods!(
71 #[unsafe(method(init))]
72 #[unsafe(method_family = init)]
73 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
74
75 #[unsafe(method(new))]
76 #[unsafe(method_family = new)]
77 pub unsafe fn new() -> Retained<Self>;
78 );
79}