objc2_map_kit/generated/
MKUserLocation.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-location")]
7use objc2_core_location::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 pub struct MKUserLocation;
17);
18
19#[cfg(feature = "MKAnnotation")]
20extern_conformance!(
21 unsafe impl MKAnnotation for MKUserLocation {}
22);
23
24extern_conformance!(
25 unsafe impl NSObjectProtocol for MKUserLocation {}
26);
27
28impl MKUserLocation {
29 extern_methods!(
30 #[unsafe(method(isUpdating))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn isUpdating(&self) -> bool;
33
34 #[cfg(feature = "objc2-core-location")]
35 #[unsafe(method(location))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn location(&self) -> Option<Retained<CLLocation>>;
38
39 #[cfg(feature = "objc2-core-location")]
40 #[unsafe(method(heading))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn heading(&self) -> Option<Retained<CLHeading>>;
43
44 #[unsafe(method(title))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn title(&self) -> Option<Retained<NSString>>;
47
48 #[unsafe(method(setTitle:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn setTitle(&self, title: Option<&NSString>);
52
53 #[unsafe(method(subtitle))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn subtitle(&self) -> Option<Retained<NSString>>;
56
57 #[unsafe(method(setSubtitle:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
61 );
62}
63
64impl MKUserLocation {
66 extern_methods!(
67 #[unsafe(method(init))]
68 #[unsafe(method_family = init)]
69 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71 #[unsafe(method(new))]
72 #[unsafe(method_family = new)]
73 pub unsafe fn new() -> Retained<Self>;
74 );
75}