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 unsafe fn functionWithName(name: &CAValueFunctionName) -> Option<Retained<Self>>;
37
38        #[unsafe(method(name))]
39        #[unsafe(method_family = none)]
40        pub unsafe 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 unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}
56
57extern "C" {
58    /// Value function names. *
59    ///
60    /// See also [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatex?language=objc)
61    pub static kCAValueFunctionRotateX: &'static CAValueFunctionName;
62}
63
64extern "C" {
65    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatey?language=objc)
66    pub static kCAValueFunctionRotateY: &'static CAValueFunctionName;
67}
68
69extern "C" {
70    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionrotatez?language=objc)
71    pub static kCAValueFunctionRotateZ: &'static CAValueFunctionName;
72}
73
74extern "C" {
75    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscale?language=objc)
76    pub static kCAValueFunctionScale: &'static CAValueFunctionName;
77}
78
79extern "C" {
80    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalex?language=objc)
81    pub static kCAValueFunctionScaleX: &'static CAValueFunctionName;
82}
83
84extern "C" {
85    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscaley?language=objc)
86    pub static kCAValueFunctionScaleY: &'static CAValueFunctionName;
87}
88
89extern "C" {
90    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctionscalez?language=objc)
91    pub static kCAValueFunctionScaleZ: &'static CAValueFunctionName;
92}
93
94extern "C" {
95    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslate?language=objc)
96    pub static kCAValueFunctionTranslate: &'static CAValueFunctionName;
97}
98
99extern "C" {
100    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatex?language=objc)
101    pub static kCAValueFunctionTranslateX: &'static CAValueFunctionName;
102}
103
104extern "C" {
105    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatey?language=objc)
106    pub static kCAValueFunctionTranslateY: &'static CAValueFunctionName;
107}
108
109extern "C" {
110    /// [Apple's documentation](https://developer.apple.com/documentation/quartzcore/kcavaluefunctiontranslatez?language=objc)
111    pub static kCAValueFunctionTranslateZ: &'static CAValueFunctionName;
112}