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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/cavaluefunctionname?language=objc)
// NS_TYPED_ENUM
pub type CAValueFunctionName = NSString;
extern_class!(
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/cavaluefunction?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CAValueFunction;
);
extern_conformance!(
unsafe impl NSCoding for CAValueFunction {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for CAValueFunction {}
);
extern_conformance!(
unsafe impl NSSecureCoding for CAValueFunction {}
);
impl CAValueFunction {
extern_methods!(
#[unsafe(method(functionWithName:))]
#[unsafe(method_family = none)]
pub fn functionWithName(name: &CAValueFunctionName) -> Option<Retained<Self>>;
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub fn name(&self) -> Retained<CAValueFunctionName>;
);
}
/// Methods declared on superclass `NSObject`.
impl CAValueFunction {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new() -> Retained<Self>;
);
}
impl DefaultRetained for CAValueFunction {
#[inline]
fn default_retained() -> Retained<Self> {
Self::new()
}
}
extern "C" {
/// Value function names. *
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatex?language=objc)
pub static kCAValueFunctionRotateX: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatey?language=objc)
pub static kCAValueFunctionRotateY: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatez?language=objc)
pub static kCAValueFunctionRotateZ: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscale?language=objc)
pub static kCAValueFunctionScale: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalex?language=objc)
pub static kCAValueFunctionScaleX: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscaley?language=objc)
pub static kCAValueFunctionScaleY: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalez?language=objc)
pub static kCAValueFunctionScaleZ: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslate?language=objc)
pub static kCAValueFunctionTranslate: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatex?language=objc)
pub static kCAValueFunctionTranslateX: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatey?language=objc)
pub static kCAValueFunctionTranslateY: &'static CAValueFunctionName;
}
extern "C" {
/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatez?language=objc)
pub static kCAValueFunctionTranslateZ: &'static CAValueFunctionName;
}