objc2_quartz_core/generated/
CAValueFunction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/cavaluefunctionname?language=objc)
10// NS_TYPED_ENUM
11pub type CAValueFunctionName = NSString;
12
13extern_class!(
14    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/cavaluefunction?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct CAValueFunction;
18);
19
20extern_conformance!(
21    unsafe impl NSCoding for CAValueFunction {}
22);
23
24extern_conformance!(
25    unsafe impl NSObjectProtocol for CAValueFunction {}
26);
27
28extern_conformance!(
29    unsafe impl NSSecureCoding for CAValueFunction {}
30);
31
32impl CAValueFunction {
33    extern_methods!(
34        #[unsafe(method(functionWithName:))]
35        #[unsafe(method_family = none)]
36        pub fn functionWithName(name: &CAValueFunctionName) -> Option<Retained<Self>>;
37
38        #[unsafe(method(name))]
39        #[unsafe(method_family = none)]
40        pub fn name(&self) -> Retained<CAValueFunctionName>;
41    );
42}
43
44/// Methods declared on superclass `NSObject`.
45impl CAValueFunction {
46    extern_methods!(
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub fn new() -> Retained<Self>;
54    );
55}
56
57impl DefaultRetained for CAValueFunction {
58    #[inline]
59    fn default_retained() -> Retained<Self> {
60        Self::new()
61    }
62}
63
64extern "C" {
65    /// Value function names. *
66    ///
67    /// See also [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatex?language=objc)
68    pub static kCAValueFunctionRotateX: &'static CAValueFunctionName;
69}
70
71extern "C" {
72    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatey?language=objc)
73    pub static kCAValueFunctionRotateY: &'static CAValueFunctionName;
74}
75
76extern "C" {
77    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatez?language=objc)
78    pub static kCAValueFunctionRotateZ: &'static CAValueFunctionName;
79}
80
81extern "C" {
82    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscale?language=objc)
83    pub static kCAValueFunctionScale: &'static CAValueFunctionName;
84}
85
86extern "C" {
87    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalex?language=objc)
88    pub static kCAValueFunctionScaleX: &'static CAValueFunctionName;
89}
90
91extern "C" {
92    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscaley?language=objc)
93    pub static kCAValueFunctionScaleY: &'static CAValueFunctionName;
94}
95
96extern "C" {
97    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalez?language=objc)
98    pub static kCAValueFunctionScaleZ: &'static CAValueFunctionName;
99}
100
101extern "C" {
102    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslate?language=objc)
103    pub static kCAValueFunctionTranslate: &'static CAValueFunctionName;
104}
105
106extern "C" {
107    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatex?language=objc)
108    pub static kCAValueFunctionTranslateX: &'static CAValueFunctionName;
109}
110
111extern "C" {
112    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatey?language=objc)
113    pub static kCAValueFunctionTranslateY: &'static CAValueFunctionName;
114}
115
116extern "C" {
117    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatez?language=objc)
118    pub static kCAValueFunctionTranslateZ: &'static CAValueFunctionName;
119}