1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    pub struct MKMarkerAnnotationView;

    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl ClassType for MKMarkerAnnotationView {
        #[inherits(NSView, NSResponder, NSObject)]
        type Super = MKAnnotationView;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSAccessibility for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSAccessibilityElementProtocol for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSAnimatablePropertyContainer for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSAppearanceCustomization for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSCoding for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSDraggingDestination for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSObjectProtocol for MKMarkerAnnotationView {}

#[cfg(feature = "MapKit_MKMarkerAnnotationView")]
unsafe impl NSUserInterfaceItemIdentification for MKMarkerAnnotationView {}

extern_methods!(
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl MKMarkerAnnotationView {
        #[method(titleVisibility)]
        pub unsafe fn titleVisibility(&self) -> MKFeatureVisibility;

        #[method(setTitleVisibility:)]
        pub unsafe fn setTitleVisibility(&self, title_visibility: MKFeatureVisibility);

        #[method(subtitleVisibility)]
        pub unsafe fn subtitleVisibility(&self) -> MKFeatureVisibility;

        #[method(setSubtitleVisibility:)]
        pub unsafe fn setSubtitleVisibility(&self, subtitle_visibility: MKFeatureVisibility);

        #[cfg(feature = "AppKit_NSColor")]
        #[method_id(@__retain_semantics Other markerTintColor)]
        pub unsafe fn markerTintColor(&self) -> Option<Id<NSColor>>;

        #[cfg(feature = "AppKit_NSColor")]
        #[method(setMarkerTintColor:)]
        pub unsafe fn setMarkerTintColor(&self, marker_tint_color: Option<&NSColor>);

        #[cfg(feature = "AppKit_NSColor")]
        #[method_id(@__retain_semantics Other glyphTintColor)]
        pub unsafe fn glyphTintColor(&self) -> Option<Id<NSColor>>;

        #[cfg(feature = "AppKit_NSColor")]
        #[method(setGlyphTintColor:)]
        pub unsafe fn setGlyphTintColor(&self, glyph_tint_color: Option<&NSColor>);

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other glyphText)]
        pub unsafe fn glyphText(&self) -> Option<Id<NSString>>;

        #[cfg(feature = "Foundation_NSString")]
        #[method(setGlyphText:)]
        pub unsafe fn setGlyphText(&self, glyph_text: Option<&NSString>);

        #[cfg(feature = "AppKit_NSImage")]
        #[method_id(@__retain_semantics Other glyphImage)]
        pub unsafe fn glyphImage(&self) -> Option<Id<NSImage>>;

        #[cfg(feature = "AppKit_NSImage")]
        #[method(setGlyphImage:)]
        pub unsafe fn setGlyphImage(&self, glyph_image: Option<&NSImage>);

        #[cfg(feature = "AppKit_NSImage")]
        #[method_id(@__retain_semantics Other selectedGlyphImage)]
        pub unsafe fn selectedGlyphImage(&self) -> Option<Id<NSImage>>;

        #[cfg(feature = "AppKit_NSImage")]
        #[method(setSelectedGlyphImage:)]
        pub unsafe fn setSelectedGlyphImage(&self, selected_glyph_image: Option<&NSImage>);

        #[method(animatesWhenAdded)]
        pub unsafe fn animatesWhenAdded(&self) -> bool;

        #[method(setAnimatesWhenAdded:)]
        pub unsafe fn setAnimatesWhenAdded(&self, animates_when_added: bool);
    }
);

extern_methods!(
    /// Methods declared on superclass `MKAnnotationView`
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl MKMarkerAnnotationView {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithAnnotation:reuseIdentifier:)]
        pub unsafe fn initWithAnnotation_reuseIdentifier(
            this: Option<Allocated<Self>>,
            annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
            reuse_identifier: Option<&NSString>,
        ) -> Id<Self>;

        #[cfg(feature = "Foundation_NSCoder")]
        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(
            this: Option<Allocated<Self>>,
            a_decoder: &NSCoder,
        ) -> Option<Id<Self>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl MKMarkerAnnotationView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(this: Option<Allocated<Self>>, frame_rect: NSRect) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSResponder`
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl MKMarkerAnnotationView {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "MapKit_MKMarkerAnnotationView")]
    unsafe impl MKMarkerAnnotationView {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);