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
58
use crate::common::*;
use crate::AppKit::*;
use crate::CoreLocation::*;
use crate::EventKit::*;
use crate::Foundation::*;
use crate::MapKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "EventKit_EKStructuredLocation")]
pub struct EKStructuredLocation;
#[cfg(feature = "EventKit_EKStructuredLocation")]
unsafe impl ClassType for EKStructuredLocation {
#[inherits(NSObject)]
type Super = EKObject;
}
);
#[cfg(feature = "EventKit_EKStructuredLocation")]
unsafe impl NSObjectProtocol for EKStructuredLocation {}
extern_methods!(
#[cfg(feature = "EventKit_EKStructuredLocation")]
unsafe impl EKStructuredLocation {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other locationWithTitle:)]
pub unsafe fn locationWithTitle(title: &NSString) -> Id<Self, Shared>;
#[cfg(feature = "MapKit_MKMapItem")]
#[method_id(@__retain_semantics Other locationWithMapItem:)]
pub unsafe fn locationWithMapItem(map_item: &MKMapItem) -> Id<Self, 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 = "CoreLocation_CLLocation")]
#[method_id(@__retain_semantics Other geoLocation)]
pub unsafe fn geoLocation(&self) -> Option<Id<CLLocation, Shared>>;
#[cfg(feature = "CoreLocation_CLLocation")]
#[method(setGeoLocation:)]
pub unsafe fn setGeoLocation(&self, geo_location: Option<&CLLocation>);
#[method(radius)]
pub unsafe fn radius(&self) -> c_double;
#[method(setRadius:)]
pub unsafe fn setRadius(&self, radius: c_double);
}
);