web_sys/features/
gen_HtmlFrameElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "HtmlElement",
9 extends = "Element",
10 extends = "Node",
11 extends = "EventTarget",
12 extends = "::js_sys::Object",
13 js_name = "HTMLFrameElement",
14 typescript_type = "HTMLFrameElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `HtmlFrameElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
22 pub type HtmlFrameElement;
23 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "name")]
24 #[doc = "Getter for the `name` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
29 pub fn name(this: &HtmlFrameElement) -> ::alloc::string::String;
30 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "name")]
31 #[doc = "Setter for the `name` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
36 pub fn set_name(this: &HtmlFrameElement, value: &str);
37 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "scrolling")]
38 #[doc = "Getter for the `scrolling` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
43 pub fn scrolling(this: &HtmlFrameElement) -> ::alloc::string::String;
44 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "scrolling")]
45 #[doc = "Setter for the `scrolling` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
50 pub fn set_scrolling(this: &HtmlFrameElement, value: &str);
51 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "src")]
52 #[doc = "Getter for the `src` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
57 pub fn src(this: &HtmlFrameElement) -> ::alloc::string::String;
58 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "src")]
59 #[doc = "Setter for the `src` field of this object."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
64 pub fn set_src(this: &HtmlFrameElement, value: &str);
65 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "frameBorder")]
66 #[doc = "Getter for the `frameBorder` field of this object."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
71 pub fn frame_border(this: &HtmlFrameElement) -> ::alloc::string::String;
72 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "frameBorder")]
73 #[doc = "Setter for the `frameBorder` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
78 pub fn set_frame_border(this: &HtmlFrameElement, value: &str);
79 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "longDesc")]
80 #[doc = "Getter for the `longDesc` field of this object."]
81 #[doc = ""]
82 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"]
83 #[doc = ""]
84 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
85 pub fn long_desc(this: &HtmlFrameElement) -> ::alloc::string::String;
86 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "longDesc")]
87 #[doc = "Setter for the `longDesc` field of this object."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
92 pub fn set_long_desc(this: &HtmlFrameElement, value: &str);
93 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "noResize")]
94 #[doc = "Getter for the `noResize` field of this object."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
99 pub fn no_resize(this: &HtmlFrameElement) -> bool;
100 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "noResize")]
101 #[doc = "Setter for the `noResize` field of this object."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
106 pub fn set_no_resize(this: &HtmlFrameElement, value: bool);
107 #[cfg(feature = "Document")]
108 #[wasm_bindgen(
109 method,
110 getter,
111 js_class = "HTMLFrameElement",
112 js_name = "contentDocument"
113 )]
114 #[doc = "Getter for the `contentDocument` field of this object."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentDocument)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlFrameElement`*"]
119 pub fn content_document(this: &HtmlFrameElement) -> Option<Document>;
120 #[cfg(feature = "Window")]
121 #[wasm_bindgen(
122 method,
123 getter,
124 js_class = "HTMLFrameElement",
125 js_name = "contentWindow"
126 )]
127 #[doc = "Getter for the `contentWindow` field of this object."]
128 #[doc = ""]
129 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentWindow)"]
130 #[doc = ""]
131 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`, `Window`*"]
132 pub fn content_window(this: &HtmlFrameElement) -> Option<Window>;
133 #[wasm_bindgen(
134 method,
135 getter,
136 js_class = "HTMLFrameElement",
137 js_name = "marginHeight"
138 )]
139 #[doc = "Getter for the `marginHeight` field of this object."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
144 pub fn margin_height(this: &HtmlFrameElement) -> ::alloc::string::String;
145 #[wasm_bindgen(
146 method,
147 setter,
148 js_class = "HTMLFrameElement",
149 js_name = "marginHeight"
150 )]
151 #[doc = "Setter for the `marginHeight` field of this object."]
152 #[doc = ""]
153 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"]
154 #[doc = ""]
155 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
156 pub fn set_margin_height(this: &HtmlFrameElement, value: &str);
157 #[wasm_bindgen(method, getter, js_class = "HTMLFrameElement", js_name = "marginWidth")]
158 #[doc = "Getter for the `marginWidth` field of this object."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
163 pub fn margin_width(this: &HtmlFrameElement) -> ::alloc::string::String;
164 #[wasm_bindgen(method, setter, js_class = "HTMLFrameElement", js_name = "marginWidth")]
165 #[doc = "Setter for the `marginWidth` field of this object."]
166 #[doc = ""]
167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"]
168 #[doc = ""]
169 #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"]
170 pub fn set_margin_width(this: &HtmlFrameElement, value: &str);
171}