objc2_scene_kit/generated/
SCNTransaction.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9#[cfg(feature = "objc2-quartz-core")]
10#[cfg(not(target_os = "watchos"))]
11use objc2_quartz_core::*;
12
13use crate::*;
14
15extern_class!(
16 #[unsafe(super(NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 pub struct SCNTransaction;
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for SCNTransaction {}
24);
25
26impl SCNTransaction {
27 extern_methods!(
28 #[unsafe(method(begin))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn begin();
31
32 #[unsafe(method(commit))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn commit();
35
36 #[unsafe(method(flush))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn flush();
39
40 #[unsafe(method(lock))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn lock();
43
44 #[unsafe(method(unlock))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn unlock();
47
48 #[cfg(feature = "objc2-core-foundation")]
49 #[unsafe(method(animationDuration))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn animationDuration() -> CFTimeInterval;
52
53 #[cfg(feature = "objc2-core-foundation")]
54 #[unsafe(method(setAnimationDuration:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn setAnimationDuration(animation_duration: CFTimeInterval);
58
59 #[cfg(feature = "objc2-quartz-core")]
60 #[cfg(not(target_os = "watchos"))]
61 #[unsafe(method(animationTimingFunction))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn animationTimingFunction() -> Option<Retained<CAMediaTimingFunction>>;
64
65 #[cfg(feature = "objc2-quartz-core")]
66 #[cfg(not(target_os = "watchos"))]
67 #[unsafe(method(setAnimationTimingFunction:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn setAnimationTimingFunction(
71 animation_timing_function: Option<&CAMediaTimingFunction>,
72 );
73
74 #[unsafe(method(disableActions))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn disableActions() -> bool;
77
78 #[unsafe(method(setDisableActions:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn setDisableActions(disable_actions: bool);
82
83 #[cfg(feature = "block2")]
84 #[unsafe(method(completionBlock))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn completionBlock() -> *mut block2::DynBlock<dyn Fn()>;
87
88 #[cfg(feature = "block2")]
89 #[unsafe(method(setCompletionBlock:))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn setCompletionBlock(completion_block: Option<&block2::DynBlock<dyn Fn()>>);
93
94 #[unsafe(method(valueForKey:))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn valueForKey(key: &NSString) -> Option<Retained<AnyObject>>;
97
98 #[unsafe(method(setValue:forKey:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setValue_forKey(value: Option<&AnyObject>, key: &NSString);
101 );
102}
103
104impl SCNTransaction {
106 extern_methods!(
107 #[unsafe(method(init))]
108 #[unsafe(method_family = init)]
109 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
110
111 #[unsafe(method(new))]
112 #[unsafe(method_family = new)]
113 pub unsafe fn new() -> Retained<Self>;
114 );
115}