objc2_map_kit/generated/
MKMarkerAnnotationView.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(MKAnnotationView, NSView, NSResponder, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
18 #[cfg(target_os = "macos")]
19 pub struct MKMarkerAnnotationView;
20);
21
22#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
23#[cfg(target_os = "macos")]
24extern_conformance!(
25 unsafe impl NSAccessibility for MKMarkerAnnotationView {}
26);
27
28#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
29#[cfg(target_os = "macos")]
30extern_conformance!(
31 unsafe impl NSAccessibilityElementProtocol for MKMarkerAnnotationView {}
32);
33
34#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
35#[cfg(target_os = "macos")]
36extern_conformance!(
37 unsafe impl NSAnimatablePropertyContainer for MKMarkerAnnotationView {}
38);
39
40#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
41#[cfg(target_os = "macos")]
42extern_conformance!(
43 unsafe impl NSAppearanceCustomization for MKMarkerAnnotationView {}
44);
45
46#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
47#[cfg(target_os = "macos")]
48extern_conformance!(
49 unsafe impl NSCoding for MKMarkerAnnotationView {}
50);
51
52#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
53#[cfg(target_os = "macos")]
54extern_conformance!(
55 unsafe impl NSDraggingDestination for MKMarkerAnnotationView {}
56);
57
58#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
59#[cfg(target_os = "macos")]
60extern_conformance!(
61 unsafe impl NSObjectProtocol for MKMarkerAnnotationView {}
62);
63
64#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
65#[cfg(target_os = "macos")]
66extern_conformance!(
67 unsafe impl NSUserInterfaceItemIdentification for MKMarkerAnnotationView {}
68);
69
70#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
71#[cfg(target_os = "macos")]
72impl MKMarkerAnnotationView {
73 extern_methods!(
74 #[cfg(feature = "MKTypes")]
75 #[unsafe(method(titleVisibility))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn titleVisibility(&self) -> MKFeatureVisibility;
78
79 #[cfg(feature = "MKTypes")]
80 #[unsafe(method(setTitleVisibility:))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn setTitleVisibility(&self, title_visibility: MKFeatureVisibility);
84
85 #[cfg(feature = "MKTypes")]
86 #[unsafe(method(subtitleVisibility))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn subtitleVisibility(&self) -> MKFeatureVisibility;
89
90 #[cfg(feature = "MKTypes")]
91 #[unsafe(method(setSubtitleVisibility:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn setSubtitleVisibility(&self, subtitle_visibility: MKFeatureVisibility);
95
96 #[unsafe(method(markerTintColor))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn markerTintColor(&self) -> Option<Retained<NSColor>>;
99
100 #[unsafe(method(setMarkerTintColor:))]
102 #[unsafe(method_family = none)]
103 pub unsafe fn setMarkerTintColor(&self, marker_tint_color: Option<&NSColor>);
104
105 #[unsafe(method(glyphTintColor))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn glyphTintColor(&self) -> Option<Retained<NSColor>>;
108
109 #[unsafe(method(setGlyphTintColor:))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn setGlyphTintColor(&self, glyph_tint_color: Option<&NSColor>);
113
114 #[unsafe(method(glyphText))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn glyphText(&self) -> Option<Retained<NSString>>;
117
118 #[unsafe(method(setGlyphText:))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn setGlyphText(&self, glyph_text: Option<&NSString>);
122
123 #[unsafe(method(glyphImage))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn glyphImage(&self) -> Option<Retained<NSImage>>;
126
127 #[unsafe(method(setGlyphImage:))]
129 #[unsafe(method_family = none)]
130 pub unsafe fn setGlyphImage(&self, glyph_image: Option<&NSImage>);
131
132 #[unsafe(method(selectedGlyphImage))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn selectedGlyphImage(&self) -> Option<Retained<NSImage>>;
135
136 #[unsafe(method(setSelectedGlyphImage:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setSelectedGlyphImage(&self, selected_glyph_image: Option<&NSImage>);
140
141 #[unsafe(method(animatesWhenAdded))]
142 #[unsafe(method_family = none)]
143 pub unsafe fn animatesWhenAdded(&self) -> bool;
144
145 #[unsafe(method(setAnimatesWhenAdded:))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn setAnimatesWhenAdded(&self, animates_when_added: bool);
149 );
150}
151
152#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
154#[cfg(target_os = "macos")]
155impl MKMarkerAnnotationView {
156 extern_methods!(
157 #[cfg(feature = "MKAnnotation")]
158 #[unsafe(method(initWithAnnotation:reuseIdentifier:))]
159 #[unsafe(method_family = init)]
160 pub unsafe fn initWithAnnotation_reuseIdentifier(
161 this: Allocated<Self>,
162 annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
163 reuse_identifier: Option<&NSString>,
164 ) -> Retained<Self>;
165
166 #[unsafe(method(initWithCoder:))]
167 #[unsafe(method_family = init)]
168 pub unsafe fn initWithCoder(
169 this: Allocated<Self>,
170 a_decoder: &NSCoder,
171 ) -> Option<Retained<Self>>;
172 );
173}
174
175#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
177#[cfg(target_os = "macos")]
178impl MKMarkerAnnotationView {
179 extern_methods!(
180 #[unsafe(method(initWithFrame:))]
181 #[unsafe(method_family = init)]
182 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
183 );
184}
185
186#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
188#[cfg(target_os = "macos")]
189impl MKMarkerAnnotationView {
190 extern_methods!(
191 #[unsafe(method(init))]
192 #[unsafe(method_family = init)]
193 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
194 );
195}
196
197#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
199#[cfg(target_os = "macos")]
200impl MKMarkerAnnotationView {
201 extern_methods!(
202 #[unsafe(method(new))]
203 #[unsafe(method_family = new)]
204 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
205 );
206}