objc2_map_kit/generated/
MKUserLocationView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-app-kit")]
6#[cfg(target_os = "macos")]
7use objc2_app_kit::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkuserlocationview?language=objc)
14    #[unsafe(super(MKAnnotationView, NSView, NSResponder, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
17    #[cfg(target_os = "macos")]
18    pub struct MKUserLocationView;
19);
20
21#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
22#[cfg(target_os = "macos")]
23extern_conformance!(
24    unsafe impl NSAccessibility for MKUserLocationView {}
25);
26
27#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
28#[cfg(target_os = "macos")]
29extern_conformance!(
30    unsafe impl NSAccessibilityElementProtocol for MKUserLocationView {}
31);
32
33#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
34#[cfg(target_os = "macos")]
35extern_conformance!(
36    unsafe impl NSAnimatablePropertyContainer for MKUserLocationView {}
37);
38
39#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
40#[cfg(target_os = "macos")]
41extern_conformance!(
42    unsafe impl NSAppearanceCustomization for MKUserLocationView {}
43);
44
45#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
46#[cfg(target_os = "macos")]
47extern_conformance!(
48    unsafe impl NSCoding for MKUserLocationView {}
49);
50
51#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
52#[cfg(target_os = "macos")]
53extern_conformance!(
54    unsafe impl NSDraggingDestination for MKUserLocationView {}
55);
56
57#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
58#[cfg(target_os = "macos")]
59extern_conformance!(
60    unsafe impl NSObjectProtocol for MKUserLocationView {}
61);
62
63#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
64#[cfg(target_os = "macos")]
65extern_conformance!(
66    unsafe impl NSUserInterfaceItemIdentification for MKUserLocationView {}
67);
68
69#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
70#[cfg(target_os = "macos")]
71impl MKUserLocationView {
72    extern_methods!();
73}
74
75/// Methods declared on superclass `MKAnnotationView`.
76#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
77#[cfg(target_os = "macos")]
78impl MKUserLocationView {
79    extern_methods!(
80        #[cfg(feature = "MKAnnotation")]
81        #[unsafe(method(initWithAnnotation:reuseIdentifier:))]
82        #[unsafe(method_family = init)]
83        pub unsafe fn initWithAnnotation_reuseIdentifier(
84            this: Allocated<Self>,
85            annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
86            reuse_identifier: Option<&NSString>,
87        ) -> Retained<Self>;
88
89        #[unsafe(method(initWithCoder:))]
90        #[unsafe(method_family = init)]
91        pub unsafe fn initWithCoder(
92            this: Allocated<Self>,
93            a_decoder: &NSCoder,
94        ) -> Option<Retained<Self>>;
95    );
96}
97
98/// Methods declared on superclass `NSView`.
99#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
100#[cfg(target_os = "macos")]
101impl MKUserLocationView {
102    extern_methods!(
103        #[unsafe(method(initWithFrame:))]
104        #[unsafe(method_family = init)]
105        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
106    );
107}
108
109/// Methods declared on superclass `NSResponder`.
110#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
111#[cfg(target_os = "macos")]
112impl MKUserLocationView {
113    extern_methods!(
114        #[unsafe(method(init))]
115        #[unsafe(method_family = init)]
116        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
117    );
118}
119
120/// Methods declared on superclass `NSObject`.
121#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
122#[cfg(target_os = "macos")]
123impl MKUserLocationView {
124    extern_methods!(
125        #[unsafe(method(new))]
126        #[unsafe(method_family = new)]
127        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
128    );
129}