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))]
40extern_conformance!(
41 unsafe impl DOMEventTarget for DOMHTMLInputElement {}
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 DOMHTMLInputElement {}
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 DOMHTMLInputElement {
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 DOMHTMLInputElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLInputElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(accept))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn accept(&self) -> Retained<NSString>;
90
91 #[deprecated]
95 #[unsafe(method(setAccept:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn setAccept(&self, accept: Option<&NSString>);
98
99 #[deprecated]
100 #[unsafe(method(alt))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn alt(&self) -> Retained<NSString>;
103
104 #[deprecated]
108 #[unsafe(method(setAlt:))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn setAlt(&self, alt: Option<&NSString>);
111
112 #[unsafe(method(autofocus))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn autofocus(&self) -> bool;
115
116 #[unsafe(method(setAutofocus:))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn setAutofocus(&self, autofocus: bool);
120
121 #[deprecated]
122 #[unsafe(method(defaultChecked))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn defaultChecked(&self) -> bool;
125
126 #[deprecated]
128 #[unsafe(method(setDefaultChecked:))]
129 #[unsafe(method_family = none)]
130 pub unsafe fn setDefaultChecked(&self, default_checked: bool);
131
132 #[deprecated]
133 #[unsafe(method(checked))]
134 #[unsafe(method_family = none)]
135 pub unsafe fn checked(&self) -> bool;
136
137 #[deprecated]
139 #[unsafe(method(setChecked:))]
140 #[unsafe(method_family = none)]
141 pub unsafe fn setChecked(&self, checked: bool);
142
143 #[deprecated]
144 #[unsafe(method(disabled))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn disabled(&self) -> bool;
147
148 #[deprecated]
150 #[unsafe(method(setDisabled:))]
151 #[unsafe(method_family = none)]
152 pub unsafe fn setDisabled(&self, disabled: bool);
153
154 #[cfg(feature = "DOMHTMLFormElement")]
155 #[deprecated]
156 #[unsafe(method(form))]
157 #[unsafe(method_family = none)]
158 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
159
160 #[cfg(feature = "DOMFileList")]
161 #[unsafe(method(files))]
162 #[unsafe(method_family = none)]
163 pub unsafe fn files(&self) -> Option<Retained<DOMFileList>>;
164
165 #[cfg(feature = "DOMFileList")]
166 #[unsafe(method(setFiles:))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn setFiles(&self, files: Option<&DOMFileList>);
174
175 #[unsafe(method(indeterminate))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn indeterminate(&self) -> bool;
178
179 #[unsafe(method(setIndeterminate:))]
181 #[unsafe(method_family = none)]
182 pub unsafe fn setIndeterminate(&self, indeterminate: bool);
183
184 #[deprecated]
185 #[unsafe(method(maxLength))]
186 #[unsafe(method_family = none)]
187 pub unsafe fn maxLength(&self) -> c_int;
188
189 #[deprecated]
191 #[unsafe(method(setMaxLength:))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn setMaxLength(&self, max_length: c_int);
194
195 #[unsafe(method(multiple))]
196 #[unsafe(method_family = none)]
197 pub unsafe fn multiple(&self) -> bool;
198
199 #[unsafe(method(setMultiple:))]
201 #[unsafe(method_family = none)]
202 pub unsafe fn setMultiple(&self, multiple: bool);
203
204 #[deprecated]
205 #[unsafe(method(name))]
206 #[unsafe(method_family = none)]
207 pub unsafe fn name(&self) -> Retained<NSString>;
208
209 #[deprecated]
213 #[unsafe(method(setName:))]
214 #[unsafe(method_family = none)]
215 pub unsafe fn setName(&self, name: Option<&NSString>);
216
217 #[deprecated]
218 #[unsafe(method(readOnly))]
219 #[unsafe(method_family = none)]
220 pub unsafe fn readOnly(&self) -> bool;
221
222 #[deprecated]
224 #[unsafe(method(setReadOnly:))]
225 #[unsafe(method_family = none)]
226 pub unsafe fn setReadOnly(&self, read_only: bool);
227
228 #[deprecated]
229 #[unsafe(method(size))]
230 #[unsafe(method_family = none)]
231 pub unsafe fn size(&self) -> Retained<NSString>;
232
233 #[deprecated]
237 #[unsafe(method(setSize:))]
238 #[unsafe(method_family = none)]
239 pub unsafe fn setSize(&self, size: Option<&NSString>);
240
241 #[deprecated]
242 #[unsafe(method(src))]
243 #[unsafe(method_family = none)]
244 pub unsafe fn src(&self) -> Retained<NSString>;
245
246 #[deprecated]
250 #[unsafe(method(setSrc:))]
251 #[unsafe(method_family = none)]
252 pub unsafe fn setSrc(&self, src: Option<&NSString>);
253
254 #[deprecated]
255 #[unsafe(method(type))]
256 #[unsafe(method_family = none)]
257 pub unsafe fn r#type(&self) -> Retained<NSString>;
258
259 #[deprecated]
263 #[unsafe(method(setType:))]
264 #[unsafe(method_family = none)]
265 pub unsafe fn setType(&self, r#type: Option<&NSString>);
266
267 #[deprecated]
268 #[unsafe(method(defaultValue))]
269 #[unsafe(method_family = none)]
270 pub unsafe fn defaultValue(&self) -> Retained<NSString>;
271
272 #[deprecated]
276 #[unsafe(method(setDefaultValue:))]
277 #[unsafe(method_family = none)]
278 pub unsafe fn setDefaultValue(&self, default_value: Option<&NSString>);
279
280 #[deprecated]
281 #[unsafe(method(value))]
282 #[unsafe(method_family = none)]
283 pub unsafe fn value(&self) -> Retained<NSString>;
284
285 #[deprecated]
289 #[unsafe(method(setValue:))]
290 #[unsafe(method_family = none)]
291 pub unsafe fn setValue(&self, value: Option<&NSString>);
292
293 #[unsafe(method(willValidate))]
294 #[unsafe(method_family = none)]
295 pub unsafe fn willValidate(&self) -> bool;
296
297 #[unsafe(method(selectionStart))]
298 #[unsafe(method_family = none)]
299 pub unsafe fn selectionStart(&self) -> c_int;
300
301 #[unsafe(method(setSelectionStart:))]
303 #[unsafe(method_family = none)]
304 pub unsafe fn setSelectionStart(&self, selection_start: c_int);
305
306 #[unsafe(method(selectionEnd))]
307 #[unsafe(method_family = none)]
308 pub unsafe fn selectionEnd(&self) -> c_int;
309
310 #[unsafe(method(setSelectionEnd:))]
312 #[unsafe(method_family = none)]
313 pub unsafe fn setSelectionEnd(&self, selection_end: c_int);
314
315 #[deprecated]
316 #[unsafe(method(align))]
317 #[unsafe(method_family = none)]
318 pub unsafe fn align(&self) -> Retained<NSString>;
319
320 #[deprecated]
324 #[unsafe(method(setAlign:))]
325 #[unsafe(method_family = none)]
326 pub unsafe fn setAlign(&self, align: Option<&NSString>);
327
328 #[deprecated]
329 #[unsafe(method(useMap))]
330 #[unsafe(method_family = none)]
331 pub unsafe fn useMap(&self) -> Retained<NSString>;
332
333 #[deprecated]
337 #[unsafe(method(setUseMap:))]
338 #[unsafe(method_family = none)]
339 pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
340
341 #[deprecated]
342 #[unsafe(method(accessKey))]
343 #[unsafe(method_family = none)]
344 pub unsafe fn accessKey(&self) -> Retained<NSString>;
345
346 #[deprecated]
350 #[unsafe(method(setAccessKey:))]
351 #[unsafe(method_family = none)]
352 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
353
354 #[unsafe(method(altDisplayString))]
355 #[unsafe(method_family = none)]
356 pub unsafe fn altDisplayString(&self) -> Retained<NSString>;
357
358 #[unsafe(method(absoluteImageURL))]
359 #[unsafe(method_family = none)]
360 pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
361
362 #[deprecated]
363 #[unsafe(method(select))]
364 #[unsafe(method_family = none)]
365 pub unsafe fn select(&self);
366
367 #[unsafe(method(setSelectionRange:end:))]
368 #[unsafe(method_family = none)]
369 pub unsafe fn setSelectionRange_end(&self, start: c_int, end: c_int);
370
371 #[deprecated]
372 #[unsafe(method(click))]
373 #[unsafe(method_family = none)]
374 pub unsafe fn click(&self);
375 );
376}
377
378#[cfg(all(
380 feature = "DOMElement",
381 feature = "DOMHTMLElement",
382 feature = "DOMNode",
383 feature = "DOMObject",
384 feature = "WebScriptObject"
385))]
386impl DOMHTMLInputElement {
387 extern_methods!(
388 #[deprecated]
389 #[unsafe(method(init))]
390 #[unsafe(method_family = init)]
391 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
392 );
393}
394
395#[cfg(all(
397 feature = "DOMElement",
398 feature = "DOMHTMLElement",
399 feature = "DOMNode",
400 feature = "DOMObject",
401 feature = "WebScriptObject"
402))]
403impl DOMHTMLInputElement {
404 extern_methods!(
405 #[unsafe(method(new))]
406 #[unsafe(method_family = new)]
407 pub unsafe fn new() -> Retained<Self>;
408 );
409}