objc2_web_kit/generated/
DOMHTMLImageElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[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 DOMHTMLImageElement;
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 DOMHTMLImageElement {}
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 DOMHTMLImageElement {}
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 DOMHTMLImageElement {
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 DOMHTMLImageElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLImageElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(name))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn name(&self) -> Retained<NSString>;
90
91 #[deprecated]
93 #[unsafe(method(setName:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setName(&self, name: Option<&NSString>);
96
97 #[deprecated]
98 #[unsafe(method(align))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn align(&self) -> Retained<NSString>;
101
102 #[deprecated]
104 #[unsafe(method(setAlign:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setAlign(&self, align: Option<&NSString>);
107
108 #[deprecated]
109 #[unsafe(method(alt))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn alt(&self) -> Retained<NSString>;
112
113 #[deprecated]
115 #[unsafe(method(setAlt:))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn setAlt(&self, alt: Option<&NSString>);
118
119 #[deprecated]
120 #[unsafe(method(border))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn border(&self) -> Retained<NSString>;
123
124 #[deprecated]
126 #[unsafe(method(setBorder:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setBorder(&self, border: Option<&NSString>);
129
130 #[deprecated]
131 #[unsafe(method(height))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn height(&self) -> c_int;
134
135 #[deprecated]
137 #[unsafe(method(setHeight:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setHeight(&self, height: c_int);
140
141 #[deprecated]
142 #[unsafe(method(hspace))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn hspace(&self) -> c_int;
145
146 #[deprecated]
148 #[unsafe(method(setHspace:))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn setHspace(&self, hspace: c_int);
151
152 #[deprecated]
153 #[unsafe(method(isMap))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn isMap(&self) -> bool;
156
157 #[deprecated]
159 #[unsafe(method(setIsMap:))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn setIsMap(&self, is_map: bool);
162
163 #[deprecated]
164 #[unsafe(method(longDesc))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn longDesc(&self) -> Retained<NSString>;
167
168 #[deprecated]
170 #[unsafe(method(setLongDesc:))]
171 #[unsafe(method_family = none)]
172 pub unsafe fn setLongDesc(&self, long_desc: Option<&NSString>);
173
174 #[deprecated]
175 #[unsafe(method(src))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn src(&self) -> Retained<NSString>;
178
179 #[deprecated]
181 #[unsafe(method(setSrc:))]
182 #[unsafe(method_family = none)]
183 pub unsafe fn setSrc(&self, src: Option<&NSString>);
184
185 #[deprecated]
186 #[unsafe(method(useMap))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn useMap(&self) -> Retained<NSString>;
189
190 #[deprecated]
192 #[unsafe(method(setUseMap:))]
193 #[unsafe(method_family = none)]
194 pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
195
196 #[deprecated]
197 #[unsafe(method(vspace))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn vspace(&self) -> c_int;
200
201 #[deprecated]
203 #[unsafe(method(setVspace:))]
204 #[unsafe(method_family = none)]
205 pub unsafe fn setVspace(&self, vspace: c_int);
206
207 #[deprecated]
208 #[unsafe(method(width))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn width(&self) -> c_int;
211
212 #[deprecated]
214 #[unsafe(method(setWidth:))]
215 #[unsafe(method_family = none)]
216 pub unsafe fn setWidth(&self, width: c_int);
217
218 #[unsafe(method(complete))]
219 #[unsafe(method_family = none)]
220 pub unsafe fn complete(&self) -> bool;
221
222 #[unsafe(method(lowsrc))]
223 #[unsafe(method_family = none)]
224 pub unsafe fn lowsrc(&self) -> Retained<NSString>;
225
226 #[unsafe(method(setLowsrc:))]
228 #[unsafe(method_family = none)]
229 pub unsafe fn setLowsrc(&self, lowsrc: Option<&NSString>);
230
231 #[unsafe(method(naturalHeight))]
232 #[unsafe(method_family = none)]
233 pub unsafe fn naturalHeight(&self) -> c_int;
234
235 #[unsafe(method(naturalWidth))]
236 #[unsafe(method_family = none)]
237 pub unsafe fn naturalWidth(&self) -> c_int;
238
239 #[unsafe(method(x))]
240 #[unsafe(method_family = none)]
241 pub unsafe fn x(&self) -> c_int;
242
243 #[unsafe(method(y))]
244 #[unsafe(method_family = none)]
245 pub unsafe fn y(&self) -> c_int;
246
247 #[unsafe(method(altDisplayString))]
248 #[unsafe(method_family = none)]
249 pub unsafe fn altDisplayString(&self) -> Retained<NSString>;
250
251 #[unsafe(method(absoluteImageURL))]
252 #[unsafe(method_family = none)]
253 pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
254 );
255}
256
257#[cfg(all(
259 feature = "DOMElement",
260 feature = "DOMHTMLElement",
261 feature = "DOMNode",
262 feature = "DOMObject",
263 feature = "WebScriptObject"
264))]
265impl DOMHTMLImageElement {
266 extern_methods!(
267 #[deprecated]
268 #[unsafe(method(init))]
269 #[unsafe(method_family = init)]
270 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
271 );
272}
273
274#[cfg(all(
276 feature = "DOMElement",
277 feature = "DOMHTMLElement",
278 feature = "DOMNode",
279 feature = "DOMObject",
280 feature = "WebScriptObject"
281))]
282impl DOMHTMLImageElement {
283 extern_methods!(
284 #[unsafe(method(new))]
285 #[unsafe(method_family = new)]
286 pub unsafe fn new() -> Retained<Self>;
287 );
288}