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