icrate/generated/MapKit/
MKMultiPolygonRenderer.rs1use 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_MKMultiPolygonRenderer")]
13 pub struct MKMultiPolygonRenderer;
14
15 #[cfg(feature = "MapKit_MKMultiPolygonRenderer")]
16 unsafe impl ClassType for MKMultiPolygonRenderer {
17 #[inherits(MKOverlayRenderer, NSObject)]
18 type Super = MKOverlayPathRenderer;
19 type Mutability = InteriorMutable;
20 }
21);
22
23#[cfg(feature = "MapKit_MKMultiPolygonRenderer")]
24unsafe impl NSObjectProtocol for MKMultiPolygonRenderer {}
25
26extern_methods!(
27 #[cfg(feature = "MapKit_MKMultiPolygonRenderer")]
28 unsafe impl MKMultiPolygonRenderer {
29 #[cfg(feature = "MapKit_MKMultiPolygon")]
30 #[method_id(@__retain_semantics Init initWithMultiPolygon:)]
31 pub unsafe fn initWithMultiPolygon(
32 this: Allocated<Self>,
33 multi_polygon: &MKMultiPolygon,
34 ) -> Id<Self>;
35
36 #[cfg(feature = "MapKit_MKMultiPolygon")]
37 #[method_id(@__retain_semantics Other multiPolygon)]
38 pub unsafe fn multiPolygon(&self) -> Id<MKMultiPolygon>;
39 }
40);
41
42extern_methods!(
43 #[cfg(feature = "MapKit_MKMultiPolygonRenderer")]
45 unsafe impl MKMultiPolygonRenderer {
46 #[method_id(@__retain_semantics Init initWithOverlay:)]
47 pub unsafe fn initWithOverlay(
48 this: Allocated<Self>,
49 overlay: &ProtocolObject<dyn MKOverlay>,
50 ) -> Id<Self>;
51 }
52);
53
54extern_methods!(
55 #[cfg(feature = "MapKit_MKMultiPolygonRenderer")]
57 unsafe impl MKMultiPolygonRenderer {
58 #[method_id(@__retain_semantics Init init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
60
61 #[method_id(@__retain_semantics New new)]
62 pub unsafe fn new() -> Id<Self>;
63 }
64);