objc2_event_kit/generated/
EKObject.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct EKObject;
14);
15
16unsafe impl NSObjectProtocol for EKObject {}
17
18impl EKObject {
19 extern_methods!(
20 #[unsafe(method(hasChanges))]
21 #[unsafe(method_family = none)]
22 pub unsafe fn hasChanges(&self) -> bool;
23
24 #[unsafe(method(isNew))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn isNew(&self) -> bool;
27
28 #[unsafe(method(reset))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn reset(&self);
31
32 #[unsafe(method(rollback))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn rollback(&self);
35
36 #[unsafe(method(refresh))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn refresh(&self) -> bool;
39 );
40}
41
42impl EKObject {
44 extern_methods!(
45 #[unsafe(method(init))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49 #[unsafe(method(new))]
50 #[unsafe(method_family = new)]
51 pub unsafe fn new() -> Retained<Self>;
52 );
53}