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
59
60
61
62
63
64
65
66
67
68
69
70
71
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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_EKRecurrenceDayOfWeek")]
    pub struct EKRecurrenceDayOfWeek;

    #[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
    unsafe impl ClassType for EKRecurrenceDayOfWeek {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
unsafe impl NSCoding for EKRecurrenceDayOfWeek {}

#[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
unsafe impl NSCopying for EKRecurrenceDayOfWeek {}

#[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
unsafe impl NSObjectProtocol for EKRecurrenceDayOfWeek {}

#[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
unsafe impl NSSecureCoding for EKRecurrenceDayOfWeek {}

extern_methods!(
    #[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
    unsafe impl EKRecurrenceDayOfWeek {
        #[method_id(@__retain_semantics Other dayOfWeek:)]
        pub unsafe fn dayOfWeek(day_of_the_week: EKWeekday) -> Id<Self>;

        #[method_id(@__retain_semantics Other dayOfWeek:weekNumber:)]
        pub unsafe fn dayOfWeek_weekNumber(
            day_of_the_week: EKWeekday,
            week_number: NSInteger,
        ) -> Id<Self>;

        #[method_id(@__retain_semantics Init initWithDayOfTheWeek:weekNumber:)]
        pub unsafe fn initWithDayOfTheWeek_weekNumber(
            this: Allocated<Self>,
            day_of_the_week: EKWeekday,
            week_number: NSInteger,
        ) -> Id<Self>;

        #[method(dayOfTheWeek)]
        pub unsafe fn dayOfTheWeek(&self) -> EKWeekday;

        #[method(weekNumber)]
        pub unsafe fn weekNumber(&self) -> NSInteger;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "EventKit_EKRecurrenceDayOfWeek")]
    unsafe impl EKRecurrenceDayOfWeek {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);