objc2_web_kit/generated/
DOMHTMLTableCellElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domhtmltablecellelement?language=objc)
12    #[unsafe(super(
13        DOMHTMLElement,
14        DOMElement,
15        DOMNode,
16        DOMObject,
17        WebScriptObject,
18        NSObject
19    ))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    #[cfg(all(
22        feature = "DOMElement",
23        feature = "DOMHTMLElement",
24        feature = "DOMNode",
25        feature = "DOMObject",
26        feature = "WebScriptObject"
27    ))]
28    #[deprecated]
29    pub struct DOMHTMLTableCellElement;
30);
31
32#[cfg(all(
33    feature = "DOMElement",
34    feature = "DOMEventTarget",
35    feature = "DOMHTMLElement",
36    feature = "DOMNode",
37    feature = "DOMObject",
38    feature = "WebScriptObject"
39))]
40extern_conformance!(
41    unsafe impl DOMEventTarget for DOMHTMLTableCellElement {}
42);
43
44#[cfg(all(
45    feature = "DOMElement",
46    feature = "DOMHTMLElement",
47    feature = "DOMNode",
48    feature = "DOMObject",
49    feature = "WebScriptObject"
50))]
51extern_conformance!(
52    unsafe impl NSCopying for DOMHTMLTableCellElement {}
53);
54
55#[cfg(all(
56    feature = "DOMElement",
57    feature = "DOMHTMLElement",
58    feature = "DOMNode",
59    feature = "DOMObject",
60    feature = "WebScriptObject"
61))]
62unsafe impl CopyingHelper for DOMHTMLTableCellElement {
63    type Result = Self;
64}
65
66#[cfg(all(
67    feature = "DOMElement",
68    feature = "DOMHTMLElement",
69    feature = "DOMNode",
70    feature = "DOMObject",
71    feature = "WebScriptObject"
72))]
73extern_conformance!(
74    unsafe impl NSObjectProtocol for DOMHTMLTableCellElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLTableCellElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(cellIndex))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn cellIndex(&self) -> c_int;
90
91        #[deprecated]
92        #[unsafe(method(align))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn align(&self) -> Retained<NSString>;
95
96        /// Setter for [`align`][Self::align].
97        ///
98        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
99        #[deprecated]
100        #[unsafe(method(setAlign:))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn setAlign(&self, align: Option<&NSString>);
103
104        #[deprecated]
105        #[unsafe(method(axis))]
106        #[unsafe(method_family = none)]
107        pub unsafe fn axis(&self) -> Retained<NSString>;
108
109        /// Setter for [`axis`][Self::axis].
110        ///
111        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
112        #[deprecated]
113        #[unsafe(method(setAxis:))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn setAxis(&self, axis: Option<&NSString>);
116
117        #[deprecated]
118        #[unsafe(method(bgColor))]
119        #[unsafe(method_family = none)]
120        pub unsafe fn bgColor(&self) -> Retained<NSString>;
121
122        /// Setter for [`bgColor`][Self::bgColor].
123        ///
124        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
125        #[deprecated]
126        #[unsafe(method(setBgColor:))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
129
130        #[deprecated]
131        #[unsafe(method(ch))]
132        #[unsafe(method_family = none)]
133        pub unsafe fn ch(&self) -> Retained<NSString>;
134
135        /// Setter for [`ch`][Self::ch].
136        ///
137        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
138        #[deprecated]
139        #[unsafe(method(setCh:))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn setCh(&self, ch: Option<&NSString>);
142
143        #[deprecated]
144        #[unsafe(method(chOff))]
145        #[unsafe(method_family = none)]
146        pub unsafe fn chOff(&self) -> Retained<NSString>;
147
148        /// Setter for [`chOff`][Self::chOff].
149        ///
150        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
151        #[deprecated]
152        #[unsafe(method(setChOff:))]
153        #[unsafe(method_family = none)]
154        pub unsafe fn setChOff(&self, ch_off: Option<&NSString>);
155
156        #[deprecated]
157        #[unsafe(method(colSpan))]
158        #[unsafe(method_family = none)]
159        pub unsafe fn colSpan(&self) -> c_int;
160
161        /// Setter for [`colSpan`][Self::colSpan].
162        #[deprecated]
163        #[unsafe(method(setColSpan:))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn setColSpan(&self, col_span: c_int);
166
167        #[deprecated]
168        #[unsafe(method(rowSpan))]
169        #[unsafe(method_family = none)]
170        pub unsafe fn rowSpan(&self) -> c_int;
171
172        /// Setter for [`rowSpan`][Self::rowSpan].
173        #[deprecated]
174        #[unsafe(method(setRowSpan:))]
175        #[unsafe(method_family = none)]
176        pub unsafe fn setRowSpan(&self, row_span: c_int);
177
178        #[deprecated]
179        #[unsafe(method(headers))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn headers(&self) -> Retained<NSString>;
182
183        /// Setter for [`headers`][Self::headers].
184        ///
185        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
186        #[deprecated]
187        #[unsafe(method(setHeaders:))]
188        #[unsafe(method_family = none)]
189        pub unsafe fn setHeaders(&self, headers: Option<&NSString>);
190
191        #[deprecated]
192        #[unsafe(method(height))]
193        #[unsafe(method_family = none)]
194        pub unsafe fn height(&self) -> Retained<NSString>;
195
196        /// Setter for [`height`][Self::height].
197        ///
198        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
199        #[deprecated]
200        #[unsafe(method(setHeight:))]
201        #[unsafe(method_family = none)]
202        pub unsafe fn setHeight(&self, height: Option<&NSString>);
203
204        #[deprecated]
205        #[unsafe(method(noWrap))]
206        #[unsafe(method_family = none)]
207        pub unsafe fn noWrap(&self) -> bool;
208
209        /// Setter for [`noWrap`][Self::noWrap].
210        #[deprecated]
211        #[unsafe(method(setNoWrap:))]
212        #[unsafe(method_family = none)]
213        pub unsafe fn setNoWrap(&self, no_wrap: bool);
214
215        #[deprecated]
216        #[unsafe(method(vAlign))]
217        #[unsafe(method_family = none)]
218        pub unsafe fn vAlign(&self) -> Retained<NSString>;
219
220        /// Setter for [`vAlign`][Self::vAlign].
221        ///
222        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
223        #[deprecated]
224        #[unsafe(method(setVAlign:))]
225        #[unsafe(method_family = none)]
226        pub unsafe fn setVAlign(&self, v_align: Option<&NSString>);
227
228        #[deprecated]
229        #[unsafe(method(width))]
230        #[unsafe(method_family = none)]
231        pub unsafe fn width(&self) -> Retained<NSString>;
232
233        /// Setter for [`width`][Self::width].
234        ///
235        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
236        #[deprecated]
237        #[unsafe(method(setWidth:))]
238        #[unsafe(method_family = none)]
239        pub unsafe fn setWidth(&self, width: Option<&NSString>);
240
241        #[deprecated]
242        #[unsafe(method(abbr))]
243        #[unsafe(method_family = none)]
244        pub unsafe fn abbr(&self) -> Retained<NSString>;
245
246        /// Setter for [`abbr`][Self::abbr].
247        ///
248        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
249        #[deprecated]
250        #[unsafe(method(setAbbr:))]
251        #[unsafe(method_family = none)]
252        pub unsafe fn setAbbr(&self, abbr: Option<&NSString>);
253
254        #[deprecated]
255        #[unsafe(method(scope))]
256        #[unsafe(method_family = none)]
257        pub unsafe fn scope(&self) -> Retained<NSString>;
258
259        /// Setter for [`scope`][Self::scope].
260        ///
261        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
262        #[deprecated]
263        #[unsafe(method(setScope:))]
264        #[unsafe(method_family = none)]
265        pub unsafe fn setScope(&self, scope: Option<&NSString>);
266    );
267}
268
269/// Methods declared on superclass `DOMObject`.
270#[cfg(all(
271    feature = "DOMElement",
272    feature = "DOMHTMLElement",
273    feature = "DOMNode",
274    feature = "DOMObject",
275    feature = "WebScriptObject"
276))]
277impl DOMHTMLTableCellElement {
278    extern_methods!(
279        #[deprecated]
280        #[unsafe(method(init))]
281        #[unsafe(method_family = init)]
282        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
283    );
284}
285
286/// Methods declared on superclass `NSObject`.
287#[cfg(all(
288    feature = "DOMElement",
289    feature = "DOMHTMLElement",
290    feature = "DOMNode",
291    feature = "DOMObject",
292    feature = "WebScriptObject"
293))]
294impl DOMHTMLTableCellElement {
295    extern_methods!(
296        #[unsafe(method(new))]
297        #[unsafe(method_family = new)]
298        pub unsafe fn new() -> Retained<Self>;
299    );
300}