objc2_event_kit/generated/
EKObject.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/eventkit/ekobject?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct EKObject;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for EKObject {}
18);
19
20impl EKObject {
21    extern_methods!(
22        #[unsafe(method(hasChanges))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn hasChanges(&self) -> bool;
25
26        #[unsafe(method(isNew))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn isNew(&self) -> bool;
29
30        #[unsafe(method(reset))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn reset(&self);
33
34        #[unsafe(method(rollback))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn rollback(&self);
37
38        #[unsafe(method(refresh))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn refresh(&self) -> bool;
41    );
42}
43
44/// Methods declared on superclass `NSObject`.
45impl EKObject {
46    extern_methods!(
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}