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        #[deprecated]
93        #[unsafe(method(setAcceptCharset:))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn setAcceptCharset(&self, accept_charset: Option<&NSString>);
96
97        #[deprecated]
98        #[unsafe(method(action))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn action(&self) -> Retained<NSString>;
101
102        /// Setter for [`action`][Self::action].
103        #[deprecated]
104        #[unsafe(method(setAction:))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn setAction(&self, action: Option<&NSString>);
107
108        #[deprecated]
109        #[unsafe(method(enctype))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn enctype(&self) -> Retained<NSString>;
112
113        /// Setter for [`enctype`][Self::enctype].
114        #[deprecated]
115        #[unsafe(method(setEnctype:))]
116        #[unsafe(method_family = none)]
117        pub unsafe fn setEnctype(&self, enctype: Option<&NSString>);
118
119        #[unsafe(method(encoding))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn encoding(&self) -> Retained<NSString>;
122
123        /// Setter for [`encoding`][Self::encoding].
124        #[unsafe(method(setEncoding:))]
125        #[unsafe(method_family = none)]
126        pub unsafe fn setEncoding(&self, encoding: Option<&NSString>);
127
128        #[deprecated]
129        #[unsafe(method(method))]
130        #[unsafe(method_family = none)]
131        pub unsafe fn method(&self) -> Retained<NSString>;
132
133        /// Setter for [`method`][Self::method].
134        #[deprecated]
135        #[unsafe(method(setMethod:))]
136        #[unsafe(method_family = none)]
137        pub unsafe fn setMethod(&self, method: Option<&NSString>);
138
139        #[deprecated]
140        #[unsafe(method(name))]
141        #[unsafe(method_family = none)]
142        pub unsafe fn name(&self) -> Retained<NSString>;
143
144        /// Setter for [`name`][Self::name].
145        #[deprecated]
146        #[unsafe(method(setName:))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn setName(&self, name: Option<&NSString>);
149
150        #[deprecated]
151        #[unsafe(method(target))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn target(&self) -> Retained<NSString>;
154
155        /// Setter for [`target`][Self::target].
156        #[deprecated]
157        #[unsafe(method(setTarget:))]
158        #[unsafe(method_family = none)]
159        pub unsafe fn setTarget(&self, target: Option<&NSString>);
160
161        #[cfg(feature = "DOMHTMLCollection")]
162        #[deprecated]
163        #[unsafe(method(elements))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn elements(&self) -> Option<Retained<DOMHTMLCollection>>;
166
167        #[deprecated]
168        #[unsafe(method(length))]
169        #[unsafe(method_family = none)]
170        pub unsafe fn length(&self) -> c_int;
171
172        #[deprecated]
173        #[unsafe(method(submit))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn submit(&self);
176
177        #[deprecated]
178        #[unsafe(method(reset))]
179        #[unsafe(method_family = none)]
180        pub unsafe fn reset(&self);
181    );
182}
183
184/// Methods declared on superclass `DOMObject`.
185#[cfg(all(
186    feature = "DOMElement",
187    feature = "DOMHTMLElement",
188    feature = "DOMNode",
189    feature = "DOMObject",
190    feature = "WebScriptObject"
191))]
192impl DOMHTMLFormElement {
193    extern_methods!(
194        #[deprecated]
195        #[unsafe(method(init))]
196        #[unsafe(method_family = init)]
197        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
198    );
199}
200
201/// Methods declared on superclass `NSObject`.
202#[cfg(all(
203    feature = "DOMElement",
204    feature = "DOMHTMLElement",
205    feature = "DOMNode",
206    feature = "DOMObject",
207    feature = "WebScriptObject"
208))]
209impl DOMHTMLFormElement {
210    extern_methods!(
211        #[unsafe(method(new))]
212        #[unsafe(method_family = new)]
213        pub unsafe fn new() -> Retained<Self>;
214    );
215}