objc2_web_kit/generated/
DOMHTMLAppletElement.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/domhtmlappletelement?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 DOMHTMLAppletElement;
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 DOMHTMLAppletElement {}
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 DOMHTMLAppletElement {}
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 DOMHTMLAppletElement {
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 DOMHTMLAppletElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLAppletElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(align))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn align(&self) -> Retained<NSString>;
90
91        /// Setter for [`align`][Self::align].
92        ///
93        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
94        #[deprecated]
95        #[unsafe(method(setAlign:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setAlign(&self, align: Option<&NSString>);
98
99        #[deprecated]
100        #[unsafe(method(alt))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn alt(&self) -> Retained<NSString>;
103
104        /// Setter for [`alt`][Self::alt].
105        ///
106        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
107        #[deprecated]
108        #[unsafe(method(setAlt:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn setAlt(&self, alt: Option<&NSString>);
111
112        #[deprecated]
113        #[unsafe(method(archive))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn archive(&self) -> Retained<NSString>;
116
117        /// Setter for [`archive`][Self::archive].
118        ///
119        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
120        #[deprecated]
121        #[unsafe(method(setArchive:))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn setArchive(&self, archive: Option<&NSString>);
124
125        #[deprecated]
126        #[unsafe(method(code))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn code(&self) -> Retained<NSString>;
129
130        /// Setter for [`code`][Self::code].
131        ///
132        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
133        #[deprecated]
134        #[unsafe(method(setCode:))]
135        #[unsafe(method_family = none)]
136        pub unsafe fn setCode(&self, code: Option<&NSString>);
137
138        #[deprecated]
139        #[unsafe(method(codeBase))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn codeBase(&self) -> Retained<NSString>;
142
143        /// Setter for [`codeBase`][Self::codeBase].
144        ///
145        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
146        #[deprecated]
147        #[unsafe(method(setCodeBase:))]
148        #[unsafe(method_family = none)]
149        pub unsafe fn setCodeBase(&self, code_base: Option<&NSString>);
150
151        #[deprecated]
152        #[unsafe(method(height))]
153        #[unsafe(method_family = none)]
154        pub unsafe fn height(&self) -> Retained<NSString>;
155
156        /// Setter for [`height`][Self::height].
157        ///
158        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
159        #[deprecated]
160        #[unsafe(method(setHeight:))]
161        #[unsafe(method_family = none)]
162        pub unsafe fn setHeight(&self, height: Option<&NSString>);
163
164        #[deprecated]
165        #[unsafe(method(hspace))]
166        #[unsafe(method_family = none)]
167        pub unsafe fn hspace(&self) -> c_int;
168
169        /// Setter for [`hspace`][Self::hspace].
170        #[deprecated]
171        #[unsafe(method(setHspace:))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn setHspace(&self, hspace: c_int);
174
175        #[deprecated]
176        #[unsafe(method(name))]
177        #[unsafe(method_family = none)]
178        pub unsafe fn name(&self) -> Retained<NSString>;
179
180        /// Setter for [`name`][Self::name].
181        ///
182        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
183        #[deprecated]
184        #[unsafe(method(setName:))]
185        #[unsafe(method_family = none)]
186        pub unsafe fn setName(&self, name: Option<&NSString>);
187
188        #[deprecated]
189        #[unsafe(method(object))]
190        #[unsafe(method_family = none)]
191        pub unsafe fn object(&self) -> Retained<NSString>;
192
193        /// Setter for [`object`][Self::object].
194        ///
195        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
196        #[deprecated]
197        #[unsafe(method(setObject:))]
198        #[unsafe(method_family = none)]
199        pub unsafe fn setObject(&self, object: Option<&NSString>);
200
201        #[deprecated]
202        #[unsafe(method(vspace))]
203        #[unsafe(method_family = none)]
204        pub unsafe fn vspace(&self) -> c_int;
205
206        /// Setter for [`vspace`][Self::vspace].
207        #[deprecated]
208        #[unsafe(method(setVspace:))]
209        #[unsafe(method_family = none)]
210        pub unsafe fn setVspace(&self, vspace: c_int);
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        ///
219        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
220        #[deprecated]
221        #[unsafe(method(setWidth:))]
222        #[unsafe(method_family = none)]
223        pub unsafe fn setWidth(&self, width: Option<&NSString>);
224    );
225}
226
227/// Methods declared on superclass `DOMObject`.
228#[cfg(all(
229    feature = "DOMElement",
230    feature = "DOMHTMLElement",
231    feature = "DOMNode",
232    feature = "DOMObject",
233    feature = "WebScriptObject"
234))]
235impl DOMHTMLAppletElement {
236    extern_methods!(
237        #[deprecated]
238        #[unsafe(method(init))]
239        #[unsafe(method_family = init)]
240        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
241    );
242}
243
244/// Methods declared on superclass `NSObject`.
245#[cfg(all(
246    feature = "DOMElement",
247    feature = "DOMHTMLElement",
248    feature = "DOMNode",
249    feature = "DOMObject",
250    feature = "WebScriptObject"
251))]
252impl DOMHTMLAppletElement {
253    extern_methods!(
254        #[unsafe(method(new))]
255        #[unsafe(method_family = new)]
256        pub unsafe fn new() -> Retained<Self>;
257    );
258}