objc2_quartz_core/generated/
CAMediaTiming.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
10use crate::*;
11
12pub type CAMediaTimingFillMode = NSString;
15
16extern_protocol!(
17 pub unsafe trait CAMediaTiming {
19 #[cfg(feature = "objc2-core-foundation")]
20 #[unsafe(method(beginTime))]
21 #[unsafe(method_family = none)]
22 unsafe fn beginTime(&self) -> CFTimeInterval;
23
24 #[cfg(feature = "objc2-core-foundation")]
25 #[unsafe(method(setBeginTime:))]
27 #[unsafe(method_family = none)]
28 unsafe fn setBeginTime(&self, begin_time: CFTimeInterval);
29
30 #[cfg(feature = "objc2-core-foundation")]
31 #[unsafe(method(duration))]
32 #[unsafe(method_family = none)]
33 unsafe fn duration(&self) -> CFTimeInterval;
34
35 #[cfg(feature = "objc2-core-foundation")]
36 #[unsafe(method(setDuration:))]
38 #[unsafe(method_family = none)]
39 unsafe fn setDuration(&self, duration: CFTimeInterval);
40
41 #[unsafe(method(speed))]
42 #[unsafe(method_family = none)]
43 unsafe fn speed(&self) -> c_float;
44
45 #[unsafe(method(setSpeed:))]
47 #[unsafe(method_family = none)]
48 unsafe fn setSpeed(&self, speed: c_float);
49
50 #[cfg(feature = "objc2-core-foundation")]
51 #[unsafe(method(timeOffset))]
52 #[unsafe(method_family = none)]
53 unsafe fn timeOffset(&self) -> CFTimeInterval;
54
55 #[cfg(feature = "objc2-core-foundation")]
56 #[unsafe(method(setTimeOffset:))]
58 #[unsafe(method_family = none)]
59 unsafe fn setTimeOffset(&self, time_offset: CFTimeInterval);
60
61 #[unsafe(method(repeatCount))]
62 #[unsafe(method_family = none)]
63 unsafe fn repeatCount(&self) -> c_float;
64
65 #[unsafe(method(setRepeatCount:))]
67 #[unsafe(method_family = none)]
68 unsafe fn setRepeatCount(&self, repeat_count: c_float);
69
70 #[cfg(feature = "objc2-core-foundation")]
71 #[unsafe(method(repeatDuration))]
72 #[unsafe(method_family = none)]
73 unsafe fn repeatDuration(&self) -> CFTimeInterval;
74
75 #[cfg(feature = "objc2-core-foundation")]
76 #[unsafe(method(setRepeatDuration:))]
78 #[unsafe(method_family = none)]
79 unsafe fn setRepeatDuration(&self, repeat_duration: CFTimeInterval);
80
81 #[unsafe(method(autoreverses))]
82 #[unsafe(method_family = none)]
83 unsafe fn autoreverses(&self) -> bool;
84
85 #[unsafe(method(setAutoreverses:))]
87 #[unsafe(method_family = none)]
88 unsafe fn setAutoreverses(&self, autoreverses: bool);
89
90 #[unsafe(method(fillMode))]
91 #[unsafe(method_family = none)]
92 unsafe fn fillMode(&self) -> Retained<CAMediaTimingFillMode>;
93
94 #[unsafe(method(setFillMode:))]
96 #[unsafe(method_family = none)]
97 unsafe fn setFillMode(&self, fill_mode: &CAMediaTimingFillMode);
98 }
99);
100
101extern "C" {
102 pub static kCAFillModeForwards: &'static CAMediaTimingFillMode;
104}
105
106extern "C" {
107 pub static kCAFillModeBackwards: &'static CAMediaTimingFillMode;
109}
110
111extern "C" {
112 pub static kCAFillModeBoth: &'static CAMediaTimingFillMode;
114}
115
116extern "C" {
117 pub static kCAFillModeRemoved: &'static CAMediaTimingFillMode;
119}