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))]
31unsafe impl DOMEventTarget for DOMHTMLElement {}
32
33#[cfg(all(
34 feature = "DOMElement",
35 feature = "DOMNode",
36 feature = "DOMObject",
37 feature = "WebScriptObject"
38))]
39unsafe impl NSCopying for DOMHTMLElement {}
40
41#[cfg(all(
42 feature = "DOMElement",
43 feature = "DOMNode",
44 feature = "DOMObject",
45 feature = "WebScriptObject"
46))]
47unsafe impl CopyingHelper for DOMHTMLElement {
48 type Result = Self;
49}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMNode",
54 feature = "DOMObject",
55 feature = "WebScriptObject"
56))]
57unsafe impl NSObjectProtocol for DOMHTMLElement {}
58
59#[cfg(all(
60 feature = "DOMElement",
61 feature = "DOMNode",
62 feature = "DOMObject",
63 feature = "WebScriptObject"
64))]
65impl DOMHTMLElement {
66 extern_methods!(
67 #[deprecated]
68 #[unsafe(method(title))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn title(&self) -> Retained<NSString>;
71
72 #[deprecated]
74 #[unsafe(method(setTitle:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn setTitle(&self, title: Option<&NSString>);
77
78 #[deprecated]
79 #[unsafe(method(lang))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn lang(&self) -> Retained<NSString>;
82
83 #[deprecated]
85 #[unsafe(method(setLang:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setLang(&self, lang: Option<&NSString>);
88
89 #[deprecated]
90 #[unsafe(method(dir))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn dir(&self) -> Retained<NSString>;
93
94 #[deprecated]
96 #[unsafe(method(setDir:))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn setDir(&self, dir: Option<&NSString>);
99
100 #[deprecated]
101 #[unsafe(method(tabIndex))]
102 #[unsafe(method_family = none)]
103 pub unsafe fn tabIndex(&self) -> c_int;
104
105 #[deprecated]
107 #[unsafe(method(setTabIndex:))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn setTabIndex(&self, tab_index: c_int);
110
111 #[unsafe(method(accessKey))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn accessKey(&self) -> Retained<NSString>;
114
115 #[unsafe(method(setAccessKey:))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
119
120 #[deprecated]
121 #[unsafe(method(innerText))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn innerText(&self) -> Retained<NSString>;
124
125 #[deprecated]
127 #[unsafe(method(setInnerText:))]
128 #[unsafe(method_family = none)]
129 pub unsafe fn setInnerText(&self, inner_text: Option<&NSString>);
130
131 #[deprecated]
132 #[unsafe(method(outerText))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn outerText(&self) -> Retained<NSString>;
135
136 #[deprecated]
138 #[unsafe(method(setOuterText:))]
139 #[unsafe(method_family = none)]
140 pub unsafe fn setOuterText(&self, outer_text: Option<&NSString>);
141
142 #[deprecated]
143 #[unsafe(method(contentEditable))]
144 #[unsafe(method_family = none)]
145 pub unsafe fn contentEditable(&self) -> Retained<NSString>;
146
147 #[deprecated]
149 #[unsafe(method(setContentEditable:))]
150 #[unsafe(method_family = none)]
151 pub unsafe fn setContentEditable(&self, content_editable: Option<&NSString>);
152
153 #[deprecated]
154 #[unsafe(method(isContentEditable))]
155 #[unsafe(method_family = none)]
156 pub unsafe fn isContentEditable(&self) -> bool;
157
158 #[deprecated]
159 #[unsafe(method(idName))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn idName(&self) -> Retained<NSString>;
162
163 #[deprecated]
165 #[unsafe(method(setIdName:))]
166 #[unsafe(method_family = none)]
167 pub unsafe fn setIdName(&self, id_name: Option<&NSString>);
168
169 #[cfg(feature = "DOMHTMLCollection")]
170 #[deprecated]
171 #[unsafe(method(children))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn children(&self) -> Option<Retained<DOMHTMLCollection>>;
174
175 #[unsafe(method(titleDisplayString))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn titleDisplayString(&self) -> Retained<NSString>;
178
179 #[unsafe(method(click))]
180 #[unsafe(method_family = none)]
181 pub unsafe fn click(&self);
182 );
183}
184
185#[cfg(all(
187 feature = "DOMElement",
188 feature = "DOMNode",
189 feature = "DOMObject",
190 feature = "WebScriptObject"
191))]
192impl DOMHTMLElement {
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#[cfg(all(
203 feature = "DOMElement",
204 feature = "DOMNode",
205 feature = "DOMObject",
206 feature = "WebScriptObject"
207))]
208impl DOMHTMLElement {
209 extern_methods!(
210 #[unsafe(method(new))]
211 #[unsafe(method_family = new)]
212 pub unsafe fn new() -> Retained<Self>;
213 );
214}