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))]
40unsafe impl DOMEventTarget for DOMHTMLAnchorElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLAnchorElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLAnchorElement {
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 DOMHTMLAnchorElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLAnchorElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(charset))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn charset(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setCharset:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(coords))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn coords(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setCoords:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setCoords(&self, coords: Option<&NSString>);
101
102 #[deprecated]
103 #[unsafe(method(hreflang))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn hreflang(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setHreflang:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setHreflang(&self, hreflang: Option<&NSString>);
112
113 #[deprecated]
114 #[unsafe(method(name))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn name(&self) -> Retained<NSString>;
117
118 #[deprecated]
120 #[unsafe(method(setName:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setName(&self, name: Option<&NSString>);
123
124 #[deprecated]
125 #[unsafe(method(rel))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn rel(&self) -> Retained<NSString>;
128
129 #[deprecated]
131 #[unsafe(method(setRel:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setRel(&self, rel: Option<&NSString>);
134
135 #[deprecated]
136 #[unsafe(method(rev))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn rev(&self) -> Retained<NSString>;
139
140 #[deprecated]
142 #[unsafe(method(setRev:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setRev(&self, rev: Option<&NSString>);
145
146 #[deprecated]
147 #[unsafe(method(shape))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn shape(&self) -> Retained<NSString>;
150
151 #[deprecated]
153 #[unsafe(method(setShape:))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn setShape(&self, shape: Option<&NSString>);
156
157 #[deprecated]
158 #[unsafe(method(target))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn target(&self) -> Retained<NSString>;
161
162 #[deprecated]
164 #[unsafe(method(setTarget:))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn setTarget(&self, target: Option<&NSString>);
167
168 #[deprecated]
169 #[unsafe(method(type))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn r#type(&self) -> Retained<NSString>;
172
173 #[deprecated]
175 #[unsafe(method(setType:))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn setType(&self, r#type: Option<&NSString>);
178
179 #[deprecated]
180 #[unsafe(method(accessKey))]
181 #[unsafe(method_family = none)]
182 pub unsafe fn accessKey(&self) -> Retained<NSString>;
183
184 #[deprecated]
186 #[unsafe(method(setAccessKey:))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
189
190 #[unsafe(method(text))]
191 #[unsafe(method_family = none)]
192 pub unsafe fn text(&self) -> Retained<NSString>;
193
194 #[unsafe(method(absoluteLinkURL))]
195 #[unsafe(method_family = none)]
196 pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
197
198 #[deprecated]
199 #[unsafe(method(href))]
200 #[unsafe(method_family = none)]
201 pub unsafe fn href(&self) -> Retained<NSString>;
202
203 #[deprecated]
205 #[unsafe(method(setHref:))]
206 #[unsafe(method_family = none)]
207 pub unsafe fn setHref(&self, href: Option<&NSString>);
208
209 #[unsafe(method(protocol))]
210 #[unsafe(method_family = none)]
211 pub unsafe fn protocol(&self) -> Retained<NSString>;
212
213 #[unsafe(method(host))]
214 #[unsafe(method_family = none)]
215 pub unsafe fn host(&self) -> Retained<NSString>;
216
217 #[unsafe(method(hostname))]
218 #[unsafe(method_family = none)]
219 pub unsafe fn hostname(&self) -> Retained<NSString>;
220
221 #[unsafe(method(port))]
222 #[unsafe(method_family = none)]
223 pub unsafe fn port(&self) -> Retained<NSString>;
224
225 #[unsafe(method(pathname))]
226 #[unsafe(method_family = none)]
227 pub unsafe fn pathname(&self) -> Retained<NSString>;
228
229 #[unsafe(method(search))]
230 #[unsafe(method_family = none)]
231 pub unsafe fn search(&self) -> Retained<NSString>;
232
233 #[unsafe(method(hashName))]
234 #[unsafe(method_family = none)]
235 pub unsafe fn hashName(&self) -> Retained<NSString>;
236 );
237}
238
239#[cfg(all(
241 feature = "DOMElement",
242 feature = "DOMHTMLElement",
243 feature = "DOMNode",
244 feature = "DOMObject",
245 feature = "WebScriptObject"
246))]
247impl DOMHTMLAnchorElement {
248 extern_methods!(
249 #[deprecated]
250 #[unsafe(method(init))]
251 #[unsafe(method_family = init)]
252 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
253 );
254}
255
256#[cfg(all(
258 feature = "DOMElement",
259 feature = "DOMHTMLElement",
260 feature = "DOMNode",
261 feature = "DOMObject",
262 feature = "WebScriptObject"
263))]
264impl DOMHTMLAnchorElement {
265 extern_methods!(
266 #[unsafe(method(new))]
267 #[unsafe(method_family = new)]
268 pub unsafe fn new() -> Retained<Self>;
269 );
270}