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        #[deprecated]
98        #[unsafe(method(setAlign:))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn setAlign(&self, align: Option<&NSString>);
101
102        #[deprecated]
103        #[unsafe(method(axis))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn axis(&self) -> Retained<NSString>;
106
107        /// Setter for [`axis`][Self::axis].
108        #[deprecated]
109        #[unsafe(method(setAxis:))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn setAxis(&self, axis: Option<&NSString>);
112
113        #[deprecated]
114        #[unsafe(method(bgColor))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn bgColor(&self) -> Retained<NSString>;
117
118        /// Setter for [`bgColor`][Self::bgColor].
119        #[deprecated]
120        #[unsafe(method(setBgColor:))]
121        #[unsafe(method_family = none)]
122        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
123
124        #[deprecated]
125        #[unsafe(method(ch))]
126        #[unsafe(method_family = none)]
127        pub unsafe fn ch(&self) -> Retained<NSString>;
128
129        /// Setter for [`ch`][Self::ch].
130        #[deprecated]
131        #[unsafe(method(setCh:))]
132        #[unsafe(method_family = none)]
133        pub unsafe fn setCh(&self, ch: Option<&NSString>);
134
135        #[deprecated]
136        #[unsafe(method(chOff))]
137        #[unsafe(method_family = none)]
138        pub unsafe fn chOff(&self) -> Retained<NSString>;
139
140        /// Setter for [`chOff`][Self::chOff].
141        #[deprecated]
142        #[unsafe(method(setChOff:))]
143        #[unsafe(method_family = none)]
144        pub unsafe fn setChOff(&self, ch_off: Option<&NSString>);
145
146        #[deprecated]
147        #[unsafe(method(colSpan))]
148        #[unsafe(method_family = none)]
149        pub unsafe fn colSpan(&self) -> c_int;
150
151        /// Setter for [`colSpan`][Self::colSpan].
152        #[deprecated]
153        #[unsafe(method(setColSpan:))]
154        #[unsafe(method_family = none)]
155        pub unsafe fn setColSpan(&self, col_span: c_int);
156
157        #[deprecated]
158        #[unsafe(method(rowSpan))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn rowSpan(&self) -> c_int;
161
162        /// Setter for [`rowSpan`][Self::rowSpan].
163        #[deprecated]
164        #[unsafe(method(setRowSpan:))]
165        #[unsafe(method_family = none)]
166        pub unsafe fn setRowSpan(&self, row_span: c_int);
167
168        #[deprecated]
169        #[unsafe(method(headers))]
170        #[unsafe(method_family = none)]
171        pub unsafe fn headers(&self) -> Retained<NSString>;
172
173        /// Setter for [`headers`][Self::headers].
174        #[deprecated]
175        #[unsafe(method(setHeaders:))]
176        #[unsafe(method_family = none)]
177        pub unsafe fn setHeaders(&self, headers: Option<&NSString>);
178
179        #[deprecated]
180        #[unsafe(method(height))]
181        #[unsafe(method_family = none)]
182        pub unsafe fn height(&self) -> Retained<NSString>;
183
184        /// Setter for [`height`][Self::height].
185        #[deprecated]
186        #[unsafe(method(setHeight:))]
187        #[unsafe(method_family = none)]
188        pub unsafe fn setHeight(&self, height: Option<&NSString>);
189
190        #[deprecated]
191        #[unsafe(method(noWrap))]
192        #[unsafe(method_family = none)]
193        pub unsafe fn noWrap(&self) -> bool;
194
195        /// Setter for [`noWrap`][Self::noWrap].
196        #[deprecated]
197        #[unsafe(method(setNoWrap:))]
198        #[unsafe(method_family = none)]
199        pub unsafe fn setNoWrap(&self, no_wrap: bool);
200
201        #[deprecated]
202        #[unsafe(method(vAlign))]
203        #[unsafe(method_family = none)]
204        pub unsafe fn vAlign(&self) -> Retained<NSString>;
205
206        /// Setter for [`vAlign`][Self::vAlign].
207        #[deprecated]
208        #[unsafe(method(setVAlign:))]
209        #[unsafe(method_family = none)]
210        pub unsafe fn setVAlign(&self, v_align: Option<&NSString>);
211
212        #[deprecated]
213        #[unsafe(method(width))]
214        #[unsafe(method_family = none)]
215        pub unsafe fn width(&self) -> Retained<NSString>;
216
217        /// Setter for [`width`][Self::width].
218        #[deprecated]
219        #[unsafe(method(setWidth:))]
220        #[unsafe(method_family = none)]
221        pub unsafe fn setWidth(&self, width: Option<&NSString>);
222
223        #[deprecated]
224        #[unsafe(method(abbr))]
225        #[unsafe(method_family = none)]
226        pub unsafe fn abbr(&self) -> Retained<NSString>;
227
228        /// Setter for [`abbr`][Self::abbr].
229        #[deprecated]
230        #[unsafe(method(setAbbr:))]
231        #[unsafe(method_family = none)]
232        pub unsafe fn setAbbr(&self, abbr: Option<&NSString>);
233
234        #[deprecated]
235        #[unsafe(method(scope))]
236        #[unsafe(method_family = none)]
237        pub unsafe fn scope(&self) -> Retained<NSString>;
238
239        /// Setter for [`scope`][Self::scope].
240        #[deprecated]
241        #[unsafe(method(setScope:))]
242        #[unsafe(method_family = none)]
243        pub unsafe fn setScope(&self, scope: Option<&NSString>);
244    );
245}
246
247/// Methods declared on superclass `DOMObject`.
248#[cfg(all(
249    feature = "DOMElement",
250    feature = "DOMHTMLElement",
251    feature = "DOMNode",
252    feature = "DOMObject",
253    feature = "WebScriptObject"
254))]
255impl DOMHTMLTableCellElement {
256    extern_methods!(
257        #[deprecated]
258        #[unsafe(method(init))]
259        #[unsafe(method_family = init)]
260        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
261    );
262}
263
264/// Methods declared on superclass `NSObject`.
265#[cfg(all(
266    feature = "DOMElement",
267    feature = "DOMHTMLElement",
268    feature = "DOMNode",
269    feature = "DOMObject",
270    feature = "WebScriptObject"
271))]
272impl DOMHTMLTableCellElement {
273    extern_methods!(
274        #[unsafe(method(new))]
275        #[unsafe(method_family = new)]
276        pub unsafe fn new() -> Retained<Self>;
277    );
278}