objc2_map_kit/generated/
MKUserLocationView.rs1use 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 #[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#[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:))]
93 #[unsafe(method_family = init)]
94 pub unsafe fn initWithCoder(
95 this: Allocated<Self>,
96 a_decoder: &NSCoder,
97 ) -> Option<Retained<Self>>;
98 );
99}
100
101#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
103#[cfg(target_os = "macos")]
104impl MKUserLocationView {
105 extern_methods!(
106 #[unsafe(method(initWithFrame:))]
107 #[unsafe(method_family = init)]
108 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
109 );
110}
111
112#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
114#[cfg(target_os = "macos")]
115impl MKUserLocationView {
116 extern_methods!(
117 #[unsafe(method(init))]
118 #[unsafe(method_family = init)]
119 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
120 );
121}
122
123#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
125#[cfg(target_os = "macos")]
126impl MKUserLocationView {
127 extern_methods!(
128 #[unsafe(method(new))]
129 #[unsafe(method_family = new)]
130 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
131 );
132}