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
20unsafe impl NSCoding for CAValueFunction {}
21
22unsafe impl NSObjectProtocol for CAValueFunction {}
23
24unsafe impl NSSecureCoding for CAValueFunction {}
25
26impl CAValueFunction {
27    extern_methods!(
28        #[unsafe(method(functionWithName:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn functionWithName(name: &CAValueFunctionName) -> Option<Retained<Self>>;
31
32        #[unsafe(method(name))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn name(&self) -> Retained<CAValueFunctionName>;
35    );
36}
37
38/// Methods declared on superclass `NSObject`.
39impl CAValueFunction {
40    extern_methods!(
41        #[unsafe(method(init))]
42        #[unsafe(method_family = init)]
43        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44
45        #[unsafe(method(new))]
46        #[unsafe(method_family = new)]
47        pub unsafe fn new() -> Retained<Self>;
48    );
49}
50
51extern "C" {
52    /// Value function names. *
53    ///
54    /// See also [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatex?language=objc)
55    pub static kCAValueFunctionRotateX: &'static CAValueFunctionName;
56}
57
58extern "C" {
59    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatey?language=objc)
60    pub static kCAValueFunctionRotateY: &'static CAValueFunctionName;
61}
62
63extern "C" {
64    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatez?language=objc)
65    pub static kCAValueFunctionRotateZ: &'static CAValueFunctionName;
66}
67
68extern "C" {
69    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscale?language=objc)
70    pub static kCAValueFunctionScale: &'static CAValueFunctionName;
71}
72
73extern "C" {
74    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalex?language=objc)
75    pub static kCAValueFunctionScaleX: &'static CAValueFunctionName;
76}
77
78extern "C" {
79    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscaley?language=objc)
80    pub static kCAValueFunctionScaleY: &'static CAValueFunctionName;
81}
82
83extern "C" {
84    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalez?language=objc)
85    pub static kCAValueFunctionScaleZ: &'static CAValueFunctionName;
86}
87
88extern "C" {
89    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslate?language=objc)
90    pub static kCAValueFunctionTranslate: &'static CAValueFunctionName;
91}
92
93extern "C" {
94    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatex?language=objc)
95    pub static kCAValueFunctionTranslateX: &'static CAValueFunctionName;
96}
97
98extern "C" {
99    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatey?language=objc)
100    pub static kCAValueFunctionTranslateY: &'static CAValueFunctionName;
101}
102
103extern "C" {
104    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatez?language=objc)
105    pub static kCAValueFunctionTranslateZ: &'static CAValueFunctionName;
106}