icrate/generated/MapKit/
MKOverlayPathRenderer.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_MKOverlayPathRenderer")]
13 pub struct MKOverlayPathRenderer;
14
15 #[cfg(feature = "MapKit_MKOverlayPathRenderer")]
16 unsafe impl ClassType for MKOverlayPathRenderer {
17 #[inherits(NSObject)]
18 type Super = MKOverlayRenderer;
19 type Mutability = InteriorMutable;
20 }
21);
22
23#[cfg(feature = "MapKit_MKOverlayPathRenderer")]
24unsafe impl NSObjectProtocol for MKOverlayPathRenderer {}
25
26extern_methods!(
27 #[cfg(feature = "MapKit_MKOverlayPathRenderer")]
28 unsafe impl MKOverlayPathRenderer {
29 #[cfg(feature = "AppKit_NSColor")]
30 #[method_id(@__retain_semantics Other fillColor)]
31 pub unsafe fn fillColor(&self) -> Option<Id<NSColor>>;
32
33 #[cfg(feature = "AppKit_NSColor")]
34 #[method(setFillColor:)]
35 pub unsafe fn setFillColor(&self, fill_color: Option<&NSColor>);
36
37 #[cfg(feature = "AppKit_NSColor")]
38 #[method_id(@__retain_semantics Other strokeColor)]
39 pub unsafe fn strokeColor(&self) -> Option<Id<NSColor>>;
40
41 #[cfg(feature = "AppKit_NSColor")]
42 #[method(setStrokeColor:)]
43 pub unsafe fn setStrokeColor(&self, stroke_color: Option<&NSColor>);
44
45 #[method(lineWidth)]
46 pub unsafe fn lineWidth(&self) -> CGFloat;
47
48 #[method(setLineWidth:)]
49 pub unsafe fn setLineWidth(&self, line_width: CGFloat);
50
51 #[method(miterLimit)]
52 pub unsafe fn miterLimit(&self) -> CGFloat;
53
54 #[method(setMiterLimit:)]
55 pub unsafe fn setMiterLimit(&self, miter_limit: CGFloat);
56
57 #[method(lineDashPhase)]
58 pub unsafe fn lineDashPhase(&self) -> CGFloat;
59
60 #[method(setLineDashPhase:)]
61 pub unsafe fn setLineDashPhase(&self, line_dash_phase: CGFloat);
62
63 #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSNumber"))]
64 #[method_id(@__retain_semantics Other lineDashPattern)]
65 pub unsafe fn lineDashPattern(&self) -> Option<Id<NSArray<NSNumber>>>;
66
67 #[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSNumber"))]
68 #[method(setLineDashPattern:)]
69 pub unsafe fn setLineDashPattern(&self, line_dash_pattern: Option<&NSArray<NSNumber>>);
70
71 #[method(shouldRasterize)]
72 pub unsafe fn shouldRasterize(&self) -> bool;
73
74 #[method(setShouldRasterize:)]
75 pub unsafe fn setShouldRasterize(&self, should_rasterize: bool);
76
77 #[method(createPath)]
78 pub unsafe fn createPath(&self);
79
80 #[method(invalidatePath)]
81 pub unsafe fn invalidatePath(&self);
82 }
83);
84
85extern_methods!(
86 #[cfg(feature = "MapKit_MKOverlayPathRenderer")]
88 unsafe impl MKOverlayPathRenderer {
89 #[method_id(@__retain_semantics Init initWithOverlay:)]
90 pub unsafe fn initWithOverlay(
91 this: Allocated<Self>,
92 overlay: &ProtocolObject<dyn MKOverlay>,
93 ) -> Id<Self>;
94 }
95);
96
97extern_methods!(
98 #[cfg(feature = "MapKit_MKOverlayPathRenderer")]
100 unsafe impl MKOverlayPathRenderer {
101 #[method_id(@__retain_semantics Init init)]
102 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
103
104 #[method_id(@__retain_semantics New new)]
105 pub unsafe fn new() -> Id<Self>;
106 }
107);