icrate/generated/MapKit/
MKStandardMapConfiguration.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Contacts::*;
6use crate::CoreLocation::*;
7use crate::Foundation::*;
8use crate::MapKit::*;
9
10ns_enum!(
11    #[underlying(NSInteger)]
12    pub enum MKStandardMapEmphasisStyle {
13        MKStandardMapEmphasisStyleDefault = 0,
14        MKStandardMapEmphasisStyleMuted = 1,
15    }
16);
17
18extern_class!(
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    #[cfg(feature = "MapKit_MKStandardMapConfiguration")]
21    pub struct MKStandardMapConfiguration;
22
23    #[cfg(feature = "MapKit_MKStandardMapConfiguration")]
24    unsafe impl ClassType for MKStandardMapConfiguration {
25        #[inherits(NSObject)]
26        type Super = MKMapConfiguration;
27        type Mutability = InteriorMutable;
28    }
29);
30
31#[cfg(feature = "MapKit_MKStandardMapConfiguration")]
32unsafe impl NSCoding for MKStandardMapConfiguration {}
33
34#[cfg(feature = "MapKit_MKStandardMapConfiguration")]
35unsafe impl NSCopying for MKStandardMapConfiguration {}
36
37#[cfg(feature = "MapKit_MKStandardMapConfiguration")]
38unsafe impl NSObjectProtocol for MKStandardMapConfiguration {}
39
40#[cfg(feature = "MapKit_MKStandardMapConfiguration")]
41unsafe impl NSSecureCoding for MKStandardMapConfiguration {}
42
43extern_methods!(
44    #[cfg(feature = "MapKit_MKStandardMapConfiguration")]
45    unsafe impl MKStandardMapConfiguration {
46        #[method_id(@__retain_semantics Init init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
48
49        #[method_id(@__retain_semantics Init initWithElevationStyle:)]
50        pub unsafe fn initWithElevationStyle(
51            this: Allocated<Self>,
52            elevation_style: MKMapElevationStyle,
53        ) -> Id<Self>;
54
55        #[method_id(@__retain_semantics Init initWithElevationStyle:emphasisStyle:)]
56        pub unsafe fn initWithElevationStyle_emphasisStyle(
57            this: Allocated<Self>,
58            elevation_style: MKMapElevationStyle,
59            emphasis_style: MKStandardMapEmphasisStyle,
60        ) -> Id<Self>;
61
62        #[method_id(@__retain_semantics Init initWithEmphasisStyle:)]
63        pub unsafe fn initWithEmphasisStyle(
64            this: Allocated<Self>,
65            emphasis_style: MKStandardMapEmphasisStyle,
66        ) -> Id<Self>;
67
68        #[method(emphasisStyle)]
69        pub unsafe fn emphasisStyle(&self) -> MKStandardMapEmphasisStyle;
70
71        #[method(setEmphasisStyle:)]
72        pub unsafe fn setEmphasisStyle(&self, emphasis_style: MKStandardMapEmphasisStyle);
73
74        #[cfg(feature = "MapKit_MKPointOfInterestFilter")]
75        #[method_id(@__retain_semantics Other pointOfInterestFilter)]
76        pub unsafe fn pointOfInterestFilter(&self) -> Option<Id<MKPointOfInterestFilter>>;
77
78        #[cfg(feature = "MapKit_MKPointOfInterestFilter")]
79        #[method(setPointOfInterestFilter:)]
80        pub unsafe fn setPointOfInterestFilter(
81            &self,
82            point_of_interest_filter: Option<&MKPointOfInterestFilter>,
83        );
84
85        #[method(showsTraffic)]
86        pub unsafe fn showsTraffic(&self) -> bool;
87
88        #[method(setShowsTraffic:)]
89        pub unsafe fn setShowsTraffic(&self, shows_traffic: bool);
90    }
91);
92
93extern_methods!(
94    /// Methods declared on superclass `MKMapConfiguration`
95    #[cfg(feature = "MapKit_MKStandardMapConfiguration")]
96    unsafe impl MKStandardMapConfiguration {
97        #[method_id(@__retain_semantics New new)]
98        pub unsafe fn new() -> Id<Self>;
99    }
100);