objc2_map_kit/generated/
MKLookAroundSnapshot.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
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mklookaroundsnapshot?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct MKLookAroundSnapshot;
16);
17
18unsafe impl NSObjectProtocol for MKLookAroundSnapshot {}
19
20impl MKLookAroundSnapshot {
21    extern_methods!(
22        #[cfg(feature = "objc2-app-kit")]
23        #[cfg(target_os = "macos")]
24        #[unsafe(method(image))]
25        #[unsafe(method_family = none)]
26        pub unsafe fn image(&self) -> Retained<NSImage>;
27    );
28}
29
30/// Methods declared on superclass `NSObject`.
31impl MKLookAroundSnapshot {
32    extern_methods!(
33        #[unsafe(method(init))]
34        #[unsafe(method_family = init)]
35        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36
37        #[unsafe(method(new))]
38        #[unsafe(method_family = new)]
39        pub unsafe fn new() -> Retained<Self>;
40    );
41}