objc2_web_kit/generated/
DOMHTMLAnchorElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[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 DOMHTMLAnchorElement;
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 DOMHTMLAnchorElement {}
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 DOMHTMLAnchorElement {}
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 DOMHTMLAnchorElement {
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 DOMHTMLAnchorElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLAnchorElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(charset))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn charset(&self) -> Retained<NSString>;
90
91 #[deprecated]
93 #[unsafe(method(setCharset:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
96
97 #[deprecated]
98 #[unsafe(method(coords))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn coords(&self) -> Retained<NSString>;
101
102 #[deprecated]
104 #[unsafe(method(setCoords:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setCoords(&self, coords: Option<&NSString>);
107
108 #[deprecated]
109 #[unsafe(method(hreflang))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn hreflang(&self) -> Retained<NSString>;
112
113 #[deprecated]
115 #[unsafe(method(setHreflang:))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn setHreflang(&self, hreflang: Option<&NSString>);
118
119 #[deprecated]
120 #[unsafe(method(name))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn name(&self) -> Retained<NSString>;
123
124 #[deprecated]
126 #[unsafe(method(setName:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setName(&self, name: Option<&NSString>);
129
130 #[deprecated]
131 #[unsafe(method(rel))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn rel(&self) -> Retained<NSString>;
134
135 #[deprecated]
137 #[unsafe(method(setRel:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setRel(&self, rel: Option<&NSString>);
140
141 #[deprecated]
142 #[unsafe(method(rev))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn rev(&self) -> Retained<NSString>;
145
146 #[deprecated]
148 #[unsafe(method(setRev:))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn setRev(&self, rev: Option<&NSString>);
151
152 #[deprecated]
153 #[unsafe(method(shape))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn shape(&self) -> Retained<NSString>;
156
157 #[deprecated]
159 #[unsafe(method(setShape:))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn setShape(&self, shape: Option<&NSString>);
162
163 #[deprecated]
164 #[unsafe(method(target))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn target(&self) -> Retained<NSString>;
167
168 #[deprecated]
170 #[unsafe(method(setTarget:))]
171 #[unsafe(method_family = none)]
172 pub unsafe fn setTarget(&self, target: Option<&NSString>);
173
174 #[deprecated]
175 #[unsafe(method(type))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn r#type(&self) -> Retained<NSString>;
178
179 #[deprecated]
181 #[unsafe(method(setType:))]
182 #[unsafe(method_family = none)]
183 pub unsafe fn setType(&self, r#type: Option<&NSString>);
184
185 #[deprecated]
186 #[unsafe(method(accessKey))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn accessKey(&self) -> Retained<NSString>;
189
190 #[deprecated]
192 #[unsafe(method(setAccessKey:))]
193 #[unsafe(method_family = none)]
194 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
195
196 #[unsafe(method(text))]
197 #[unsafe(method_family = none)]
198 pub unsafe fn text(&self) -> Retained<NSString>;
199
200 #[unsafe(method(absoluteLinkURL))]
201 #[unsafe(method_family = none)]
202 pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
203
204 #[deprecated]
205 #[unsafe(method(href))]
206 #[unsafe(method_family = none)]
207 pub unsafe fn href(&self) -> Retained<NSString>;
208
209 #[deprecated]
211 #[unsafe(method(setHref:))]
212 #[unsafe(method_family = none)]
213 pub unsafe fn setHref(&self, href: Option<&NSString>);
214
215 #[unsafe(method(protocol))]
216 #[unsafe(method_family = none)]
217 pub unsafe fn protocol(&self) -> Retained<NSString>;
218
219 #[unsafe(method(host))]
220 #[unsafe(method_family = none)]
221 pub unsafe fn host(&self) -> Retained<NSString>;
222
223 #[unsafe(method(hostname))]
224 #[unsafe(method_family = none)]
225 pub unsafe fn hostname(&self) -> Retained<NSString>;
226
227 #[unsafe(method(port))]
228 #[unsafe(method_family = none)]
229 pub unsafe fn port(&self) -> Retained<NSString>;
230
231 #[unsafe(method(pathname))]
232 #[unsafe(method_family = none)]
233 pub unsafe fn pathname(&self) -> Retained<NSString>;
234
235 #[unsafe(method(search))]
236 #[unsafe(method_family = none)]
237 pub unsafe fn search(&self) -> Retained<NSString>;
238
239 #[unsafe(method(hashName))]
240 #[unsafe(method_family = none)]
241 pub unsafe fn hashName(&self) -> Retained<NSString>;
242 );
243}
244
245#[cfg(all(
247 feature = "DOMElement",
248 feature = "DOMHTMLElement",
249 feature = "DOMNode",
250 feature = "DOMObject",
251 feature = "WebScriptObject"
252))]
253impl DOMHTMLAnchorElement {
254 extern_methods!(
255 #[deprecated]
256 #[unsafe(method(init))]
257 #[unsafe(method_family = init)]
258 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
259 );
260}
261
262#[cfg(all(
264 feature = "DOMElement",
265 feature = "DOMHTMLElement",
266 feature = "DOMNode",
267 feature = "DOMObject",
268 feature = "WebScriptObject"
269))]
270impl DOMHTMLAnchorElement {
271 extern_methods!(
272 #[unsafe(method(new))]
273 #[unsafe(method_family = new)]
274 pub unsafe fn new() -> Retained<Self>;
275 );
276}