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:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn setPointOfInterestFilter(
34 &self,
35 point_of_interest_filter: Option<&MKPointOfInterestFilter>,
36 );
37
38 #[cfg(feature = "objc2-core-foundation")]
39 #[unsafe(method(size))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn size(&self) -> CGSize;
42
43 #[cfg(feature = "objc2-core-foundation")]
44 #[unsafe(method(setSize:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn setSize(&self, size: CGSize);
48 );
49}
50
51impl MKLookAroundSnapshotOptions {
53 extern_methods!(
54 #[unsafe(method(init))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
57
58 #[unsafe(method(new))]
59 #[unsafe(method_family = new)]
60 pub unsafe fn new() -> Retained<Self>;
61 );
62}