objc2_web_kit/generated/
DOMHTMLAreaElement.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 DOMHTMLAreaElement;
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 DOMHTMLAreaElement {}
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 DOMHTMLAreaElement {}
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 DOMHTMLAreaElement {
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 DOMHTMLAreaElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLAreaElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(alt))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn alt(&self) -> Retained<NSString>;
90
91 #[deprecated]
93 #[unsafe(method(setAlt:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setAlt(&self, alt: 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(noHref))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn noHref(&self) -> bool;
112
113 #[deprecated]
115 #[unsafe(method(setNoHref:))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn setNoHref(&self, no_href: bool);
118
119 #[deprecated]
120 #[unsafe(method(shape))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn shape(&self) -> Retained<NSString>;
123
124 #[deprecated]
126 #[unsafe(method(setShape:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setShape(&self, shape: Option<&NSString>);
129
130 #[deprecated]
131 #[unsafe(method(target))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn target(&self) -> Retained<NSString>;
134
135 #[deprecated]
137 #[unsafe(method(setTarget:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setTarget(&self, target: Option<&NSString>);
140
141 #[deprecated]
142 #[unsafe(method(accessKey))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn accessKey(&self) -> Retained<NSString>;
145
146 #[deprecated]
148 #[unsafe(method(setAccessKey:))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
151
152 #[unsafe(method(absoluteLinkURL))]
153 #[unsafe(method_family = none)]
154 pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
155
156 #[deprecated]
157 #[unsafe(method(href))]
158 #[unsafe(method_family = none)]
159 pub unsafe fn href(&self) -> Retained<NSString>;
160
161 #[deprecated]
163 #[unsafe(method(setHref:))]
164 #[unsafe(method_family = none)]
165 pub unsafe fn setHref(&self, href: Option<&NSString>);
166
167 #[unsafe(method(protocol))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn protocol(&self) -> Retained<NSString>;
170
171 #[unsafe(method(host))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn host(&self) -> Retained<NSString>;
174
175 #[unsafe(method(hostname))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn hostname(&self) -> Retained<NSString>;
178
179 #[unsafe(method(port))]
180 #[unsafe(method_family = none)]
181 pub unsafe fn port(&self) -> Retained<NSString>;
182
183 #[unsafe(method(pathname))]
184 #[unsafe(method_family = none)]
185 pub unsafe fn pathname(&self) -> Retained<NSString>;
186
187 #[unsafe(method(search))]
188 #[unsafe(method_family = none)]
189 pub unsafe fn search(&self) -> Retained<NSString>;
190
191 #[unsafe(method(hashName))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn hashName(&self) -> Retained<NSString>;
194 );
195}
196
197#[cfg(all(
199 feature = "DOMElement",
200 feature = "DOMHTMLElement",
201 feature = "DOMNode",
202 feature = "DOMObject",
203 feature = "WebScriptObject"
204))]
205impl DOMHTMLAreaElement {
206 extern_methods!(
207 #[deprecated]
208 #[unsafe(method(init))]
209 #[unsafe(method_family = init)]
210 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
211 );
212}
213
214#[cfg(all(
216 feature = "DOMElement",
217 feature = "DOMHTMLElement",
218 feature = "DOMNode",
219 feature = "DOMObject",
220 feature = "WebScriptObject"
221))]
222impl DOMHTMLAreaElement {
223 extern_methods!(
224 #[unsafe(method(new))]
225 #[unsafe(method_family = new)]
226 pub unsafe fn new() -> Retained<Self>;
227 );
228}