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
18extern_conformance!(
19    unsafe impl NSObjectProtocol for MKLookAroundSnapshot {}
20);
21
22impl MKLookAroundSnapshot {
23    extern_methods!(
24        #[cfg(feature = "objc2-app-kit")]
25        #[cfg(target_os = "macos")]
26        #[unsafe(method(image))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn image(&self) -> Retained<NSImage>;
29    );
30}
31
32/// Methods declared on superclass `NSObject`.
33impl MKLookAroundSnapshot {
34    extern_methods!(
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new() -> Retained<Self>;
42    );
43}