icrate/generated/WebKit/
DOMHTMLTableElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::WebKit::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "WebKit_DOMHTMLTableElement")]
11    #[deprecated]
12    pub struct DOMHTMLTableElement;
13
14    #[cfg(feature = "WebKit_DOMHTMLTableElement")]
15    unsafe impl ClassType for DOMHTMLTableElement {
16        #[inherits(DOMElement, DOMNode, DOMObject, WebScriptObject, NSObject)]
17        type Super = DOMHTMLElement;
18        type Mutability = InteriorMutable;
19    }
20);
21
22#[cfg(feature = "WebKit_DOMHTMLTableElement")]
23unsafe impl DOMEventTarget for DOMHTMLTableElement {}
24
25#[cfg(feature = "WebKit_DOMHTMLTableElement")]
26unsafe impl NSCopying for DOMHTMLTableElement {}
27
28#[cfg(feature = "WebKit_DOMHTMLTableElement")]
29unsafe impl NSObjectProtocol for DOMHTMLTableElement {}
30
31extern_methods!(
32    #[cfg(feature = "WebKit_DOMHTMLTableElement")]
33    unsafe impl DOMHTMLTableElement {
34        #[cfg(feature = "WebKit_DOMHTMLTableCaptionElement")]
35        #[deprecated]
36        #[method_id(@__retain_semantics Other caption)]
37        pub unsafe fn caption(&self) -> Option<Id<DOMHTMLTableCaptionElement>>;
38
39        #[cfg(feature = "WebKit_DOMHTMLTableCaptionElement")]
40        #[deprecated]
41        #[method(setCaption:)]
42        pub unsafe fn setCaption(&self, caption: Option<&DOMHTMLTableCaptionElement>);
43
44        #[cfg(feature = "WebKit_DOMHTMLTableSectionElement")]
45        #[deprecated]
46        #[method_id(@__retain_semantics Other tHead)]
47        pub unsafe fn tHead(&self) -> Option<Id<DOMHTMLTableSectionElement>>;
48
49        #[cfg(feature = "WebKit_DOMHTMLTableSectionElement")]
50        #[deprecated]
51        #[method(setTHead:)]
52        pub unsafe fn setTHead(&self, t_head: Option<&DOMHTMLTableSectionElement>);
53
54        #[cfg(feature = "WebKit_DOMHTMLTableSectionElement")]
55        #[deprecated]
56        #[method_id(@__retain_semantics Other tFoot)]
57        pub unsafe fn tFoot(&self) -> Option<Id<DOMHTMLTableSectionElement>>;
58
59        #[cfg(feature = "WebKit_DOMHTMLTableSectionElement")]
60        #[deprecated]
61        #[method(setTFoot:)]
62        pub unsafe fn setTFoot(&self, t_foot: Option<&DOMHTMLTableSectionElement>);
63
64        #[cfg(feature = "WebKit_DOMHTMLCollection")]
65        #[deprecated]
66        #[method_id(@__retain_semantics Other rows)]
67        pub unsafe fn rows(&self) -> Option<Id<DOMHTMLCollection>>;
68
69        #[cfg(feature = "WebKit_DOMHTMLCollection")]
70        #[deprecated]
71        #[method_id(@__retain_semantics Other tBodies)]
72        pub unsafe fn tBodies(&self) -> Option<Id<DOMHTMLCollection>>;
73
74        #[cfg(feature = "Foundation_NSString")]
75        #[deprecated]
76        #[method_id(@__retain_semantics Other align)]
77        pub unsafe fn align(&self) -> Id<NSString>;
78
79        #[cfg(feature = "Foundation_NSString")]
80        #[deprecated]
81        #[method(setAlign:)]
82        pub unsafe fn setAlign(&self, align: Option<&NSString>);
83
84        #[cfg(feature = "Foundation_NSString")]
85        #[deprecated]
86        #[method_id(@__retain_semantics Other bgColor)]
87        pub unsafe fn bgColor(&self) -> Id<NSString>;
88
89        #[cfg(feature = "Foundation_NSString")]
90        #[deprecated]
91        #[method(setBgColor:)]
92        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
93
94        #[cfg(feature = "Foundation_NSString")]
95        #[deprecated]
96        #[method_id(@__retain_semantics Other border)]
97        pub unsafe fn border(&self) -> Id<NSString>;
98
99        #[cfg(feature = "Foundation_NSString")]
100        #[deprecated]
101        #[method(setBorder:)]
102        pub unsafe fn setBorder(&self, border: Option<&NSString>);
103
104        #[cfg(feature = "Foundation_NSString")]
105        #[deprecated]
106        #[method_id(@__retain_semantics Other cellPadding)]
107        pub unsafe fn cellPadding(&self) -> Id<NSString>;
108
109        #[cfg(feature = "Foundation_NSString")]
110        #[deprecated]
111        #[method(setCellPadding:)]
112        pub unsafe fn setCellPadding(&self, cell_padding: Option<&NSString>);
113
114        #[cfg(feature = "Foundation_NSString")]
115        #[deprecated]
116        #[method_id(@__retain_semantics Other cellSpacing)]
117        pub unsafe fn cellSpacing(&self) -> Id<NSString>;
118
119        #[cfg(feature = "Foundation_NSString")]
120        #[deprecated]
121        #[method(setCellSpacing:)]
122        pub unsafe fn setCellSpacing(&self, cell_spacing: Option<&NSString>);
123
124        #[cfg(feature = "Foundation_NSString")]
125        #[deprecated]
126        #[method_id(@__retain_semantics Other frameBorders)]
127        pub unsafe fn frameBorders(&self) -> Id<NSString>;
128
129        #[cfg(feature = "Foundation_NSString")]
130        #[deprecated]
131        #[method(setFrameBorders:)]
132        pub unsafe fn setFrameBorders(&self, frame_borders: Option<&NSString>);
133
134        #[cfg(feature = "Foundation_NSString")]
135        #[deprecated]
136        #[method_id(@__retain_semantics Other rules)]
137        pub unsafe fn rules(&self) -> Id<NSString>;
138
139        #[cfg(feature = "Foundation_NSString")]
140        #[deprecated]
141        #[method(setRules:)]
142        pub unsafe fn setRules(&self, rules: Option<&NSString>);
143
144        #[cfg(feature = "Foundation_NSString")]
145        #[deprecated]
146        #[method_id(@__retain_semantics Other summary)]
147        pub unsafe fn summary(&self) -> Id<NSString>;
148
149        #[cfg(feature = "Foundation_NSString")]
150        #[deprecated]
151        #[method(setSummary:)]
152        pub unsafe fn setSummary(&self, summary: Option<&NSString>);
153
154        #[cfg(feature = "Foundation_NSString")]
155        #[deprecated]
156        #[method_id(@__retain_semantics Other width)]
157        pub unsafe fn width(&self) -> Id<NSString>;
158
159        #[cfg(feature = "Foundation_NSString")]
160        #[deprecated]
161        #[method(setWidth:)]
162        pub unsafe fn setWidth(&self, width: Option<&NSString>);
163
164        #[deprecated]
165        #[method_id(@__retain_semantics Other createTHead)]
166        pub unsafe fn createTHead(&self) -> Option<Id<DOMHTMLElement>>;
167
168        #[deprecated]
169        #[method(deleteTHead)]
170        pub unsafe fn deleteTHead(&self);
171
172        #[deprecated]
173        #[method_id(@__retain_semantics Other createTFoot)]
174        pub unsafe fn createTFoot(&self) -> Option<Id<DOMHTMLElement>>;
175
176        #[deprecated]
177        #[method(deleteTFoot)]
178        pub unsafe fn deleteTFoot(&self);
179
180        #[deprecated]
181        #[method_id(@__retain_semantics Other createCaption)]
182        pub unsafe fn createCaption(&self) -> Option<Id<DOMHTMLElement>>;
183
184        #[deprecated]
185        #[method(deleteCaption)]
186        pub unsafe fn deleteCaption(&self);
187
188        #[deprecated]
189        #[method_id(@__retain_semantics Other insertRow:)]
190        pub unsafe fn insertRow(&self, index: c_int) -> Option<Id<DOMHTMLElement>>;
191
192        #[deprecated]
193        #[method(deleteRow:)]
194        pub unsafe fn deleteRow(&self, index: c_int);
195    }
196);
197
198extern_methods!(
199    /// Methods declared on superclass `DOMObject`
200    #[cfg(feature = "WebKit_DOMHTMLTableElement")]
201    unsafe impl DOMHTMLTableElement {
202        #[deprecated]
203        #[method_id(@__retain_semantics Init init)]
204        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
205    }
206);
207
208extern_methods!(
209    /// Methods declared on superclass `NSObject`
210    #[cfg(feature = "WebKit_DOMHTMLTableElement")]
211    unsafe impl DOMHTMLTableElement {
212        #[method_id(@__retain_semantics New new)]
213        pub unsafe fn new() -> Id<Self>;
214    }
215);