objc2_web_kit/generated/
DOMHTMLTextAreaElement.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/domhtmltextareaelement?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 DOMHTMLTextAreaElement;
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 DOMHTMLTextAreaElement {}
41
42#[cfg(all(
43    feature = "DOMElement",
44    feature = "DOMHTMLElement",
45    feature = "DOMNode",
46    feature = "DOMObject",
47    feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLTextAreaElement {}
50
51#[cfg(all(
52    feature = "DOMElement",
53    feature = "DOMHTMLElement",
54    feature = "DOMNode",
55    feature = "DOMObject",
56    feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLTextAreaElement {
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 DOMHTMLTextAreaElement {}
70
71#[cfg(all(
72    feature = "DOMElement",
73    feature = "DOMHTMLElement",
74    feature = "DOMNode",
75    feature = "DOMObject",
76    feature = "WebScriptObject"
77))]
78impl DOMHTMLTextAreaElement {
79    extern_methods!(
80        #[unsafe(method(autofocus))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn autofocus(&self) -> bool;
83
84        /// Setter for [`autofocus`][Self::autofocus].
85        #[unsafe(method(setAutofocus:))]
86        #[unsafe(method_family = none)]
87        pub unsafe fn setAutofocus(&self, autofocus: bool);
88
89        #[deprecated]
90        #[unsafe(method(disabled))]
91        #[unsafe(method_family = none)]
92        pub unsafe fn disabled(&self) -> bool;
93
94        /// Setter for [`disabled`][Self::disabled].
95        #[deprecated]
96        #[unsafe(method(setDisabled:))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn setDisabled(&self, disabled: bool);
99
100        #[cfg(feature = "DOMHTMLFormElement")]
101        #[deprecated]
102        #[unsafe(method(form))]
103        #[unsafe(method_family = none)]
104        pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
105
106        #[deprecated]
107        #[unsafe(method(name))]
108        #[unsafe(method_family = none)]
109        pub unsafe fn name(&self) -> Retained<NSString>;
110
111        /// Setter for [`name`][Self::name].
112        #[deprecated]
113        #[unsafe(method(setName:))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn setName(&self, name: Option<&NSString>);
116
117        #[deprecated]
118        #[unsafe(method(readOnly))]
119        #[unsafe(method_family = none)]
120        pub unsafe fn readOnly(&self) -> bool;
121
122        /// Setter for [`readOnly`][Self::readOnly].
123        #[deprecated]
124        #[unsafe(method(setReadOnly:))]
125        #[unsafe(method_family = none)]
126        pub unsafe fn setReadOnly(&self, read_only: bool);
127
128        #[deprecated]
129        #[unsafe(method(rows))]
130        #[unsafe(method_family = none)]
131        pub unsafe fn rows(&self) -> c_int;
132
133        /// Setter for [`rows`][Self::rows].
134        #[deprecated]
135        #[unsafe(method(setRows:))]
136        #[unsafe(method_family = none)]
137        pub unsafe fn setRows(&self, rows: c_int);
138
139        #[deprecated]
140        #[unsafe(method(cols))]
141        #[unsafe(method_family = none)]
142        pub unsafe fn cols(&self) -> c_int;
143
144        /// Setter for [`cols`][Self::cols].
145        #[deprecated]
146        #[unsafe(method(setCols:))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn setCols(&self, cols: c_int);
149
150        #[deprecated]
151        #[unsafe(method(type))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn r#type(&self) -> Retained<NSString>;
154
155        #[deprecated]
156        #[unsafe(method(defaultValue))]
157        #[unsafe(method_family = none)]
158        pub unsafe fn defaultValue(&self) -> Retained<NSString>;
159
160        /// Setter for [`defaultValue`][Self::defaultValue].
161        #[deprecated]
162        #[unsafe(method(setDefaultValue:))]
163        #[unsafe(method_family = none)]
164        pub unsafe fn setDefaultValue(&self, default_value: Option<&NSString>);
165
166        #[deprecated]
167        #[unsafe(method(value))]
168        #[unsafe(method_family = none)]
169        pub unsafe fn value(&self) -> Retained<NSString>;
170
171        /// Setter for [`value`][Self::value].
172        #[deprecated]
173        #[unsafe(method(setValue:))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn setValue(&self, value: Option<&NSString>);
176
177        #[unsafe(method(willValidate))]
178        #[unsafe(method_family = none)]
179        pub unsafe fn willValidate(&self) -> bool;
180
181        #[unsafe(method(selectionStart))]
182        #[unsafe(method_family = none)]
183        pub unsafe fn selectionStart(&self) -> c_int;
184
185        /// Setter for [`selectionStart`][Self::selectionStart].
186        #[unsafe(method(setSelectionStart:))]
187        #[unsafe(method_family = none)]
188        pub unsafe fn setSelectionStart(&self, selection_start: c_int);
189
190        #[unsafe(method(selectionEnd))]
191        #[unsafe(method_family = none)]
192        pub unsafe fn selectionEnd(&self) -> c_int;
193
194        /// Setter for [`selectionEnd`][Self::selectionEnd].
195        #[unsafe(method(setSelectionEnd:))]
196        #[unsafe(method_family = none)]
197        pub unsafe fn setSelectionEnd(&self, selection_end: c_int);
198
199        #[deprecated]
200        #[unsafe(method(accessKey))]
201        #[unsafe(method_family = none)]
202        pub unsafe fn accessKey(&self) -> Retained<NSString>;
203
204        /// Setter for [`accessKey`][Self::accessKey].
205        #[deprecated]
206        #[unsafe(method(setAccessKey:))]
207        #[unsafe(method_family = none)]
208        pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
209
210        #[deprecated]
211        #[unsafe(method(select))]
212        #[unsafe(method_family = none)]
213        pub unsafe fn select(&self);
214
215        #[unsafe(method(setSelectionRange:end:))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn setSelectionRange_end(&self, start: c_int, end: c_int);
218    );
219}
220
221/// Methods declared on superclass `DOMObject`.
222#[cfg(all(
223    feature = "DOMElement",
224    feature = "DOMHTMLElement",
225    feature = "DOMNode",
226    feature = "DOMObject",
227    feature = "WebScriptObject"
228))]
229impl DOMHTMLTextAreaElement {
230    extern_methods!(
231        #[deprecated]
232        #[unsafe(method(init))]
233        #[unsafe(method_family = init)]
234        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
235    );
236}
237
238/// Methods declared on superclass `NSObject`.
239#[cfg(all(
240    feature = "DOMElement",
241    feature = "DOMHTMLElement",
242    feature = "DOMNode",
243    feature = "DOMObject",
244    feature = "WebScriptObject"
245))]
246impl DOMHTMLTextAreaElement {
247    extern_methods!(
248        #[unsafe(method(new))]
249        #[unsafe(method_family = new)]
250        pub unsafe fn new() -> Retained<Self>;
251    );
252}