objc2_web_kit/generated/
DOMHTMLAreaElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domhtmlareaelement?language=objc)
12    #[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        /// Setter for [`alt`][Self::alt].
92        ///
93        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
94        #[deprecated]
95        #[unsafe(method(setAlt:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setAlt(&self, alt: Option<&NSString>);
98
99        #[deprecated]
100        #[unsafe(method(coords))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn coords(&self) -> Retained<NSString>;
103
104        /// Setter for [`coords`][Self::coords].
105        ///
106        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
107        #[deprecated]
108        #[unsafe(method(setCoords:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn setCoords(&self, coords: Option<&NSString>);
111
112        #[deprecated]
113        #[unsafe(method(noHref))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn noHref(&self) -> bool;
116
117        /// Setter for [`noHref`][Self::noHref].
118        #[deprecated]
119        #[unsafe(method(setNoHref:))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn setNoHref(&self, no_href: bool);
122
123        #[deprecated]
124        #[unsafe(method(shape))]
125        #[unsafe(method_family = none)]
126        pub unsafe fn shape(&self) -> Retained<NSString>;
127
128        /// Setter for [`shape`][Self::shape].
129        ///
130        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
131        #[deprecated]
132        #[unsafe(method(setShape:))]
133        #[unsafe(method_family = none)]
134        pub unsafe fn setShape(&self, shape: Option<&NSString>);
135
136        #[deprecated]
137        #[unsafe(method(target))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn target(&self) -> Retained<NSString>;
140
141        /// Setter for [`target`][Self::target].
142        ///
143        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
144        #[deprecated]
145        #[unsafe(method(setTarget:))]
146        #[unsafe(method_family = none)]
147        pub unsafe fn setTarget(&self, target: Option<&NSString>);
148
149        #[deprecated]
150        #[unsafe(method(accessKey))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn accessKey(&self) -> Retained<NSString>;
153
154        /// Setter for [`accessKey`][Self::accessKey].
155        ///
156        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
157        #[deprecated]
158        #[unsafe(method(setAccessKey:))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
161
162        #[unsafe(method(absoluteLinkURL))]
163        #[unsafe(method_family = none)]
164        pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
165
166        #[deprecated]
167        #[unsafe(method(href))]
168        #[unsafe(method_family = none)]
169        pub unsafe fn href(&self) -> Retained<NSString>;
170
171        /// Setter for [`href`][Self::href].
172        ///
173        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
174        #[deprecated]
175        #[unsafe(method(setHref:))]
176        #[unsafe(method_family = none)]
177        pub unsafe fn setHref(&self, href: Option<&NSString>);
178
179        #[unsafe(method(protocol))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn protocol(&self) -> Retained<NSString>;
182
183        #[unsafe(method(host))]
184        #[unsafe(method_family = none)]
185        pub unsafe fn host(&self) -> Retained<NSString>;
186
187        #[unsafe(method(hostname))]
188        #[unsafe(method_family = none)]
189        pub unsafe fn hostname(&self) -> Retained<NSString>;
190
191        #[unsafe(method(port))]
192        #[unsafe(method_family = none)]
193        pub unsafe fn port(&self) -> Retained<NSString>;
194
195        #[unsafe(method(pathname))]
196        #[unsafe(method_family = none)]
197        pub unsafe fn pathname(&self) -> Retained<NSString>;
198
199        #[unsafe(method(search))]
200        #[unsafe(method_family = none)]
201        pub unsafe fn search(&self) -> Retained<NSString>;
202
203        #[unsafe(method(hashName))]
204        #[unsafe(method_family = none)]
205        pub unsafe fn hashName(&self) -> Retained<NSString>;
206    );
207}
208
209/// Methods declared on superclass `DOMObject`.
210#[cfg(all(
211    feature = "DOMElement",
212    feature = "DOMHTMLElement",
213    feature = "DOMNode",
214    feature = "DOMObject",
215    feature = "WebScriptObject"
216))]
217impl DOMHTMLAreaElement {
218    extern_methods!(
219        #[deprecated]
220        #[unsafe(method(init))]
221        #[unsafe(method_family = init)]
222        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
223    );
224}
225
226/// Methods declared on superclass `NSObject`.
227#[cfg(all(
228    feature = "DOMElement",
229    feature = "DOMHTMLElement",
230    feature = "DOMNode",
231    feature = "DOMObject",
232    feature = "WebScriptObject"
233))]
234impl DOMHTMLAreaElement {
235    extern_methods!(
236        #[unsafe(method(new))]
237        #[unsafe(method_family = new)]
238        pub unsafe fn new() -> Retained<Self>;
239    );
240}