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))]
40unsafe impl DOMEventTarget for DOMHTMLAreaElement {}
41
42#[cfg(all(
43    feature = "DOMElement",
44    feature = "DOMHTMLElement",
45    feature = "DOMNode",
46    feature = "DOMObject",
47    feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLAreaElement {}
50
51#[cfg(all(
52    feature = "DOMElement",
53    feature = "DOMHTMLElement",
54    feature = "DOMNode",
55    feature = "DOMObject",
56    feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLAreaElement {
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 DOMHTMLAreaElement {}
70
71#[cfg(all(
72    feature = "DOMElement",
73    feature = "DOMHTMLElement",
74    feature = "DOMNode",
75    feature = "DOMObject",
76    feature = "WebScriptObject"
77))]
78impl DOMHTMLAreaElement {
79    extern_methods!(
80        #[deprecated]
81        #[unsafe(method(alt))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn alt(&self) -> Retained<NSString>;
84
85        /// Setter for [`alt`][Self::alt].
86        #[deprecated]
87        #[unsafe(method(setAlt:))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn setAlt(&self, alt: Option<&NSString>);
90
91        #[deprecated]
92        #[unsafe(method(coords))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn coords(&self) -> Retained<NSString>;
95
96        /// Setter for [`coords`][Self::coords].
97        #[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(noHref))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn noHref(&self) -> bool;
106
107        /// Setter for [`noHref`][Self::noHref].
108        #[deprecated]
109        #[unsafe(method(setNoHref:))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn setNoHref(&self, no_href: bool);
112
113        #[deprecated]
114        #[unsafe(method(shape))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn shape(&self) -> Retained<NSString>;
117
118        /// Setter for [`shape`][Self::shape].
119        #[deprecated]
120        #[unsafe(method(setShape:))]
121        #[unsafe(method_family = none)]
122        pub unsafe fn setShape(&self, shape: Option<&NSString>);
123
124        #[deprecated]
125        #[unsafe(method(target))]
126        #[unsafe(method_family = none)]
127        pub unsafe fn target(&self) -> Retained<NSString>;
128
129        /// Setter for [`target`][Self::target].
130        #[deprecated]
131        #[unsafe(method(setTarget:))]
132        #[unsafe(method_family = none)]
133        pub unsafe fn setTarget(&self, target: Option<&NSString>);
134
135        #[deprecated]
136        #[unsafe(method(accessKey))]
137        #[unsafe(method_family = none)]
138        pub unsafe fn accessKey(&self) -> Retained<NSString>;
139
140        /// Setter for [`accessKey`][Self::accessKey].
141        #[deprecated]
142        #[unsafe(method(setAccessKey:))]
143        #[unsafe(method_family = none)]
144        pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
145
146        #[unsafe(method(absoluteLinkURL))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
149
150        #[deprecated]
151        #[unsafe(method(href))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn href(&self) -> Retained<NSString>;
154
155        /// Setter for [`href`][Self::href].
156        #[deprecated]
157        #[unsafe(method(setHref:))]
158        #[unsafe(method_family = none)]
159        pub unsafe fn setHref(&self, href: Option<&NSString>);
160
161        #[unsafe(method(protocol))]
162        #[unsafe(method_family = none)]
163        pub unsafe fn protocol(&self) -> Retained<NSString>;
164
165        #[unsafe(method(host))]
166        #[unsafe(method_family = none)]
167        pub unsafe fn host(&self) -> Retained<NSString>;
168
169        #[unsafe(method(hostname))]
170        #[unsafe(method_family = none)]
171        pub unsafe fn hostname(&self) -> Retained<NSString>;
172
173        #[unsafe(method(port))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn port(&self) -> Retained<NSString>;
176
177        #[unsafe(method(pathname))]
178        #[unsafe(method_family = none)]
179        pub unsafe fn pathname(&self) -> Retained<NSString>;
180
181        #[unsafe(method(search))]
182        #[unsafe(method_family = none)]
183        pub unsafe fn search(&self) -> Retained<NSString>;
184
185        #[unsafe(method(hashName))]
186        #[unsafe(method_family = none)]
187        pub unsafe fn hashName(&self) -> Retained<NSString>;
188    );
189}
190
191/// Methods declared on superclass `DOMObject`.
192#[cfg(all(
193    feature = "DOMElement",
194    feature = "DOMHTMLElement",
195    feature = "DOMNode",
196    feature = "DOMObject",
197    feature = "WebScriptObject"
198))]
199impl DOMHTMLAreaElement {
200    extern_methods!(
201        #[deprecated]
202        #[unsafe(method(init))]
203        #[unsafe(method_family = init)]
204        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
205    );
206}
207
208/// Methods declared on superclass `NSObject`.
209#[cfg(all(
210    feature = "DOMElement",
211    feature = "DOMHTMLElement",
212    feature = "DOMNode",
213    feature = "DOMObject",
214    feature = "WebScriptObject"
215))]
216impl DOMHTMLAreaElement {
217    extern_methods!(
218        #[unsafe(method(new))]
219        #[unsafe(method_family = new)]
220        pub unsafe fn new() -> Retained<Self>;
221    );
222}