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]
80 #[unsafe(method(setTitle:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn setTitle(&self, title: Option<&NSString>);
83
84 #[deprecated]
85 #[unsafe(method(lang))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn lang(&self) -> Retained<NSString>;
88
89 #[deprecated]
91 #[unsafe(method(setLang:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setLang(&self, lang: Option<&NSString>);
94
95 #[deprecated]
96 #[unsafe(method(dir))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn dir(&self) -> Retained<NSString>;
99
100 #[deprecated]
102 #[unsafe(method(setDir:))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn setDir(&self, dir: Option<&NSString>);
105
106 #[deprecated]
107 #[unsafe(method(tabIndex))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn tabIndex(&self) -> c_int;
110
111 #[deprecated]
113 #[unsafe(method(setTabIndex:))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn setTabIndex(&self, tab_index: c_int);
116
117 #[unsafe(method(accessKey))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn accessKey(&self) -> Retained<NSString>;
120
121 #[unsafe(method(setAccessKey:))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
125
126 #[deprecated]
127 #[unsafe(method(innerText))]
128 #[unsafe(method_family = none)]
129 pub unsafe fn innerText(&self) -> Retained<NSString>;
130
131 #[deprecated]
133 #[unsafe(method(setInnerText:))]
134 #[unsafe(method_family = none)]
135 pub unsafe fn setInnerText(&self, inner_text: Option<&NSString>);
136
137 #[deprecated]
138 #[unsafe(method(outerText))]
139 #[unsafe(method_family = none)]
140 pub unsafe fn outerText(&self) -> Retained<NSString>;
141
142 #[deprecated]
144 #[unsafe(method(setOuterText:))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn setOuterText(&self, outer_text: Option<&NSString>);
147
148 #[deprecated]
149 #[unsafe(method(contentEditable))]
150 #[unsafe(method_family = none)]
151 pub unsafe fn contentEditable(&self) -> Retained<NSString>;
152
153 #[deprecated]
155 #[unsafe(method(setContentEditable:))]
156 #[unsafe(method_family = none)]
157 pub unsafe fn setContentEditable(&self, content_editable: Option<&NSString>);
158
159 #[deprecated]
160 #[unsafe(method(isContentEditable))]
161 #[unsafe(method_family = none)]
162 pub unsafe fn isContentEditable(&self) -> bool;
163
164 #[deprecated]
165 #[unsafe(method(idName))]
166 #[unsafe(method_family = none)]
167 pub unsafe fn idName(&self) -> Retained<NSString>;
168
169 #[deprecated]
171 #[unsafe(method(setIdName:))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn setIdName(&self, id_name: Option<&NSString>);
174
175 #[cfg(feature = "DOMHTMLCollection")]
176 #[deprecated]
177 #[unsafe(method(children))]
178 #[unsafe(method_family = none)]
179 pub unsafe fn children(&self) -> Option<Retained<DOMHTMLCollection>>;
180
181 #[unsafe(method(titleDisplayString))]
182 #[unsafe(method_family = none)]
183 pub unsafe fn titleDisplayString(&self) -> Retained<NSString>;
184
185 #[unsafe(method(click))]
186 #[unsafe(method_family = none)]
187 pub unsafe fn click(&self);
188 );
189}
190
191#[cfg(all(
193 feature = "DOMElement",
194 feature = "DOMNode",
195 feature = "DOMObject",
196 feature = "WebScriptObject"
197))]
198impl DOMHTMLElement {
199 extern_methods!(
200 #[deprecated]
201 #[unsafe(method(init))]
202 #[unsafe(method_family = init)]
203 pub unsafe fn init(this: Allocated<Self>) -> Retained<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 #[unsafe(method(new))]
217 #[unsafe(method_family = new)]
218 pub unsafe fn new() -> Retained<Self>;
219 );
220}