objc2_web_kit/generated/
DOMHTMLIFrameElement.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 DOMHTMLIFrameElement;
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 DOMHTMLIFrameElement {}
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 DOMHTMLIFrameElement {}
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 DOMHTMLIFrameElement {
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 DOMHTMLIFrameElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLIFrameElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(align))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn align(&self) -> Retained<NSString>;
90
91 #[deprecated]
95 #[unsafe(method(setAlign:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn setAlign(&self, align: Option<&NSString>);
98
99 #[deprecated]
100 #[unsafe(method(frameBorder))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn frameBorder(&self) -> Retained<NSString>;
103
104 #[deprecated]
108 #[unsafe(method(setFrameBorder:))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn setFrameBorder(&self, frame_border: Option<&NSString>);
111
112 #[deprecated]
113 #[unsafe(method(height))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn height(&self) -> Retained<NSString>;
116
117 #[deprecated]
121 #[unsafe(method(setHeight:))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn setHeight(&self, height: Option<&NSString>);
124
125 #[deprecated]
126 #[unsafe(method(longDesc))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn longDesc(&self) -> Retained<NSString>;
129
130 #[deprecated]
134 #[unsafe(method(setLongDesc:))]
135 #[unsafe(method_family = none)]
136 pub unsafe fn setLongDesc(&self, long_desc: Option<&NSString>);
137
138 #[deprecated]
139 #[unsafe(method(marginHeight))]
140 #[unsafe(method_family = none)]
141 pub unsafe fn marginHeight(&self) -> Retained<NSString>;
142
143 #[deprecated]
147 #[unsafe(method(setMarginHeight:))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn setMarginHeight(&self, margin_height: Option<&NSString>);
150
151 #[deprecated]
152 #[unsafe(method(marginWidth))]
153 #[unsafe(method_family = none)]
154 pub unsafe fn marginWidth(&self) -> Retained<NSString>;
155
156 #[deprecated]
160 #[unsafe(method(setMarginWidth:))]
161 #[unsafe(method_family = none)]
162 pub unsafe fn setMarginWidth(&self, margin_width: Option<&NSString>);
163
164 #[deprecated]
165 #[unsafe(method(name))]
166 #[unsafe(method_family = none)]
167 pub unsafe fn name(&self) -> Retained<NSString>;
168
169 #[deprecated]
173 #[unsafe(method(setName:))]
174 #[unsafe(method_family = none)]
175 pub unsafe fn setName(&self, name: Option<&NSString>);
176
177 #[deprecated]
178 #[unsafe(method(scrolling))]
179 #[unsafe(method_family = none)]
180 pub unsafe fn scrolling(&self) -> Retained<NSString>;
181
182 #[deprecated]
186 #[unsafe(method(setScrolling:))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn setScrolling(&self, scrolling: Option<&NSString>);
189
190 #[deprecated]
191 #[unsafe(method(src))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn src(&self) -> Retained<NSString>;
194
195 #[deprecated]
199 #[unsafe(method(setSrc:))]
200 #[unsafe(method_family = none)]
201 pub unsafe fn setSrc(&self, src: Option<&NSString>);
202
203 #[deprecated]
204 #[unsafe(method(width))]
205 #[unsafe(method_family = none)]
206 pub unsafe fn width(&self) -> Retained<NSString>;
207
208 #[deprecated]
212 #[unsafe(method(setWidth:))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn setWidth(&self, width: Option<&NSString>);
215
216 #[cfg(feature = "DOMDocument")]
217 #[deprecated]
218 #[unsafe(method(contentDocument))]
219 #[unsafe(method_family = none)]
220 pub unsafe fn contentDocument(&self) -> Option<Retained<DOMDocument>>;
221
222 #[cfg(feature = "DOMAbstractView")]
223 #[unsafe(method(contentWindow))]
224 #[unsafe(method_family = none)]
225 pub unsafe fn contentWindow(&self) -> Option<Retained<DOMAbstractView>>;
226 );
227}
228
229#[cfg(all(
231 feature = "DOMElement",
232 feature = "DOMHTMLElement",
233 feature = "DOMNode",
234 feature = "DOMObject",
235 feature = "WebScriptObject"
236))]
237impl DOMHTMLIFrameElement {
238 extern_methods!(
239 #[deprecated]
240 #[unsafe(method(init))]
241 #[unsafe(method_family = init)]
242 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
243 );
244}
245
246#[cfg(all(
248 feature = "DOMElement",
249 feature = "DOMHTMLElement",
250 feature = "DOMNode",
251 feature = "DOMObject",
252 feature = "WebScriptObject"
253))]
254impl DOMHTMLIFrameElement {
255 extern_methods!(
256 #[unsafe(method(new))]
257 #[unsafe(method_family = new)]
258 pub unsafe fn new() -> Retained<Self>;
259 );
260}