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]
93 #[unsafe(method(setAccept:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setAccept(&self, accept: Option<&NSString>);
96
97 #[deprecated]
98 #[unsafe(method(alt))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn alt(&self) -> Retained<NSString>;
101
102 #[deprecated]
104 #[unsafe(method(setAlt:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setAlt(&self, alt: Option<&NSString>);
107
108 #[unsafe(method(autofocus))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn autofocus(&self) -> bool;
111
112 #[unsafe(method(setAutofocus:))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn setAutofocus(&self, autofocus: bool);
116
117 #[deprecated]
118 #[unsafe(method(defaultChecked))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn defaultChecked(&self) -> bool;
121
122 #[deprecated]
124 #[unsafe(method(setDefaultChecked:))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn setDefaultChecked(&self, default_checked: bool);
127
128 #[deprecated]
129 #[unsafe(method(checked))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn checked(&self) -> bool;
132
133 #[deprecated]
135 #[unsafe(method(setChecked:))]
136 #[unsafe(method_family = none)]
137 pub unsafe fn setChecked(&self, checked: bool);
138
139 #[deprecated]
140 #[unsafe(method(disabled))]
141 #[unsafe(method_family = none)]
142 pub unsafe fn disabled(&self) -> bool;
143
144 #[deprecated]
146 #[unsafe(method(setDisabled:))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn setDisabled(&self, disabled: bool);
149
150 #[cfg(feature = "DOMHTMLFormElement")]
151 #[deprecated]
152 #[unsafe(method(form))]
153 #[unsafe(method_family = none)]
154 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
155
156 #[cfg(feature = "DOMFileList")]
157 #[unsafe(method(files))]
158 #[unsafe(method_family = none)]
159 pub unsafe fn files(&self) -> Option<Retained<DOMFileList>>;
160
161 #[cfg(feature = "DOMFileList")]
162 #[unsafe(method(setFiles:))]
164 #[unsafe(method_family = none)]
165 pub unsafe fn setFiles(&self, files: Option<&DOMFileList>);
166
167 #[unsafe(method(indeterminate))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn indeterminate(&self) -> bool;
170
171 #[unsafe(method(setIndeterminate:))]
173 #[unsafe(method_family = none)]
174 pub unsafe fn setIndeterminate(&self, indeterminate: bool);
175
176 #[deprecated]
177 #[unsafe(method(maxLength))]
178 #[unsafe(method_family = none)]
179 pub unsafe fn maxLength(&self) -> c_int;
180
181 #[deprecated]
183 #[unsafe(method(setMaxLength:))]
184 #[unsafe(method_family = none)]
185 pub unsafe fn setMaxLength(&self, max_length: c_int);
186
187 #[unsafe(method(multiple))]
188 #[unsafe(method_family = none)]
189 pub unsafe fn multiple(&self) -> bool;
190
191 #[unsafe(method(setMultiple:))]
193 #[unsafe(method_family = none)]
194 pub unsafe fn setMultiple(&self, multiple: bool);
195
196 #[deprecated]
197 #[unsafe(method(name))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn name(&self) -> Retained<NSString>;
200
201 #[deprecated]
203 #[unsafe(method(setName:))]
204 #[unsafe(method_family = none)]
205 pub unsafe fn setName(&self, name: Option<&NSString>);
206
207 #[deprecated]
208 #[unsafe(method(readOnly))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn readOnly(&self) -> bool;
211
212 #[deprecated]
214 #[unsafe(method(setReadOnly:))]
215 #[unsafe(method_family = none)]
216 pub unsafe fn setReadOnly(&self, read_only: bool);
217
218 #[deprecated]
219 #[unsafe(method(size))]
220 #[unsafe(method_family = none)]
221 pub unsafe fn size(&self) -> Retained<NSString>;
222
223 #[deprecated]
225 #[unsafe(method(setSize:))]
226 #[unsafe(method_family = none)]
227 pub unsafe fn setSize(&self, size: Option<&NSString>);
228
229 #[deprecated]
230 #[unsafe(method(src))]
231 #[unsafe(method_family = none)]
232 pub unsafe fn src(&self) -> Retained<NSString>;
233
234 #[deprecated]
236 #[unsafe(method(setSrc:))]
237 #[unsafe(method_family = none)]
238 pub unsafe fn setSrc(&self, src: Option<&NSString>);
239
240 #[deprecated]
241 #[unsafe(method(type))]
242 #[unsafe(method_family = none)]
243 pub unsafe fn r#type(&self) -> Retained<NSString>;
244
245 #[deprecated]
247 #[unsafe(method(setType:))]
248 #[unsafe(method_family = none)]
249 pub unsafe fn setType(&self, r#type: Option<&NSString>);
250
251 #[deprecated]
252 #[unsafe(method(defaultValue))]
253 #[unsafe(method_family = none)]
254 pub unsafe fn defaultValue(&self) -> Retained<NSString>;
255
256 #[deprecated]
258 #[unsafe(method(setDefaultValue:))]
259 #[unsafe(method_family = none)]
260 pub unsafe fn setDefaultValue(&self, default_value: Option<&NSString>);
261
262 #[deprecated]
263 #[unsafe(method(value))]
264 #[unsafe(method_family = none)]
265 pub unsafe fn value(&self) -> Retained<NSString>;
266
267 #[deprecated]
269 #[unsafe(method(setValue:))]
270 #[unsafe(method_family = none)]
271 pub unsafe fn setValue(&self, value: Option<&NSString>);
272
273 #[unsafe(method(willValidate))]
274 #[unsafe(method_family = none)]
275 pub unsafe fn willValidate(&self) -> bool;
276
277 #[unsafe(method(selectionStart))]
278 #[unsafe(method_family = none)]
279 pub unsafe fn selectionStart(&self) -> c_int;
280
281 #[unsafe(method(setSelectionStart:))]
283 #[unsafe(method_family = none)]
284 pub unsafe fn setSelectionStart(&self, selection_start: c_int);
285
286 #[unsafe(method(selectionEnd))]
287 #[unsafe(method_family = none)]
288 pub unsafe fn selectionEnd(&self) -> c_int;
289
290 #[unsafe(method(setSelectionEnd:))]
292 #[unsafe(method_family = none)]
293 pub unsafe fn setSelectionEnd(&self, selection_end: c_int);
294
295 #[deprecated]
296 #[unsafe(method(align))]
297 #[unsafe(method_family = none)]
298 pub unsafe fn align(&self) -> Retained<NSString>;
299
300 #[deprecated]
302 #[unsafe(method(setAlign:))]
303 #[unsafe(method_family = none)]
304 pub unsafe fn setAlign(&self, align: Option<&NSString>);
305
306 #[deprecated]
307 #[unsafe(method(useMap))]
308 #[unsafe(method_family = none)]
309 pub unsafe fn useMap(&self) -> Retained<NSString>;
310
311 #[deprecated]
313 #[unsafe(method(setUseMap:))]
314 #[unsafe(method_family = none)]
315 pub unsafe fn setUseMap(&self, use_map: Option<&NSString>);
316
317 #[deprecated]
318 #[unsafe(method(accessKey))]
319 #[unsafe(method_family = none)]
320 pub unsafe fn accessKey(&self) -> Retained<NSString>;
321
322 #[deprecated]
324 #[unsafe(method(setAccessKey:))]
325 #[unsafe(method_family = none)]
326 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
327
328 #[unsafe(method(altDisplayString))]
329 #[unsafe(method_family = none)]
330 pub unsafe fn altDisplayString(&self) -> Retained<NSString>;
331
332 #[unsafe(method(absoluteImageURL))]
333 #[unsafe(method_family = none)]
334 pub unsafe fn absoluteImageURL(&self) -> Retained<NSURL>;
335
336 #[deprecated]
337 #[unsafe(method(select))]
338 #[unsafe(method_family = none)]
339 pub unsafe fn select(&self);
340
341 #[unsafe(method(setSelectionRange:end:))]
342 #[unsafe(method_family = none)]
343 pub unsafe fn setSelectionRange_end(&self, start: c_int, end: c_int);
344
345 #[deprecated]
346 #[unsafe(method(click))]
347 #[unsafe(method_family = none)]
348 pub unsafe fn click(&self);
349 );
350}
351
352#[cfg(all(
354 feature = "DOMElement",
355 feature = "DOMHTMLElement",
356 feature = "DOMNode",
357 feature = "DOMObject",
358 feature = "WebScriptObject"
359))]
360impl DOMHTMLInputElement {
361 extern_methods!(
362 #[deprecated]
363 #[unsafe(method(init))]
364 #[unsafe(method_family = init)]
365 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
366 );
367}
368
369#[cfg(all(
371 feature = "DOMElement",
372 feature = "DOMHTMLElement",
373 feature = "DOMNode",
374 feature = "DOMObject",
375 feature = "WebScriptObject"
376))]
377impl DOMHTMLInputElement {
378 extern_methods!(
379 #[unsafe(method(new))]
380 #[unsafe(method_family = new)]
381 pub unsafe fn new() -> Retained<Self>;
382 );
383}