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))]
40unsafe impl DOMEventTarget for DOMHTMLIFrameElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLIFrameElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLIFrameElement {
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 DOMHTMLIFrameElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLIFrameElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(align))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn align(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setAlign:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setAlign(&self, align: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(frameBorder))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn frameBorder(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setFrameBorder:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setFrameBorder(&self, frame_border: Option<&NSString>);
101
102 #[deprecated]
103 #[unsafe(method(height))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn height(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setHeight:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setHeight(&self, height: Option<&NSString>);
112
113 #[deprecated]
114 #[unsafe(method(longDesc))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn longDesc(&self) -> Retained<NSString>;
117
118 #[deprecated]
120 #[unsafe(method(setLongDesc:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setLongDesc(&self, long_desc: Option<&NSString>);
123
124 #[deprecated]
125 #[unsafe(method(marginHeight))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn marginHeight(&self) -> Retained<NSString>;
128
129 #[deprecated]
131 #[unsafe(method(setMarginHeight:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setMarginHeight(&self, margin_height: Option<&NSString>);
134
135 #[deprecated]
136 #[unsafe(method(marginWidth))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn marginWidth(&self) -> Retained<NSString>;
139
140 #[deprecated]
142 #[unsafe(method(setMarginWidth:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setMarginWidth(&self, margin_width: Option<&NSString>);
145
146 #[deprecated]
147 #[unsafe(method(name))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn name(&self) -> Retained<NSString>;
150
151 #[deprecated]
153 #[unsafe(method(setName:))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn setName(&self, name: Option<&NSString>);
156
157 #[deprecated]
158 #[unsafe(method(scrolling))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn scrolling(&self) -> Retained<NSString>;
161
162 #[deprecated]
164 #[unsafe(method(setScrolling:))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn setScrolling(&self, scrolling: Option<&NSString>);
167
168 #[deprecated]
169 #[unsafe(method(src))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn src(&self) -> Retained<NSString>;
172
173 #[deprecated]
175 #[unsafe(method(setSrc:))]
176 #[unsafe(method_family = none)]
177 pub unsafe fn setSrc(&self, src: Option<&NSString>);
178
179 #[deprecated]
180 #[unsafe(method(width))]
181 #[unsafe(method_family = none)]
182 pub unsafe fn width(&self) -> Retained<NSString>;
183
184 #[deprecated]
186 #[unsafe(method(setWidth:))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn setWidth(&self, width: Option<&NSString>);
189
190 #[cfg(feature = "DOMDocument")]
191 #[deprecated]
192 #[unsafe(method(contentDocument))]
193 #[unsafe(method_family = none)]
194 pub unsafe fn contentDocument(&self) -> Option<Retained<DOMDocument>>;
195
196 #[cfg(feature = "DOMAbstractView")]
197 #[unsafe(method(contentWindow))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn contentWindow(&self) -> Option<Retained<DOMAbstractView>>;
200 );
201}
202
203#[cfg(all(
205 feature = "DOMElement",
206 feature = "DOMHTMLElement",
207 feature = "DOMNode",
208 feature = "DOMObject",
209 feature = "WebScriptObject"
210))]
211impl DOMHTMLIFrameElement {
212 extern_methods!(
213 #[deprecated]
214 #[unsafe(method(init))]
215 #[unsafe(method_family = init)]
216 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
217 );
218}
219
220#[cfg(all(
222 feature = "DOMElement",
223 feature = "DOMHTMLElement",
224 feature = "DOMNode",
225 feature = "DOMObject",
226 feature = "WebScriptObject"
227))]
228impl DOMHTMLIFrameElement {
229 extern_methods!(
230 #[unsafe(method(new))]
231 #[unsafe(method_family = new)]
232 pub unsafe fn new() -> Retained<Self>;
233 );
234}