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")]
23unsafe impl NSAccessibility for MKUserLocationView {}
24
25#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
26#[cfg(target_os = "macos")]
27unsafe impl NSAccessibilityElementProtocol for MKUserLocationView {}
28
29#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
30#[cfg(target_os = "macos")]
31unsafe impl NSAnimatablePropertyContainer for MKUserLocationView {}
32
33#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
34#[cfg(target_os = "macos")]
35unsafe impl NSAppearanceCustomization for MKUserLocationView {}
36
37#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
38#[cfg(target_os = "macos")]
39unsafe impl NSCoding for MKUserLocationView {}
40
41#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
42#[cfg(target_os = "macos")]
43unsafe impl NSDraggingDestination for MKUserLocationView {}
44
45#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
46#[cfg(target_os = "macos")]
47unsafe impl NSObjectProtocol for MKUserLocationView {}
48
49#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
50#[cfg(target_os = "macos")]
51unsafe impl NSUserInterfaceItemIdentification for MKUserLocationView {}
52
53#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
54#[cfg(target_os = "macos")]
55impl MKUserLocationView {
56    extern_methods!();
57}
58
59/// Methods declared on superclass `MKAnnotationView`.
60#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
61#[cfg(target_os = "macos")]
62impl MKUserLocationView {
63    extern_methods!(
64        #[cfg(feature = "MKAnnotation")]
65        #[unsafe(method(initWithAnnotation:reuseIdentifier:))]
66        #[unsafe(method_family = init)]
67        pub unsafe fn initWithAnnotation_reuseIdentifier(
68            this: Allocated<Self>,
69            annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
70            reuse_identifier: Option<&NSString>,
71        ) -> Retained<Self>;
72
73        #[unsafe(method(initWithCoder:))]
74        #[unsafe(method_family = init)]
75        pub unsafe fn initWithCoder(
76            this: Allocated<Self>,
77            a_decoder: &NSCoder,
78        ) -> Option<Retained<Self>>;
79    );
80}
81
82/// Methods declared on superclass `NSView`.
83#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
84#[cfg(target_os = "macos")]
85impl MKUserLocationView {
86    extern_methods!(
87        #[unsafe(method(initWithFrame:))]
88        #[unsafe(method_family = init)]
89        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
90    );
91}
92
93/// Methods declared on superclass `NSResponder`.
94#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
95#[cfg(target_os = "macos")]
96impl MKUserLocationView {
97    extern_methods!(
98        #[unsafe(method(init))]
99        #[unsafe(method_family = init)]
100        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
101    );
102}
103
104/// Methods declared on superclass `NSObject`.
105#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
106#[cfg(target_os = "macos")]
107impl MKUserLocationView {
108    extern_methods!(
109        #[unsafe(method(new))]
110        #[unsafe(method_family = new)]
111        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
112    );
113}