objc2_web_kit/generated/
DOMHTMLTableElement.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/domhtmltableelement?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 DOMHTMLTableElement;
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 DOMHTMLTableElement {}
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 DOMHTMLTableElement {}
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 DOMHTMLTableElement {
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 DOMHTMLTableElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLTableElement {
85    extern_methods!(
86        #[cfg(feature = "DOMHTMLTableCaptionElement")]
87        #[deprecated]
88        #[unsafe(method(caption))]
89        #[unsafe(method_family = none)]
90        pub unsafe fn caption(&self) -> Option<Retained<DOMHTMLTableCaptionElement>>;
91
92        #[cfg(feature = "DOMHTMLTableCaptionElement")]
93        /// Setter for [`caption`][Self::caption].
94        ///
95        /// # Safety
96        ///
97        /// `caption` might not allow `None`.
98        #[deprecated]
99        #[unsafe(method(setCaption:))]
100        #[unsafe(method_family = none)]
101        pub unsafe fn setCaption(&self, caption: Option<&DOMHTMLTableCaptionElement>);
102
103        #[cfg(feature = "DOMHTMLTableSectionElement")]
104        #[deprecated]
105        #[unsafe(method(tHead))]
106        #[unsafe(method_family = none)]
107        pub unsafe fn tHead(&self) -> Option<Retained<DOMHTMLTableSectionElement>>;
108
109        #[cfg(feature = "DOMHTMLTableSectionElement")]
110        /// Setter for [`tHead`][Self::tHead].
111        ///
112        /// # Safety
113        ///
114        /// `t_head` might not allow `None`.
115        #[deprecated]
116        #[unsafe(method(setTHead:))]
117        #[unsafe(method_family = none)]
118        pub unsafe fn setTHead(&self, t_head: Option<&DOMHTMLTableSectionElement>);
119
120        #[cfg(feature = "DOMHTMLTableSectionElement")]
121        #[deprecated]
122        #[unsafe(method(tFoot))]
123        #[unsafe(method_family = none)]
124        pub unsafe fn tFoot(&self) -> Option<Retained<DOMHTMLTableSectionElement>>;
125
126        #[cfg(feature = "DOMHTMLTableSectionElement")]
127        /// Setter for [`tFoot`][Self::tFoot].
128        ///
129        /// # Safety
130        ///
131        /// `t_foot` might not allow `None`.
132        #[deprecated]
133        #[unsafe(method(setTFoot:))]
134        #[unsafe(method_family = none)]
135        pub unsafe fn setTFoot(&self, t_foot: Option<&DOMHTMLTableSectionElement>);
136
137        #[cfg(feature = "DOMHTMLCollection")]
138        #[deprecated]
139        #[unsafe(method(rows))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn rows(&self) -> Option<Retained<DOMHTMLCollection>>;
142
143        #[cfg(feature = "DOMHTMLCollection")]
144        #[deprecated]
145        #[unsafe(method(tBodies))]
146        #[unsafe(method_family = none)]
147        pub unsafe fn tBodies(&self) -> Option<Retained<DOMHTMLCollection>>;
148
149        #[deprecated]
150        #[unsafe(method(align))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn align(&self) -> Retained<NSString>;
153
154        /// Setter for [`align`][Self::align].
155        ///
156        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
157        #[deprecated]
158        #[unsafe(method(setAlign:))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn setAlign(&self, align: Option<&NSString>);
161
162        #[deprecated]
163        #[unsafe(method(bgColor))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn bgColor(&self) -> Retained<NSString>;
166
167        /// Setter for [`bgColor`][Self::bgColor].
168        ///
169        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
170        #[deprecated]
171        #[unsafe(method(setBgColor:))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
174
175        #[deprecated]
176        #[unsafe(method(border))]
177        #[unsafe(method_family = none)]
178        pub unsafe fn border(&self) -> Retained<NSString>;
179
180        /// Setter for [`border`][Self::border].
181        ///
182        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
183        #[deprecated]
184        #[unsafe(method(setBorder:))]
185        #[unsafe(method_family = none)]
186        pub unsafe fn setBorder(&self, border: Option<&NSString>);
187
188        #[deprecated]
189        #[unsafe(method(cellPadding))]
190        #[unsafe(method_family = none)]
191        pub unsafe fn cellPadding(&self) -> Retained<NSString>;
192
193        /// Setter for [`cellPadding`][Self::cellPadding].
194        ///
195        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
196        #[deprecated]
197        #[unsafe(method(setCellPadding:))]
198        #[unsafe(method_family = none)]
199        pub unsafe fn setCellPadding(&self, cell_padding: Option<&NSString>);
200
201        #[deprecated]
202        #[unsafe(method(cellSpacing))]
203        #[unsafe(method_family = none)]
204        pub unsafe fn cellSpacing(&self) -> Retained<NSString>;
205
206        /// Setter for [`cellSpacing`][Self::cellSpacing].
207        ///
208        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
209        #[deprecated]
210        #[unsafe(method(setCellSpacing:))]
211        #[unsafe(method_family = none)]
212        pub unsafe fn setCellSpacing(&self, cell_spacing: Option<&NSString>);
213
214        #[deprecated]
215        #[unsafe(method(frameBorders))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn frameBorders(&self) -> Retained<NSString>;
218
219        /// Setter for [`frameBorders`][Self::frameBorders].
220        ///
221        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
222        #[deprecated]
223        #[unsafe(method(setFrameBorders:))]
224        #[unsafe(method_family = none)]
225        pub unsafe fn setFrameBorders(&self, frame_borders: Option<&NSString>);
226
227        #[deprecated]
228        #[unsafe(method(rules))]
229        #[unsafe(method_family = none)]
230        pub unsafe fn rules(&self) -> Retained<NSString>;
231
232        /// Setter for [`rules`][Self::rules].
233        ///
234        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
235        #[deprecated]
236        #[unsafe(method(setRules:))]
237        #[unsafe(method_family = none)]
238        pub unsafe fn setRules(&self, rules: Option<&NSString>);
239
240        #[deprecated]
241        #[unsafe(method(summary))]
242        #[unsafe(method_family = none)]
243        pub unsafe fn summary(&self) -> Retained<NSString>;
244
245        /// Setter for [`summary`][Self::summary].
246        ///
247        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
248        #[deprecated]
249        #[unsafe(method(setSummary:))]
250        #[unsafe(method_family = none)]
251        pub unsafe fn setSummary(&self, summary: Option<&NSString>);
252
253        #[deprecated]
254        #[unsafe(method(width))]
255        #[unsafe(method_family = none)]
256        pub unsafe fn width(&self) -> Retained<NSString>;
257
258        /// Setter for [`width`][Self::width].
259        ///
260        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
261        #[deprecated]
262        #[unsafe(method(setWidth:))]
263        #[unsafe(method_family = none)]
264        pub unsafe fn setWidth(&self, width: Option<&NSString>);
265
266        #[deprecated]
267        #[unsafe(method(createTHead))]
268        #[unsafe(method_family = none)]
269        pub unsafe fn createTHead(&self) -> Option<Retained<DOMHTMLElement>>;
270
271        #[deprecated]
272        #[unsafe(method(deleteTHead))]
273        #[unsafe(method_family = none)]
274        pub unsafe fn deleteTHead(&self);
275
276        #[deprecated]
277        #[unsafe(method(createTFoot))]
278        #[unsafe(method_family = none)]
279        pub unsafe fn createTFoot(&self) -> Option<Retained<DOMHTMLElement>>;
280
281        #[deprecated]
282        #[unsafe(method(deleteTFoot))]
283        #[unsafe(method_family = none)]
284        pub unsafe fn deleteTFoot(&self);
285
286        #[deprecated]
287        #[unsafe(method(createCaption))]
288        #[unsafe(method_family = none)]
289        pub unsafe fn createCaption(&self) -> Option<Retained<DOMHTMLElement>>;
290
291        #[deprecated]
292        #[unsafe(method(deleteCaption))]
293        #[unsafe(method_family = none)]
294        pub unsafe fn deleteCaption(&self);
295
296        #[deprecated]
297        #[unsafe(method(insertRow:))]
298        #[unsafe(method_family = none)]
299        pub unsafe fn insertRow(&self, index: c_int) -> Option<Retained<DOMHTMLElement>>;
300
301        #[deprecated]
302        #[unsafe(method(deleteRow:))]
303        #[unsafe(method_family = none)]
304        pub unsafe fn deleteRow(&self, index: c_int);
305    );
306}
307
308/// Methods declared on superclass `DOMObject`.
309#[cfg(all(
310    feature = "DOMElement",
311    feature = "DOMHTMLElement",
312    feature = "DOMNode",
313    feature = "DOMObject",
314    feature = "WebScriptObject"
315))]
316impl DOMHTMLTableElement {
317    extern_methods!(
318        #[deprecated]
319        #[unsafe(method(init))]
320        #[unsafe(method_family = init)]
321        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
322    );
323}
324
325/// Methods declared on superclass `NSObject`.
326#[cfg(all(
327    feature = "DOMElement",
328    feature = "DOMHTMLElement",
329    feature = "DOMNode",
330    feature = "DOMObject",
331    feature = "WebScriptObject"
332))]
333impl DOMHTMLTableElement {
334    extern_methods!(
335        #[unsafe(method(new))]
336        #[unsafe(method_family = new)]
337        pub unsafe fn new() -> Retained<Self>;
338    );
339}