objc2_map_kit/generated/
MKLookAroundSnapshotOptions.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct MKLookAroundSnapshotOptions;
16);
17
18extern_conformance!(
19 unsafe impl NSObjectProtocol for MKLookAroundSnapshotOptions {}
20);
21
22impl MKLookAroundSnapshotOptions {
23 extern_methods!(
24 #[cfg(feature = "MKPointOfInterestFilter")]
25 #[unsafe(method(pointOfInterestFilter))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn pointOfInterestFilter(&self) -> Option<Retained<MKPointOfInterestFilter>>;
28
29 #[cfg(feature = "MKPointOfInterestFilter")]
30 #[unsafe(method(setPointOfInterestFilter:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn setPointOfInterestFilter(
36 &self,
37 point_of_interest_filter: Option<&MKPointOfInterestFilter>,
38 );
39
40 #[cfg(feature = "objc2-core-foundation")]
41 #[unsafe(method(size))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn size(&self) -> CGSize;
44
45 #[cfg(feature = "objc2-core-foundation")]
46 #[unsafe(method(setSize:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setSize(&self, size: CGSize);
50 );
51}
52
53impl MKLookAroundSnapshotOptions {
55 extern_methods!(
56 #[unsafe(method(init))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59
60 #[unsafe(method(new))]
61 #[unsafe(method_family = new)]
62 pub unsafe fn new() -> Retained<Self>;
63 );
64}