objc2_web_kit/generated/
DOMHTMLFormElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domhtmlformelement?language=objc)
12    #[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))]
40extern_conformance!(
41    unsafe impl DOMEventTarget for DOMHTMLFormElement {}
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 DOMHTMLFormElement {}
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 DOMHTMLFormElement {
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 DOMHTMLFormElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLFormElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(acceptCharset))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn acceptCharset(&self) -> Retained<NSString>;
90
91        /// Setter for [`acceptCharset`][Self::acceptCharset].
92        ///
93        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
94        #[deprecated]
95        #[unsafe(method(setAcceptCharset:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setAcceptCharset(&self, accept_charset: Option<&NSString>);
98
99        #[deprecated]
100        #[unsafe(method(action))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn action(&self) -> Retained<NSString>;
103
104        /// Setter for [`action`][Self::action].
105        ///
106        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
107        #[deprecated]
108        #[unsafe(method(setAction:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn setAction(&self, action: Option<&NSString>);
111
112        #[deprecated]
113        #[unsafe(method(enctype))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn enctype(&self) -> Retained<NSString>;
116
117        /// Setter for [`enctype`][Self::enctype].
118        ///
119        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
120        #[deprecated]
121        #[unsafe(method(setEnctype:))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn setEnctype(&self, enctype: Option<&NSString>);
124
125        #[unsafe(method(encoding))]
126        #[unsafe(method_family = none)]
127        pub unsafe fn encoding(&self) -> Retained<NSString>;
128
129        /// Setter for [`encoding`][Self::encoding].
130        ///
131        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
132        #[unsafe(method(setEncoding:))]
133        #[unsafe(method_family = none)]
134        pub unsafe fn setEncoding(&self, encoding: Option<&NSString>);
135
136        #[deprecated]
137        #[unsafe(method(method))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn method(&self) -> Retained<NSString>;
140
141        /// Setter for [`method`][Self::method].
142        ///
143        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
144        #[deprecated]
145        #[unsafe(method(setMethod:))]
146        #[unsafe(method_family = none)]
147        pub unsafe fn setMethod(&self, method: Option<&NSString>);
148
149        #[deprecated]
150        #[unsafe(method(name))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn name(&self) -> Retained<NSString>;
153
154        /// Setter for [`name`][Self::name].
155        ///
156        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
157        #[deprecated]
158        #[unsafe(method(setName:))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn setName(&self, name: Option<&NSString>);
161
162        #[deprecated]
163        #[unsafe(method(target))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn target(&self) -> Retained<NSString>;
166
167        /// Setter for [`target`][Self::target].
168        ///
169        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
170        #[deprecated]
171        #[unsafe(method(setTarget:))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn setTarget(&self, target: Option<&NSString>);
174
175        #[cfg(feature = "DOMHTMLCollection")]
176        #[deprecated]
177        #[unsafe(method(elements))]
178        #[unsafe(method_family = none)]
179        pub unsafe fn elements(&self) -> Option<Retained<DOMHTMLCollection>>;
180
181        #[deprecated]
182        #[unsafe(method(length))]
183        #[unsafe(method_family = none)]
184        pub unsafe fn length(&self) -> c_int;
185
186        #[deprecated]
187        #[unsafe(method(submit))]
188        #[unsafe(method_family = none)]
189        pub unsafe fn submit(&self);
190
191        #[deprecated]
192        #[unsafe(method(reset))]
193        #[unsafe(method_family = none)]
194        pub unsafe fn reset(&self);
195    );
196}
197
198/// Methods declared on superclass `DOMObject`.
199#[cfg(all(
200    feature = "DOMElement",
201    feature = "DOMHTMLElement",
202    feature = "DOMNode",
203    feature = "DOMObject",
204    feature = "WebScriptObject"
205))]
206impl DOMHTMLFormElement {
207    extern_methods!(
208        #[deprecated]
209        #[unsafe(method(init))]
210        #[unsafe(method_family = init)]
211        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
212    );
213}
214
215/// Methods declared on superclass `NSObject`.
216#[cfg(all(
217    feature = "DOMElement",
218    feature = "DOMHTMLElement",
219    feature = "DOMNode",
220    feature = "DOMObject",
221    feature = "WebScriptObject"
222))]
223impl DOMHTMLFormElement {
224    extern_methods!(
225        #[unsafe(method(new))]
226        #[unsafe(method_family = new)]
227        pub unsafe fn new() -> Retained<Self>;
228    );
229}