maxcountryman_web_sys/features/
gen_SvgRect.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SVGRect , typescript_type = "SVGRect")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SvgRect` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
13 pub type SvgRect;
14 # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = x)]
15 #[doc = "Getter for the `x` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
20 pub fn x(this: &SvgRect) -> f32;
21 # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = x)]
22 #[doc = "Setter for the `x` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
27 pub fn set_x(this: &SvgRect, value: f32);
28 # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = y)]
29 #[doc = "Getter for the `y` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
34 pub fn y(this: &SvgRect) -> f32;
35 # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = y)]
36 #[doc = "Setter for the `y` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
41 pub fn set_y(this: &SvgRect, value: f32);
42 # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = width)]
43 #[doc = "Getter for the `width` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
48 pub fn width(this: &SvgRect) -> f32;
49 # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = width)]
50 #[doc = "Setter for the `width` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
55 pub fn set_width(this: &SvgRect, value: f32);
56 # [wasm_bindgen (structural , method , getter , js_class = "SVGRect" , js_name = height)]
57 #[doc = "Getter for the `height` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
62 pub fn height(this: &SvgRect) -> f32;
63 # [wasm_bindgen (structural , method , setter , js_class = "SVGRect" , js_name = height)]
64 #[doc = "Setter for the `height` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"]
69 pub fn set_height(this: &SvgRect, value: f32);
70}