objc2_map_kit/generated/
MKMapSnapshot.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::*;
8#[cfg(feature = "objc2-core-location")]
9use objc2_core_location::*;
10use objc2_foundation::*;
11
12use crate::*;
13
14extern_class!(
15    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkmapsnapshot?language=objc)
16    #[unsafe(super(NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    pub struct MKMapSnapshot;
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for MKMapSnapshot {}
23);
24
25impl MKMapSnapshot {
26    extern_methods!(
27        #[cfg(feature = "objc2-app-kit")]
28        #[cfg(target_os = "macos")]
29        #[unsafe(method(image))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn image(&self) -> Retained<NSImage>;
32
33        #[cfg(feature = "objc2-app-kit")]
34        #[cfg(target_os = "macos")]
35        #[unsafe(method(appearance))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn appearance(&self) -> Retained<NSAppearance>;
38
39        #[cfg(feature = "objc2-core-location")]
40        #[unsafe(method(pointForCoordinate:))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn pointForCoordinate(&self, coordinate: CLLocationCoordinate2D) -> NSPoint;
43    );
44}
45
46/// Methods declared on superclass `NSObject`.
47impl MKMapSnapshot {
48    extern_methods!(
49        #[unsafe(method(init))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52
53        #[unsafe(method(new))]
54        #[unsafe(method_family = new)]
55        pub unsafe fn new() -> Retained<Self>;
56    );
57}