1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MapKit_MKUserLocation")]
pub struct MKUserLocation;
#[cfg(feature = "MapKit_MKUserLocation")]
unsafe impl ClassType for MKUserLocation {
type Super = NSObject;
}
);
#[cfg(feature = "MapKit_MKUserLocation")]
unsafe impl MKAnnotation for MKUserLocation {}
#[cfg(feature = "MapKit_MKUserLocation")]
unsafe impl NSObjectProtocol for MKUserLocation {}
extern_methods!(
#[cfg(feature = "MapKit_MKUserLocation")]
unsafe impl MKUserLocation {
#[method(isUpdating)]
pub unsafe fn isUpdating(&self) -> bool;
#[cfg(feature = "CoreLocation_CLLocation")]
#[method_id(@__retain_semantics Other location)]
pub unsafe fn location(&self) -> Option<Id<CLLocation, Shared>>;
#[cfg(feature = "CoreLocation_CLHeading")]
#[method_id(@__retain_semantics Other heading)]
pub unsafe fn heading(&self) -> Option<Id<CLHeading, Shared>>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other title)]
pub unsafe fn title(&self) -> Option<Id<NSString, Shared>>;
#[cfg(feature = "Foundation_NSString")]
#[method(setTitle:)]
pub unsafe fn setTitle(&self, title: Option<&NSString>);
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other subtitle)]
pub unsafe fn subtitle(&self) -> Option<Id<NSString, Shared>>;
#[cfg(feature = "Foundation_NSString")]
#[method(setSubtitle:)]
pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
}
);