icrate/generated/MapKit/
MKMarkerAnnotationView.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_MKMarkerAnnotationView")]
13 pub struct MKMarkerAnnotationView;
14
15 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
16 unsafe impl ClassType for MKMarkerAnnotationView {
17 #[inherits(NSView, NSResponder, NSObject)]
18 type Super = MKAnnotationView;
19 type Mutability = MainThreadOnly;
20 }
21);
22
23#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
24unsafe impl NSAccessibility for MKMarkerAnnotationView {}
25
26#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
27unsafe impl NSAccessibilityElementProtocol for MKMarkerAnnotationView {}
28
29#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
30unsafe impl NSAnimatablePropertyContainer for MKMarkerAnnotationView {}
31
32#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
33unsafe impl NSAppearanceCustomization for MKMarkerAnnotationView {}
34
35#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
36unsafe impl NSCoding for MKMarkerAnnotationView {}
37
38#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
39unsafe impl NSDraggingDestination for MKMarkerAnnotationView {}
40
41#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
42unsafe impl NSObjectProtocol for MKMarkerAnnotationView {}
43
44#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
45unsafe impl NSUserInterfaceItemIdentification for MKMarkerAnnotationView {}
46
47extern_methods!(
48 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
49 unsafe impl MKMarkerAnnotationView {
50 #[method(titleVisibility)]
51 pub unsafe fn titleVisibility(&self) -> MKFeatureVisibility;
52
53 #[method(setTitleVisibility:)]
54 pub unsafe fn setTitleVisibility(&self, title_visibility: MKFeatureVisibility);
55
56 #[method(subtitleVisibility)]
57 pub unsafe fn subtitleVisibility(&self) -> MKFeatureVisibility;
58
59 #[method(setSubtitleVisibility:)]
60 pub unsafe fn setSubtitleVisibility(&self, subtitle_visibility: MKFeatureVisibility);
61
62 #[cfg(feature = "AppKit_NSColor")]
63 #[method_id(@__retain_semantics Other markerTintColor)]
64 pub unsafe fn markerTintColor(&self) -> Option<Id<NSColor>>;
65
66 #[cfg(feature = "AppKit_NSColor")]
67 #[method(setMarkerTintColor:)]
68 pub unsafe fn setMarkerTintColor(&self, marker_tint_color: Option<&NSColor>);
69
70 #[cfg(feature = "AppKit_NSColor")]
71 #[method_id(@__retain_semantics Other glyphTintColor)]
72 pub unsafe fn glyphTintColor(&self) -> Option<Id<NSColor>>;
73
74 #[cfg(feature = "AppKit_NSColor")]
75 #[method(setGlyphTintColor:)]
76 pub unsafe fn setGlyphTintColor(&self, glyph_tint_color: Option<&NSColor>);
77
78 #[cfg(feature = "Foundation_NSString")]
79 #[method_id(@__retain_semantics Other glyphText)]
80 pub unsafe fn glyphText(&self) -> Option<Id<NSString>>;
81
82 #[cfg(feature = "Foundation_NSString")]
83 #[method(setGlyphText:)]
84 pub unsafe fn setGlyphText(&self, glyph_text: Option<&NSString>);
85
86 #[cfg(feature = "AppKit_NSImage")]
87 #[method_id(@__retain_semantics Other glyphImage)]
88 pub unsafe fn glyphImage(&self) -> Option<Id<NSImage>>;
89
90 #[cfg(feature = "AppKit_NSImage")]
91 #[method(setGlyphImage:)]
92 pub unsafe fn setGlyphImage(&self, glyph_image: Option<&NSImage>);
93
94 #[cfg(feature = "AppKit_NSImage")]
95 #[method_id(@__retain_semantics Other selectedGlyphImage)]
96 pub unsafe fn selectedGlyphImage(&self) -> Option<Id<NSImage>>;
97
98 #[cfg(feature = "AppKit_NSImage")]
99 #[method(setSelectedGlyphImage:)]
100 pub unsafe fn setSelectedGlyphImage(&self, selected_glyph_image: Option<&NSImage>);
101
102 #[method(animatesWhenAdded)]
103 pub unsafe fn animatesWhenAdded(&self) -> bool;
104
105 #[method(setAnimatesWhenAdded:)]
106 pub unsafe fn setAnimatesWhenAdded(&self, animates_when_added: bool);
107 }
108);
109
110extern_methods!(
111 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
113 unsafe impl MKMarkerAnnotationView {
114 #[cfg(feature = "Foundation_NSString")]
115 #[method_id(@__retain_semantics Init initWithAnnotation:reuseIdentifier:)]
116 pub unsafe fn initWithAnnotation_reuseIdentifier(
117 this: Allocated<Self>,
118 annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
119 reuse_identifier: Option<&NSString>,
120 ) -> Id<Self>;
121
122 #[cfg(feature = "Foundation_NSCoder")]
123 #[method_id(@__retain_semantics Init initWithCoder:)]
124 pub unsafe fn initWithCoder(this: Allocated<Self>, a_decoder: &NSCoder)
125 -> Option<Id<Self>>;
126 }
127);
128
129extern_methods!(
130 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
132 unsafe impl MKMarkerAnnotationView {
133 #[method_id(@__retain_semantics Init initWithFrame:)]
134 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
135 }
136);
137
138extern_methods!(
139 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
141 unsafe impl MKMarkerAnnotationView {
142 #[method_id(@__retain_semantics Init init)]
143 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
144 }
145);
146
147extern_methods!(
148 #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
150 unsafe impl MKMarkerAnnotationView {
151 #[method_id(@__retain_semantics New new)]
152 pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
153 }
154);