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))]
40unsafe impl DOMEventTarget for DOMHTMLImageElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLImageElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLImageElement {
59 type Result = Self;
60}
61
62#[cfg(all(
63 feature = "DOMElement",
64 feature = "DOMHTMLElement",
65 feature = "DOMNode",
66 feature = "DOMObject",
67 feature = "WebScriptObject"
68))]
69unsafe impl NSObjectProtocol for DOMHTMLImageElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLImageElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(name))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn name(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setName:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setName(&self, name: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(align))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn align(&self) -> Retained<NSString>;
95
96 #[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(alt))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn alt(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setAlt:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setAlt(&self, alt: Option<&NSString>);
112
113 #[deprecated]
114 #[unsafe(method(border))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn border(&self) -> Retained<NSString>;
117
118 #[deprecated]
120 #[unsafe(method(setBorder:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setBorder(&self, border: Option<&NSString>);
123
124 #[deprecated]
125 #[unsafe(method(height))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn height(&self) -> c_int;
128
129 #[deprecated]
131 #[unsafe(method(setHeight:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setHeight(&self, height: c_int);
134
135 #[deprecated]
136 #[unsafe(method(hspace))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn hspace(&self) -> c_int;
139
140 #[deprecated]
142 #[unsafe(method(setHspace:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setHspace(&self, hspace: c_int);
145
146 #[deprecated]
147 #[unsafe(method(isMap))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn isMap(&self) -> bool;
150
151 #[deprecated]
153 #[unsafe(method(setIsMap:))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn setIsMap(&self, is_map: bool);
156
157 #[deprecated]
158 #[unsafe(method(longDesc))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn longDesc(&self) -> Retained<NSString>;
161
162 #[deprecated]
164 #[unsafe(method(setLongDesc:))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn setLongDesc(&self, long_desc: Option<&NSString>);
167
168 #[deprecated]
169 #[unsafe(method(src))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn src(&self) -> Retained<NSString>;
172
173 #[deprecated]
175 #[unsafe(method(setSrc:))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn setSrc(&self, src: Option<&NSString>);
178
179 #[deprecated]
180 #[unsafe(method(useMap))]
181 #[unsafe(method_family = none)]
182 pub unsafe fn useMap(&self) -> Retained<NSString>;
183
184 #[deprecated]
186 #[unsafe(method(setUseMap:))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
189
190 #[deprecated]
191 #[unsafe(method(vspace))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn vspace(&self) -> c_int;
194
195 #[deprecated]
197 #[unsafe(method(setVspace:))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn setVspace(&self, vspace: c_int);
200
201 #[deprecated]
202 #[unsafe(method(width))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn width(&self) -> c_int;
205
206 #[deprecated]
208 #[unsafe(method(setWidth:))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn setWidth(&self, width: c_int);
211
212 #[unsafe(method(complete))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn complete(&self) -> bool;
215
216 #[unsafe(method(lowsrc))]
217 #[unsafe(method_family = none)]
218 pub unsafe fn lowsrc(&self) -> Retained<NSString>;
219
220 #[unsafe(method(setLowsrc:))]
222 #[unsafe(method_family = none)]
223 pub unsafe fn setLowsrc(&self, lowsrc: Option<&NSString>);
224
225 #[unsafe(method(naturalHeight))]
226 #[unsafe(method_family = none)]
227 pub unsafe fn naturalHeight(&self) -> c_int;
228
229 #[unsafe(method(naturalWidth))]
230 #[unsafe(method_family = none)]
231 pub unsafe fn naturalWidth(&self) -> c_int;
232
233 #[unsafe(method(x))]
234 #[unsafe(method_family = none)]
235 pub unsafe fn x(&self) -> c_int;
236
237 #[unsafe(method(y))]
238 #[unsafe(method_family = none)]
239 pub unsafe fn y(&self) -> c_int;
240
241 #[unsafe(method(altDisplayString))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn altDisplayString(&self) -> Retained<NSString>;
244
245 #[unsafe(method(absoluteImageURL))]
246 #[unsafe(method_family = none)]
247 pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
248 );
249}
250
251#[cfg(all(
253 feature = "DOMElement",
254 feature = "DOMHTMLElement",
255 feature = "DOMNode",
256 feature = "DOMObject",
257 feature = "WebScriptObject"
258))]
259impl DOMHTMLImageElement {
260 extern_methods!(
261 #[deprecated]
262 #[unsafe(method(init))]
263 #[unsafe(method_family = init)]
264 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
265 );
266}
267
268#[cfg(all(
270 feature = "DOMElement",
271 feature = "DOMHTMLElement",
272 feature = "DOMNode",
273 feature = "DOMObject",
274 feature = "WebScriptObject"
275))]
276impl DOMHTMLImageElement {
277 extern_methods!(
278 #[unsafe(method(new))]
279 #[unsafe(method_family = new)]
280 pub unsafe fn new() -> Retained<Self>;
281 );
282}