objc2_ml_compute/generated/
MLCPaddingLayer.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(MLCLayer, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "MLCLayer")]
17 #[deprecated]
18 pub struct MLCPaddingLayer;
19);
20
21#[cfg(feature = "MLCLayer")]
22extern_conformance!(
23 unsafe impl NSCopying for MLCPaddingLayer {}
24);
25
26#[cfg(feature = "MLCLayer")]
27unsafe impl CopyingHelper for MLCPaddingLayer {
28 type Result = Self;
29}
30
31#[cfg(feature = "MLCLayer")]
32extern_conformance!(
33 unsafe impl NSObjectProtocol for MLCPaddingLayer {}
34);
35
36#[cfg(feature = "MLCLayer")]
37impl MLCPaddingLayer {
38 extern_methods!(
39 #[cfg(feature = "MLCTypes")]
40 #[deprecated]
42 #[unsafe(method(paddingType))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn paddingType(&self) -> MLCPaddingType;
45
46 #[deprecated]
48 #[unsafe(method(paddingLeft))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn paddingLeft(&self) -> NSUInteger;
51
52 #[deprecated]
54 #[unsafe(method(paddingRight))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn paddingRight(&self) -> NSUInteger;
57
58 #[deprecated]
60 #[unsafe(method(paddingTop))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn paddingTop(&self) -> NSUInteger;
63
64 #[deprecated]
66 #[unsafe(method(paddingBottom))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn paddingBottom(&self) -> NSUInteger;
69
70 #[deprecated]
72 #[unsafe(method(constantValue))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn constantValue(&self) -> c_float;
75
76 #[deprecated]
82 #[unsafe(method(layerWithReflectionPadding:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn layerWithReflectionPadding(padding: &NSArray<NSNumber>) -> Retained<Self>;
85
86 #[deprecated]
92 #[unsafe(method(layerWithSymmetricPadding:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn layerWithSymmetricPadding(padding: &NSArray<NSNumber>) -> Retained<Self>;
95
96 #[deprecated]
102 #[unsafe(method(layerWithZeroPadding:))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn layerWithZeroPadding(padding: &NSArray<NSNumber>) -> Retained<Self>;
105
106 #[deprecated]
114 #[unsafe(method(layerWithConstantPadding:constantValue:))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn layerWithConstantPadding_constantValue(
117 padding: &NSArray<NSNumber>,
118 constant_value: c_float,
119 ) -> Retained<Self>;
120 );
121}
122
123#[cfg(feature = "MLCLayer")]
125impl MLCPaddingLayer {
126 extern_methods!(
127 #[deprecated]
128 #[unsafe(method(new))]
129 #[unsafe(method_family = new)]
130 pub unsafe fn new() -> Retained<Self>;
131
132 #[deprecated]
133 #[unsafe(method(init))]
134 #[unsafe(method_family = init)]
135 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
136 );
137}