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