objc2_web_kit/generated/
DOMHTMLFormElement.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 DOMHTMLFormElement;
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 DOMHTMLFormElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLFormElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLFormElement {
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 DOMHTMLFormElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLFormElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(acceptCharset))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn acceptCharset(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setAcceptCharset:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setAcceptCharset(&self, accept_charset: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(action))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn action(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setAction:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setAction(&self, action: Option<&NSString>);
101
102 #[deprecated]
103 #[unsafe(method(enctype))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn enctype(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setEnctype:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setEnctype(&self, enctype: Option<&NSString>);
112
113 #[unsafe(method(encoding))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn encoding(&self) -> Retained<NSString>;
116
117 #[unsafe(method(setEncoding:))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn setEncoding(&self, encoding: Option<&NSString>);
121
122 #[deprecated]
123 #[unsafe(method(method))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn method(&self) -> Retained<NSString>;
126
127 #[deprecated]
129 #[unsafe(method(setMethod:))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn setMethod(&self, method: Option<&NSString>);
132
133 #[deprecated]
134 #[unsafe(method(name))]
135 #[unsafe(method_family = none)]
136 pub unsafe fn name(&self) -> Retained<NSString>;
137
138 #[deprecated]
140 #[unsafe(method(setName:))]
141 #[unsafe(method_family = none)]
142 pub unsafe fn setName(&self, name: Option<&NSString>);
143
144 #[deprecated]
145 #[unsafe(method(target))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn target(&self) -> Retained<NSString>;
148
149 #[deprecated]
151 #[unsafe(method(setTarget:))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn setTarget(&self, target: Option<&NSString>);
154
155 #[cfg(feature = "DOMHTMLCollection")]
156 #[deprecated]
157 #[unsafe(method(elements))]
158 #[unsafe(method_family = none)]
159 pub unsafe fn elements(&self) -> Option<Retained<DOMHTMLCollection>>;
160
161 #[deprecated]
162 #[unsafe(method(length))]
163 #[unsafe(method_family = none)]
164 pub unsafe fn length(&self) -> c_int;
165
166 #[deprecated]
167 #[unsafe(method(submit))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn submit(&self);
170
171 #[deprecated]
172 #[unsafe(method(reset))]
173 #[unsafe(method_family = none)]
174 pub unsafe fn reset(&self);
175 );
176}
177
178#[cfg(all(
180 feature = "DOMElement",
181 feature = "DOMHTMLElement",
182 feature = "DOMNode",
183 feature = "DOMObject",
184 feature = "WebScriptObject"
185))]
186impl DOMHTMLFormElement {
187 extern_methods!(
188 #[deprecated]
189 #[unsafe(method(init))]
190 #[unsafe(method_family = init)]
191 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
192 );
193}
194
195#[cfg(all(
197 feature = "DOMElement",
198 feature = "DOMHTMLElement",
199 feature = "DOMNode",
200 feature = "DOMObject",
201 feature = "WebScriptObject"
202))]
203impl DOMHTMLFormElement {
204 extern_methods!(
205 #[unsafe(method(new))]
206 #[unsafe(method_family = new)]
207 pub unsafe fn new() -> Retained<Self>;
208 );
209}