objc2_web_kit/generated/
DOMHTMLLinkElement.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 DOMHTMLLinkElement;
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 DOMHTMLLinkElement {}
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 DOMHTMLLinkElement {}
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 DOMHTMLLinkElement {
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 DOMHTMLLinkElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLLinkElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(disabled))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn disabled(&self) -> bool;
90
91 #[deprecated]
93 #[unsafe(method(setDisabled:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setDisabled(&self, disabled: bool);
96
97 #[deprecated]
98 #[unsafe(method(charset))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn charset(&self) -> Retained<NSString>;
101
102 #[deprecated]
106 #[unsafe(method(setCharset:))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
109
110 #[deprecated]
111 #[unsafe(method(href))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn href(&self) -> Retained<NSString>;
114
115 #[deprecated]
119 #[unsafe(method(setHref:))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn setHref(&self, href: Option<&NSString>);
122
123 #[deprecated]
124 #[unsafe(method(hreflang))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn hreflang(&self) -> Retained<NSString>;
127
128 #[deprecated]
132 #[unsafe(method(setHreflang:))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn setHreflang(&self, hreflang: Option<&NSString>);
135
136 #[deprecated]
137 #[unsafe(method(media))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn media(&self) -> Retained<NSString>;
140
141 #[deprecated]
145 #[unsafe(method(setMedia:))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn setMedia(&self, media: Option<&NSString>);
148
149 #[deprecated]
150 #[unsafe(method(rel))]
151 #[unsafe(method_family = none)]
152 pub unsafe fn rel(&self) -> Retained<NSString>;
153
154 #[deprecated]
158 #[unsafe(method(setRel:))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn setRel(&self, rel: Option<&NSString>);
161
162 #[deprecated]
163 #[unsafe(method(rev))]
164 #[unsafe(method_family = none)]
165 pub unsafe fn rev(&self) -> Retained<NSString>;
166
167 #[deprecated]
171 #[unsafe(method(setRev:))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn setRev(&self, rev: Option<&NSString>);
174
175 #[deprecated]
176 #[unsafe(method(target))]
177 #[unsafe(method_family = none)]
178 pub unsafe fn target(&self) -> Retained<NSString>;
179
180 #[deprecated]
184 #[unsafe(method(setTarget:))]
185 #[unsafe(method_family = none)]
186 pub unsafe fn setTarget(&self, target: Option<&NSString>);
187
188 #[deprecated]
189 #[unsafe(method(type))]
190 #[unsafe(method_family = none)]
191 pub unsafe fn r#type(&self) -> Retained<NSString>;
192
193 #[deprecated]
197 #[unsafe(method(setType:))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn setType(&self, r#type: Option<&NSString>);
200
201 #[cfg(feature = "DOMStyleSheet")]
202 #[unsafe(method(sheet))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn sheet(&self) -> Option<Retained<DOMStyleSheet>>;
205
206 #[unsafe(method(absoluteLinkURL))]
207 #[unsafe(method_family = none)]
208 pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
209 );
210}
211
212#[cfg(all(
214 feature = "DOMElement",
215 feature = "DOMHTMLElement",
216 feature = "DOMNode",
217 feature = "DOMObject",
218 feature = "WebScriptObject"
219))]
220impl DOMHTMLLinkElement {
221 extern_methods!(
222 #[deprecated]
223 #[unsafe(method(init))]
224 #[unsafe(method_family = init)]
225 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
226 );
227}
228
229#[cfg(all(
231 feature = "DOMElement",
232 feature = "DOMHTMLElement",
233 feature = "DOMNode",
234 feature = "DOMObject",
235 feature = "WebScriptObject"
236))]
237impl DOMHTMLLinkElement {
238 extern_methods!(
239 #[unsafe(method(new))]
240 #[unsafe(method_family = new)]
241 pub unsafe fn new() -> Retained<Self>;
242 );
243}