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