objc2_web_kit/generated/
DOMHTMLBodyElement.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/domhtmlbodyelement?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 DOMHTMLBodyElement;
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 DOMHTMLBodyElement {}
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 DOMHTMLBodyElement {}
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 DOMHTMLBodyElement {
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 DOMHTMLBodyElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLBodyElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(aLink))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn aLink(&self) -> Retained<NSString>;
90
91        /// Setter for [`aLink`][Self::aLink].
92        ///
93        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
94        #[deprecated]
95        #[unsafe(method(setALink:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setALink(&self, a_link: Option<&NSString>);
98
99        #[deprecated]
100        #[unsafe(method(background))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn background(&self) -> Retained<NSString>;
103
104        /// Setter for [`background`][Self::background].
105        ///
106        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
107        #[deprecated]
108        #[unsafe(method(setBackground:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn setBackground(&self, background: Option<&NSString>);
111
112        #[deprecated]
113        #[unsafe(method(bgColor))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn bgColor(&self) -> Retained<NSString>;
116
117        /// Setter for [`bgColor`][Self::bgColor].
118        ///
119        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
120        #[deprecated]
121        #[unsafe(method(setBgColor:))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
124
125        #[deprecated]
126        #[unsafe(method(link))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn link(&self) -> Retained<NSString>;
129
130        /// Setter for [`link`][Self::link].
131        ///
132        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
133        #[deprecated]
134        #[unsafe(method(setLink:))]
135        #[unsafe(method_family = none)]
136        pub unsafe fn setLink(&self, link: Option<&NSString>);
137
138        #[deprecated]
139        #[unsafe(method(text))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn text(&self) -> Retained<NSString>;
142
143        /// Setter for [`text`][Self::text].
144        ///
145        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
146        #[deprecated]
147        #[unsafe(method(setText:))]
148        #[unsafe(method_family = none)]
149        pub unsafe fn setText(&self, text: Option<&NSString>);
150
151        #[deprecated]
152        #[unsafe(method(vLink))]
153        #[unsafe(method_family = none)]
154        pub unsafe fn vLink(&self) -> Retained<NSString>;
155
156        /// Setter for [`vLink`][Self::vLink].
157        ///
158        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
159        #[deprecated]
160        #[unsafe(method(setVLink:))]
161        #[unsafe(method_family = none)]
162        pub unsafe fn setVLink(&self, v_link: Option<&NSString>);
163    );
164}
165
166/// Methods declared on superclass `DOMObject`.
167#[cfg(all(
168    feature = "DOMElement",
169    feature = "DOMHTMLElement",
170    feature = "DOMNode",
171    feature = "DOMObject",
172    feature = "WebScriptObject"
173))]
174impl DOMHTMLBodyElement {
175    extern_methods!(
176        #[deprecated]
177        #[unsafe(method(init))]
178        #[unsafe(method_family = init)]
179        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
180    );
181}
182
183/// Methods declared on superclass `NSObject`.
184#[cfg(all(
185    feature = "DOMElement",
186    feature = "DOMHTMLElement",
187    feature = "DOMNode",
188    feature = "DOMObject",
189    feature = "WebScriptObject"
190))]
191impl DOMHTMLBodyElement {
192    extern_methods!(
193        #[unsafe(method(new))]
194        #[unsafe(method_family = new)]
195        pub unsafe fn new() -> Retained<Self>;
196    );
197}