objc2_web_kit/generated/
DOMHTMLFrameElement.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/domhtmlframeelement?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 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        /// Setter for [`frameBorder`][Self::frameBorder].
92        #[deprecated]
93        #[unsafe(method(setFrameBorder:))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn setFrameBorder(&self, frame_border: Option<&NSString>);
96
97        #[deprecated]
98        #[unsafe(method(longDesc))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn longDesc(&self) -> Retained<NSString>;
101
102        /// Setter for [`longDesc`][Self::longDesc].
103        #[deprecated]
104        #[unsafe(method(setLongDesc:))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn setLongDesc(&self, long_desc: Option<&NSString>);
107
108        #[deprecated]
109        #[unsafe(method(marginHeight))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn marginHeight(&self) -> Retained<NSString>;
112
113        /// Setter for [`marginHeight`][Self::marginHeight].
114        #[deprecated]
115        #[unsafe(method(setMarginHeight:))]
116        #[unsafe(method_family = none)]
117        pub unsafe fn setMarginHeight(&self, margin_height: Option<&NSString>);
118
119        #[deprecated]
120        #[unsafe(method(marginWidth))]
121        #[unsafe(method_family = none)]
122        pub unsafe fn marginWidth(&self) -> Retained<NSString>;
123
124        /// Setter for [`marginWidth`][Self::marginWidth].
125        #[deprecated]
126        #[unsafe(method(setMarginWidth:))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn setMarginWidth(&self, margin_width: Option<&NSString>);
129
130        #[deprecated]
131        #[unsafe(method(name))]
132        #[unsafe(method_family = none)]
133        pub unsafe fn name(&self) -> Retained<NSString>;
134
135        /// Setter for [`name`][Self::name].
136        #[deprecated]
137        #[unsafe(method(setName:))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn setName(&self, name: Option<&NSString>);
140
141        #[deprecated]
142        #[unsafe(method(noResize))]
143        #[unsafe(method_family = none)]
144        pub unsafe fn noResize(&self) -> bool;
145
146        /// Setter for [`noResize`][Self::noResize].
147        #[deprecated]
148        #[unsafe(method(setNoResize:))]
149        #[unsafe(method_family = none)]
150        pub unsafe fn setNoResize(&self, no_resize: bool);
151
152        #[deprecated]
153        #[unsafe(method(scrolling))]
154        #[unsafe(method_family = none)]
155        pub unsafe fn scrolling(&self) -> Retained<NSString>;
156
157        /// Setter for [`scrolling`][Self::scrolling].
158        #[deprecated]
159        #[unsafe(method(setScrolling:))]
160        #[unsafe(method_family = none)]
161        pub unsafe fn setScrolling(&self, scrolling: Option<&NSString>);
162
163        #[deprecated]
164        #[unsafe(method(src))]
165        #[unsafe(method_family = none)]
166        pub unsafe fn src(&self) -> Retained<NSString>;
167
168        /// Setter for [`src`][Self::src].
169        #[deprecated]
170        #[unsafe(method(setSrc:))]
171        #[unsafe(method_family = none)]
172        pub unsafe fn setSrc(&self, src: Option<&NSString>);
173
174        #[cfg(feature = "DOMDocument")]
175        #[deprecated]
176        #[unsafe(method(contentDocument))]
177        #[unsafe(method_family = none)]
178        pub unsafe fn contentDocument(&self) -> Option<Retained<DOMDocument>>;
179
180        #[cfg(feature = "DOMAbstractView")]
181        #[unsafe(method(contentWindow))]
182        #[unsafe(method_family = none)]
183        pub unsafe fn contentWindow(&self) -> Option<Retained<DOMAbstractView>>;
184
185        #[unsafe(method(location))]
186        #[unsafe(method_family = none)]
187        pub unsafe fn location(&self) -> Retained<NSString>;
188
189        /// Setter for [`location`][Self::location].
190        #[unsafe(method(setLocation:))]
191        #[unsafe(method_family = none)]
192        pub unsafe fn setLocation(&self, location: Option<&NSString>);
193
194        #[unsafe(method(width))]
195        #[unsafe(method_family = none)]
196        pub unsafe fn width(&self) -> c_int;
197
198        #[unsafe(method(height))]
199        #[unsafe(method_family = none)]
200        pub unsafe fn height(&self) -> c_int;
201    );
202}
203
204/// Methods declared on superclass `DOMObject`.
205#[cfg(all(
206    feature = "DOMElement",
207    feature = "DOMHTMLElement",
208    feature = "DOMNode",
209    feature = "DOMObject",
210    feature = "WebScriptObject"
211))]
212impl DOMHTMLFrameElement {
213    extern_methods!(
214        #[deprecated]
215        #[unsafe(method(init))]
216        #[unsafe(method_family = init)]
217        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
218    );
219}
220
221/// Methods declared on superclass `NSObject`.
222#[cfg(all(
223    feature = "DOMElement",
224    feature = "DOMHTMLElement",
225    feature = "DOMNode",
226    feature = "DOMObject",
227    feature = "WebScriptObject"
228))]
229impl DOMHTMLFrameElement {
230    extern_methods!(
231        #[unsafe(method(new))]
232        #[unsafe(method_family = new)]
233        pub unsafe fn new() -> Retained<Self>;
234    );
235}