1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

// NS_TYPED_ENUM
pub type CAMediaTimingFillMode = NSString;

extern_protocol!(
    pub unsafe trait CAMediaTiming {
        #[method(beginTime)]
        unsafe fn beginTime(&self) -> CFTimeInterval;

        #[method(setBeginTime:)]
        unsafe fn setBeginTime(&self, begin_time: CFTimeInterval);

        #[method(duration)]
        unsafe fn duration(&self) -> CFTimeInterval;

        #[method(setDuration:)]
        unsafe fn setDuration(&self, duration: CFTimeInterval);

        #[method(speed)]
        unsafe fn speed(&self) -> c_float;

        #[method(setSpeed:)]
        unsafe fn setSpeed(&self, speed: c_float);

        #[method(timeOffset)]
        unsafe fn timeOffset(&self) -> CFTimeInterval;

        #[method(setTimeOffset:)]
        unsafe fn setTimeOffset(&self, time_offset: CFTimeInterval);

        #[method(repeatCount)]
        unsafe fn repeatCount(&self) -> c_float;

        #[method(setRepeatCount:)]
        unsafe fn setRepeatCount(&self, repeat_count: c_float);

        #[method(repeatDuration)]
        unsafe fn repeatDuration(&self) -> CFTimeInterval;

        #[method(setRepeatDuration:)]
        unsafe fn setRepeatDuration(&self, repeat_duration: CFTimeInterval);

        #[method(autoreverses)]
        unsafe fn autoreverses(&self) -> bool;

        #[method(setAutoreverses:)]
        unsafe fn setAutoreverses(&self, autoreverses: bool);

        #[method_id(@__retain_semantics Other fillMode)]
        unsafe fn fillMode(&self) -> Retained<CAMediaTimingFillMode>;

        #[method(setFillMode:)]
        unsafe fn setFillMode(&self, fill_mode: &CAMediaTimingFillMode);
    }

    unsafe impl ProtocolType for dyn CAMediaTiming {}
);

extern "C" {
    pub static kCAFillModeForwards: &'static CAMediaTimingFillMode;
}

extern "C" {
    pub static kCAFillModeBackwards: &'static CAMediaTimingFillMode;
}

extern "C" {
    pub static kCAFillModeBoth: &'static CAMediaTimingFillMode;
}

extern "C" {
    pub static kCAFillModeRemoved: &'static CAMediaTimingFillMode;
}