objc2_web_kit/generated/
DOMHTMLElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(DOMElement, DOMNode, DOMObject, WebScriptObject, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(
15 feature = "DOMElement",
16 feature = "DOMNode",
17 feature = "DOMObject",
18 feature = "WebScriptObject"
19 ))]
20 #[deprecated]
21 pub struct DOMHTMLElement;
22);
23
24#[cfg(all(
25 feature = "DOMElement",
26 feature = "DOMEventTarget",
27 feature = "DOMNode",
28 feature = "DOMObject",
29 feature = "WebScriptObject"
30))]
31extern_conformance!(
32 unsafe impl DOMEventTarget for DOMHTMLElement {}
33);
34
35#[cfg(all(
36 feature = "DOMElement",
37 feature = "DOMNode",
38 feature = "DOMObject",
39 feature = "WebScriptObject"
40))]
41extern_conformance!(
42 unsafe impl NSCopying for DOMHTMLElement {}
43);
44
45#[cfg(all(
46 feature = "DOMElement",
47 feature = "DOMNode",
48 feature = "DOMObject",
49 feature = "WebScriptObject"
50))]
51unsafe impl CopyingHelper for DOMHTMLElement {
52 type Result = Self;
53}
54
55#[cfg(all(
56 feature = "DOMElement",
57 feature = "DOMNode",
58 feature = "DOMObject",
59 feature = "WebScriptObject"
60))]
61extern_conformance!(
62 unsafe impl NSObjectProtocol for DOMHTMLElement {}
63);
64
65#[cfg(all(
66 feature = "DOMElement",
67 feature = "DOMNode",
68 feature = "DOMObject",
69 feature = "WebScriptObject"
70))]
71impl DOMHTMLElement {
72 extern_methods!(
73 #[deprecated]
74 #[unsafe(method(title))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn title(&self) -> Retained<NSString>;
77
78 #[deprecated]
82 #[unsafe(method(setTitle:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn setTitle(&self, title: Option<&NSString>);
85
86 #[deprecated]
87 #[unsafe(method(lang))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn lang(&self) -> Retained<NSString>;
90
91 #[deprecated]
95 #[unsafe(method(setLang:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn setLang(&self, lang: Option<&NSString>);
98
99 #[deprecated]
100 #[unsafe(method(dir))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn dir(&self) -> Retained<NSString>;
103
104 #[deprecated]
108 #[unsafe(method(setDir:))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn setDir(&self, dir: Option<&NSString>);
111
112 #[deprecated]
113 #[unsafe(method(tabIndex))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn tabIndex(&self) -> c_int;
116
117 #[deprecated]
119 #[unsafe(method(setTabIndex:))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn setTabIndex(&self, tab_index: c_int);
122
123 #[unsafe(method(accessKey))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn accessKey(&self) -> Retained<NSString>;
126
127 #[unsafe(method(setAccessKey:))]
131 #[unsafe(method_family = none)]
132 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
133
134 #[deprecated]
135 #[unsafe(method(innerText))]
136 #[unsafe(method_family = none)]
137 pub unsafe fn innerText(&self) -> Retained<NSString>;
138
139 #[deprecated]
143 #[unsafe(method(setInnerText:))]
144 #[unsafe(method_family = none)]
145 pub unsafe fn setInnerText(&self, inner_text: Option<&NSString>);
146
147 #[deprecated]
148 #[unsafe(method(outerText))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn outerText(&self) -> Retained<NSString>;
151
152 #[deprecated]
156 #[unsafe(method(setOuterText:))]
157 #[unsafe(method_family = none)]
158 pub unsafe fn setOuterText(&self, outer_text: Option<&NSString>);
159
160 #[deprecated]
161 #[unsafe(method(contentEditable))]
162 #[unsafe(method_family = none)]
163 pub unsafe fn contentEditable(&self) -> Retained<NSString>;
164
165 #[deprecated]
169 #[unsafe(method(setContentEditable:))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn setContentEditable(&self, content_editable: Option<&NSString>);
172
173 #[deprecated]
174 #[unsafe(method(isContentEditable))]
175 #[unsafe(method_family = none)]
176 pub unsafe fn isContentEditable(&self) -> bool;
177
178 #[deprecated]
179 #[unsafe(method(idName))]
180 #[unsafe(method_family = none)]
181 pub unsafe fn idName(&self) -> Retained<NSString>;
182
183 #[deprecated]
187 #[unsafe(method(setIdName:))]
188 #[unsafe(method_family = none)]
189 pub unsafe fn setIdName(&self, id_name: Option<&NSString>);
190
191 #[cfg(feature = "DOMHTMLCollection")]
192 #[deprecated]
193 #[unsafe(method(children))]
194 #[unsafe(method_family = none)]
195 pub unsafe fn children(&self) -> Option<Retained<DOMHTMLCollection>>;
196
197 #[unsafe(method(titleDisplayString))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn titleDisplayString(&self) -> Retained<NSString>;
200
201 #[unsafe(method(click))]
202 #[unsafe(method_family = none)]
203 pub unsafe fn click(&self);
204 );
205}
206
207#[cfg(all(
209 feature = "DOMElement",
210 feature = "DOMNode",
211 feature = "DOMObject",
212 feature = "WebScriptObject"
213))]
214impl DOMHTMLElement {
215 extern_methods!(
216 #[deprecated]
217 #[unsafe(method(init))]
218 #[unsafe(method_family = init)]
219 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
220 );
221}
222
223#[cfg(all(
225 feature = "DOMElement",
226 feature = "DOMNode",
227 feature = "DOMObject",
228 feature = "WebScriptObject"
229))]
230impl DOMHTMLElement {
231 extern_methods!(
232 #[unsafe(method(new))]
233 #[unsafe(method_family = new)]
234 pub unsafe fn new() -> Retained<Self>;
235 );
236}