objc2_map_kit/generated/
MKZoomControl.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(NSView, NSResponder, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "objc2-app-kit")]
18 #[cfg(target_os = "macos")]
19 pub struct MKZoomControl;
20);
21
22#[cfg(feature = "objc2-app-kit")]
23#[cfg(target_os = "macos")]
24extern_conformance!(
25 unsafe impl NSAccessibility for MKZoomControl {}
26);
27
28#[cfg(feature = "objc2-app-kit")]
29#[cfg(target_os = "macos")]
30extern_conformance!(
31 unsafe impl NSAccessibilityElementProtocol for MKZoomControl {}
32);
33
34#[cfg(feature = "objc2-app-kit")]
35#[cfg(target_os = "macos")]
36extern_conformance!(
37 unsafe impl NSAnimatablePropertyContainer for MKZoomControl {}
38);
39
40#[cfg(feature = "objc2-app-kit")]
41#[cfg(target_os = "macos")]
42extern_conformance!(
43 unsafe impl NSAppearanceCustomization for MKZoomControl {}
44);
45
46#[cfg(feature = "objc2-app-kit")]
47#[cfg(target_os = "macos")]
48extern_conformance!(
49 unsafe impl NSCoding for MKZoomControl {}
50);
51
52#[cfg(feature = "objc2-app-kit")]
53#[cfg(target_os = "macos")]
54extern_conformance!(
55 unsafe impl NSDraggingDestination for MKZoomControl {}
56);
57
58#[cfg(feature = "objc2-app-kit")]
59#[cfg(target_os = "macos")]
60extern_conformance!(
61 unsafe impl NSObjectProtocol for MKZoomControl {}
62);
63
64#[cfg(feature = "objc2-app-kit")]
65#[cfg(target_os = "macos")]
66extern_conformance!(
67 unsafe impl NSUserInterfaceItemIdentification for MKZoomControl {}
68);
69
70#[cfg(feature = "objc2-app-kit")]
71#[cfg(target_os = "macos")]
72impl MKZoomControl {
73 extern_methods!(
74 #[cfg(feature = "MKMapView")]
75 #[unsafe(method(zoomControlWithMapView:))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn zoomControlWithMapView(
78 map_view: Option<&MKMapView>,
79 mtm: MainThreadMarker,
80 ) -> Retained<Self>;
81
82 #[cfg(feature = "MKMapView")]
83 #[unsafe(method(mapView))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn mapView(&self) -> Option<Retained<MKMapView>>;
86
87 #[cfg(feature = "MKMapView")]
88 #[unsafe(method(setMapView:))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn setMapView(&self, map_view: Option<&MKMapView>);
93 );
94}
95
96#[cfg(feature = "objc2-app-kit")]
98#[cfg(target_os = "macos")]
99impl MKZoomControl {
100 extern_methods!(
101 #[unsafe(method(initWithFrame:))]
102 #[unsafe(method_family = init)]
103 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
104
105 #[unsafe(method(initWithCoder:))]
106 #[unsafe(method_family = init)]
107 pub unsafe fn initWithCoder(
108 this: Allocated<Self>,
109 coder: &NSCoder,
110 ) -> Option<Retained<Self>>;
111 );
112}
113
114#[cfg(feature = "objc2-app-kit")]
116#[cfg(target_os = "macos")]
117impl MKZoomControl {
118 extern_methods!(
119 #[unsafe(method(init))]
120 #[unsafe(method_family = init)]
121 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
122 );
123}
124
125#[cfg(feature = "objc2-app-kit")]
127#[cfg(target_os = "macos")]
128impl MKZoomControl {
129 extern_methods!(
130 #[unsafe(method(new))]
131 #[unsafe(method_family = new)]
132 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
133 );
134}