objc2_web_kit/generated/
DOMHTMLObjectElement.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/domhtmlobjectelement?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 DOMHTMLObjectElement;
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 DOMHTMLObjectElement {}
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 DOMHTMLObjectElement {}
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 DOMHTMLObjectElement {
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 DOMHTMLObjectElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLObjectElement {
85    extern_methods!(
86        #[cfg(feature = "DOMHTMLFormElement")]
87        #[deprecated]
88        #[unsafe(method(form))]
89        #[unsafe(method_family = none)]
90        pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
91
92        #[deprecated]
93        #[unsafe(method(code))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn code(&self) -> Retained<NSString>;
96
97        /// Setter for [`code`][Self::code].
98        ///
99        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
100        #[deprecated]
101        #[unsafe(method(setCode:))]
102        #[unsafe(method_family = none)]
103        pub unsafe fn setCode(&self, code: Option<&NSString>);
104
105        #[deprecated]
106        #[unsafe(method(align))]
107        #[unsafe(method_family = none)]
108        pub unsafe fn align(&self) -> Retained<NSString>;
109
110        /// Setter for [`align`][Self::align].
111        ///
112        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
113        #[deprecated]
114        #[unsafe(method(setAlign:))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn setAlign(&self, align: Option<&NSString>);
117
118        #[deprecated]
119        #[unsafe(method(archive))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn archive(&self) -> Retained<NSString>;
122
123        /// Setter for [`archive`][Self::archive].
124        ///
125        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
126        #[deprecated]
127        #[unsafe(method(setArchive:))]
128        #[unsafe(method_family = none)]
129        pub unsafe fn setArchive(&self, archive: Option<&NSString>);
130
131        #[deprecated]
132        #[unsafe(method(border))]
133        #[unsafe(method_family = none)]
134        pub unsafe fn border(&self) -> Retained<NSString>;
135
136        /// Setter for [`border`][Self::border].
137        ///
138        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
139        #[deprecated]
140        #[unsafe(method(setBorder:))]
141        #[unsafe(method_family = none)]
142        pub unsafe fn setBorder(&self, border: Option<&NSString>);
143
144        #[deprecated]
145        #[unsafe(method(codeBase))]
146        #[unsafe(method_family = none)]
147        pub unsafe fn codeBase(&self) -> Retained<NSString>;
148
149        /// Setter for [`codeBase`][Self::codeBase].
150        ///
151        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
152        #[deprecated]
153        #[unsafe(method(setCodeBase:))]
154        #[unsafe(method_family = none)]
155        pub unsafe fn setCodeBase(&self, code_base: Option<&NSString>);
156
157        #[deprecated]
158        #[unsafe(method(codeType))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn codeType(&self) -> Retained<NSString>;
161
162        /// Setter for [`codeType`][Self::codeType].
163        ///
164        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
165        #[deprecated]
166        #[unsafe(method(setCodeType:))]
167        #[unsafe(method_family = none)]
168        pub unsafe fn setCodeType(&self, code_type: Option<&NSString>);
169
170        #[deprecated]
171        #[unsafe(method(data))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn data(&self) -> Retained<NSString>;
174
175        /// Setter for [`data`][Self::data].
176        ///
177        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
178        #[deprecated]
179        #[unsafe(method(setData:))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn setData(&self, data: Option<&NSString>);
182
183        #[deprecated]
184        #[unsafe(method(declare))]
185        #[unsafe(method_family = none)]
186        pub unsafe fn declare(&self) -> bool;
187
188        /// Setter for [`declare`][Self::declare].
189        #[deprecated]
190        #[unsafe(method(setDeclare:))]
191        #[unsafe(method_family = none)]
192        pub unsafe fn setDeclare(&self, declare: bool);
193
194        #[deprecated]
195        #[unsafe(method(height))]
196        #[unsafe(method_family = none)]
197        pub unsafe fn height(&self) -> Retained<NSString>;
198
199        /// Setter for [`height`][Self::height].
200        ///
201        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
202        #[deprecated]
203        #[unsafe(method(setHeight:))]
204        #[unsafe(method_family = none)]
205        pub unsafe fn setHeight(&self, height: Option<&NSString>);
206
207        #[deprecated]
208        #[unsafe(method(hspace))]
209        #[unsafe(method_family = none)]
210        pub unsafe fn hspace(&self) -> c_int;
211
212        /// Setter for [`hspace`][Self::hspace].
213        #[deprecated]
214        #[unsafe(method(setHspace:))]
215        #[unsafe(method_family = none)]
216        pub unsafe fn setHspace(&self, hspace: c_int);
217
218        #[deprecated]
219        #[unsafe(method(name))]
220        #[unsafe(method_family = none)]
221        pub unsafe fn name(&self) -> Retained<NSString>;
222
223        /// Setter for [`name`][Self::name].
224        ///
225        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
226        #[deprecated]
227        #[unsafe(method(setName:))]
228        #[unsafe(method_family = none)]
229        pub unsafe fn setName(&self, name: Option<&NSString>);
230
231        #[deprecated]
232        #[unsafe(method(standby))]
233        #[unsafe(method_family = none)]
234        pub unsafe fn standby(&self) -> Retained<NSString>;
235
236        /// Setter for [`standby`][Self::standby].
237        ///
238        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
239        #[deprecated]
240        #[unsafe(method(setStandby:))]
241        #[unsafe(method_family = none)]
242        pub unsafe fn setStandby(&self, standby: Option<&NSString>);
243
244        #[deprecated]
245        #[unsafe(method(type))]
246        #[unsafe(method_family = none)]
247        pub unsafe fn r#type(&self) -> Retained<NSString>;
248
249        /// Setter for [`type`][Self::type].
250        ///
251        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
252        #[deprecated]
253        #[unsafe(method(setType:))]
254        #[unsafe(method_family = none)]
255        pub unsafe fn setType(&self, r#type: Option<&NSString>);
256
257        #[deprecated]
258        #[unsafe(method(useMap))]
259        #[unsafe(method_family = none)]
260        pub unsafe fn useMap(&self) -> Retained<NSString>;
261
262        /// Setter for [`useMap`][Self::useMap].
263        ///
264        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
265        #[deprecated]
266        #[unsafe(method(setUseMap:))]
267        #[unsafe(method_family = none)]
268        pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
269
270        #[deprecated]
271        #[unsafe(method(vspace))]
272        #[unsafe(method_family = none)]
273        pub unsafe fn vspace(&self) -> c_int;
274
275        /// Setter for [`vspace`][Self::vspace].
276        #[deprecated]
277        #[unsafe(method(setVspace:))]
278        #[unsafe(method_family = none)]
279        pub unsafe fn setVspace(&self, vspace: c_int);
280
281        #[deprecated]
282        #[unsafe(method(width))]
283        #[unsafe(method_family = none)]
284        pub unsafe fn width(&self) -> Retained<NSString>;
285
286        /// Setter for [`width`][Self::width].
287        ///
288        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
289        #[deprecated]
290        #[unsafe(method(setWidth:))]
291        #[unsafe(method_family = none)]
292        pub unsafe fn setWidth(&self, width: Option<&NSString>);
293
294        #[cfg(feature = "DOMDocument")]
295        #[deprecated]
296        #[unsafe(method(contentDocument))]
297        #[unsafe(method_family = none)]
298        pub unsafe fn contentDocument(&self) -> Option<Retained<DOMDocument>>;
299
300        #[unsafe(method(absoluteImageURL))]
301        #[unsafe(method_family = none)]
302        pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
303    );
304}
305
306/// Methods declared on superclass `DOMObject`.
307#[cfg(all(
308    feature = "DOMElement",
309    feature = "DOMHTMLElement",
310    feature = "DOMNode",
311    feature = "DOMObject",
312    feature = "WebScriptObject"
313))]
314impl DOMHTMLObjectElement {
315    extern_methods!(
316        #[deprecated]
317        #[unsafe(method(init))]
318        #[unsafe(method_family = init)]
319        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
320    );
321}
322
323/// Methods declared on superclass `NSObject`.
324#[cfg(all(
325    feature = "DOMElement",
326    feature = "DOMHTMLElement",
327    feature = "DOMNode",
328    feature = "DOMObject",
329    feature = "WebScriptObject"
330))]
331impl DOMHTMLObjectElement {
332    extern_methods!(
333        #[unsafe(method(new))]
334        #[unsafe(method_family = new)]
335        pub unsafe fn new() -> Retained<Self>;
336    );
337}