objc2_web_kit/generated/
DOMHTMLInputElement.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 DOMHTMLInputElement;
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 DOMHTMLInputElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLInputElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLInputElement {
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 DOMHTMLInputElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLInputElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(accept))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn accept(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setAccept:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setAccept(&self, accept: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(alt))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn alt(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setAlt:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setAlt(&self, alt: Option<&NSString>);
101
102 #[unsafe(method(autofocus))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn autofocus(&self) -> bool;
105
106 #[unsafe(method(setAutofocus:))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn setAutofocus(&self, autofocus: bool);
110
111 #[deprecated]
112 #[unsafe(method(defaultChecked))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn defaultChecked(&self) -> bool;
115
116 #[deprecated]
118 #[unsafe(method(setDefaultChecked:))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn setDefaultChecked(&self, default_checked: bool);
121
122 #[deprecated]
123 #[unsafe(method(checked))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn checked(&self) -> bool;
126
127 #[deprecated]
129 #[unsafe(method(setChecked:))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn setChecked(&self, checked: bool);
132
133 #[deprecated]
134 #[unsafe(method(disabled))]
135 #[unsafe(method_family = none)]
136 pub unsafe fn disabled(&self) -> bool;
137
138 #[deprecated]
140 #[unsafe(method(setDisabled:))]
141 #[unsafe(method_family = none)]
142 pub unsafe fn setDisabled(&self, disabled: bool);
143
144 #[cfg(feature = "DOMHTMLFormElement")]
145 #[deprecated]
146 #[unsafe(method(form))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
149
150 #[cfg(feature = "DOMFileList")]
151 #[unsafe(method(files))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn files(&self) -> Option<Retained<DOMFileList>>;
154
155 #[cfg(feature = "DOMFileList")]
156 #[unsafe(method(setFiles:))]
158 #[unsafe(method_family = none)]
159 pub unsafe fn setFiles(&self, files: Option<&DOMFileList>);
160
161 #[unsafe(method(indeterminate))]
162 #[unsafe(method_family = none)]
163 pub unsafe fn indeterminate(&self) -> bool;
164
165 #[unsafe(method(setIndeterminate:))]
167 #[unsafe(method_family = none)]
168 pub unsafe fn setIndeterminate(&self, indeterminate: bool);
169
170 #[deprecated]
171 #[unsafe(method(maxLength))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn maxLength(&self) -> c_int;
174
175 #[deprecated]
177 #[unsafe(method(setMaxLength:))]
178 #[unsafe(method_family = none)]
179 pub unsafe fn setMaxLength(&self, max_length: c_int);
180
181 #[unsafe(method(multiple))]
182 #[unsafe(method_family = none)]
183 pub unsafe fn multiple(&self) -> bool;
184
185 #[unsafe(method(setMultiple:))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn setMultiple(&self, multiple: bool);
189
190 #[deprecated]
191 #[unsafe(method(name))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn name(&self) -> Retained<NSString>;
194
195 #[deprecated]
197 #[unsafe(method(setName:))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn setName(&self, name: Option<&NSString>);
200
201 #[deprecated]
202 #[unsafe(method(readOnly))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn readOnly(&self) -> bool;
205
206 #[deprecated]
208 #[unsafe(method(setReadOnly:))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn setReadOnly(&self, read_only: bool);
211
212 #[deprecated]
213 #[unsafe(method(size))]
214 #[unsafe(method_family = none)]
215 pub unsafe fn size(&self) -> Retained<NSString>;
216
217 #[deprecated]
219 #[unsafe(method(setSize:))]
220 #[unsafe(method_family = none)]
221 pub unsafe fn setSize(&self, size: Option<&NSString>);
222
223 #[deprecated]
224 #[unsafe(method(src))]
225 #[unsafe(method_family = none)]
226 pub unsafe fn src(&self) -> Retained<NSString>;
227
228 #[deprecated]
230 #[unsafe(method(setSrc:))]
231 #[unsafe(method_family = none)]
232 pub unsafe fn setSrc(&self, src: Option<&NSString>);
233
234 #[deprecated]
235 #[unsafe(method(type))]
236 #[unsafe(method_family = none)]
237 pub unsafe fn r#type(&self) -> Retained<NSString>;
238
239 #[deprecated]
241 #[unsafe(method(setType:))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn setType(&self, r#type: Option<&NSString>);
244
245 #[deprecated]
246 #[unsafe(method(defaultValue))]
247 #[unsafe(method_family = none)]
248 pub unsafe fn defaultValue(&self) -> Retained<NSString>;
249
250 #[deprecated]
252 #[unsafe(method(setDefaultValue:))]
253 #[unsafe(method_family = none)]
254 pub unsafe fn setDefaultValue(&self, default_value: Option<&NSString>);
255
256 #[deprecated]
257 #[unsafe(method(value))]
258 #[unsafe(method_family = none)]
259 pub unsafe fn value(&self) -> Retained<NSString>;
260
261 #[deprecated]
263 #[unsafe(method(setValue:))]
264 #[unsafe(method_family = none)]
265 pub unsafe fn setValue(&self, value: Option<&NSString>);
266
267 #[unsafe(method(willValidate))]
268 #[unsafe(method_family = none)]
269 pub unsafe fn willValidate(&self) -> bool;
270
271 #[unsafe(method(selectionStart))]
272 #[unsafe(method_family = none)]
273 pub unsafe fn selectionStart(&self) -> c_int;
274
275 #[unsafe(method(setSelectionStart:))]
277 #[unsafe(method_family = none)]
278 pub unsafe fn setSelectionStart(&self, selection_start: c_int);
279
280 #[unsafe(method(selectionEnd))]
281 #[unsafe(method_family = none)]
282 pub unsafe fn selectionEnd(&self) -> c_int;
283
284 #[unsafe(method(setSelectionEnd:))]
286 #[unsafe(method_family = none)]
287 pub unsafe fn setSelectionEnd(&self, selection_end: c_int);
288
289 #[deprecated]
290 #[unsafe(method(align))]
291 #[unsafe(method_family = none)]
292 pub unsafe fn align(&self) -> Retained<NSString>;
293
294 #[deprecated]
296 #[unsafe(method(setAlign:))]
297 #[unsafe(method_family = none)]
298 pub unsafe fn setAlign(&self, align: Option<&NSString>);
299
300 #[deprecated]
301 #[unsafe(method(useMap))]
302 #[unsafe(method_family = none)]
303 pub unsafe fn useMap(&self) -> Retained<NSString>;
304
305 #[deprecated]
307 #[unsafe(method(setUseMap:))]
308 #[unsafe(method_family = none)]
309 pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
310
311 #[deprecated]
312 #[unsafe(method(accessKey))]
313 #[unsafe(method_family = none)]
314 pub unsafe fn accessKey(&self) -> Retained<NSString>;
315
316 #[deprecated]
318 #[unsafe(method(setAccessKey:))]
319 #[unsafe(method_family = none)]
320 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
321
322 #[unsafe(method(altDisplayString))]
323 #[unsafe(method_family = none)]
324 pub unsafe fn altDisplayString(&self) -> Retained<NSString>;
325
326 #[unsafe(method(absoluteImageURL))]
327 #[unsafe(method_family = none)]
328 pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
329
330 #[deprecated]
331 #[unsafe(method(select))]
332 #[unsafe(method_family = none)]
333 pub unsafe fn select(&self);
334
335 #[unsafe(method(setSelectionRange:end:))]
336 #[unsafe(method_family = none)]
337 pub unsafe fn setSelectionRange_end(&self, start: c_int, end: c_int);
338
339 #[deprecated]
340 #[unsafe(method(click))]
341 #[unsafe(method_family = none)]
342 pub unsafe fn click(&self);
343 );
344}
345
346#[cfg(all(
348 feature = "DOMElement",
349 feature = "DOMHTMLElement",
350 feature = "DOMNode",
351 feature = "DOMObject",
352 feature = "WebScriptObject"
353))]
354impl DOMHTMLInputElement {
355 extern_methods!(
356 #[deprecated]
357 #[unsafe(method(init))]
358 #[unsafe(method_family = init)]
359 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
360 );
361}
362
363#[cfg(all(
365 feature = "DOMElement",
366 feature = "DOMHTMLElement",
367 feature = "DOMNode",
368 feature = "DOMObject",
369 feature = "WebScriptObject"
370))]
371impl DOMHTMLInputElement {
372 extern_methods!(
373 #[unsafe(method(new))]
374 #[unsafe(method_family = new)]
375 pub unsafe fn new() -> Retained<Self>;
376 );
377}