objc2_web_kit/generated/
DOMHTMLBodyElement.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 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))]
40unsafe impl DOMEventTarget for DOMHTMLBodyElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLBodyElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLBodyElement {
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 DOMHTMLBodyElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLBodyElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(aLink))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn aLink(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setALink:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setALink(&self, a_link: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(background))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn background(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setBackground:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setBackground(&self, background: Option<&NSString>);
101
102 #[deprecated]
103 #[unsafe(method(bgColor))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn bgColor(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setBgColor:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
112
113 #[deprecated]
114 #[unsafe(method(link))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn link(&self) -> Retained<NSString>;
117
118 #[deprecated]
120 #[unsafe(method(setLink:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setLink(&self, link: Option<&NSString>);
123
124 #[deprecated]
125 #[unsafe(method(text))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn text(&self) -> Retained<NSString>;
128
129 #[deprecated]
131 #[unsafe(method(setText:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setText(&self, text: Option<&NSString>);
134
135 #[deprecated]
136 #[unsafe(method(vLink))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn vLink(&self) -> Retained<NSString>;
139
140 #[deprecated]
142 #[unsafe(method(setVLink:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setVLink(&self, v_link: Option<&NSString>);
145 );
146}
147
148#[cfg(all(
150 feature = "DOMElement",
151 feature = "DOMHTMLElement",
152 feature = "DOMNode",
153 feature = "DOMObject",
154 feature = "WebScriptObject"
155))]
156impl DOMHTMLBodyElement {
157 extern_methods!(
158 #[deprecated]
159 #[unsafe(method(init))]
160 #[unsafe(method_family = init)]
161 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
162 );
163}
164
165#[cfg(all(
167 feature = "DOMElement",
168 feature = "DOMHTMLElement",
169 feature = "DOMNode",
170 feature = "DOMObject",
171 feature = "WebScriptObject"
172))]
173impl DOMHTMLBodyElement {
174 extern_methods!(
175 #[unsafe(method(new))]
176 #[unsafe(method_family = new)]
177 pub unsafe fn new() -> Retained<Self>;
178 );
179}