Skip to main content

web_sys/features/
gen_SvgAngle.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "SVGAngle",
10        typescript_type = "SVGAngle"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `SvgAngle` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
18    pub type SvgAngle;
19    #[wasm_bindgen(method, getter, js_class = "SVGAngle", js_name = "unitType")]
20    #[doc = "Getter for the `unitType` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/unitType)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
25    pub fn unit_type(this: &SvgAngle) -> u16;
26    #[wasm_bindgen(method, getter, js_class = "SVGAngle", js_name = "value")]
27    #[doc = "Getter for the `value` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
32    pub fn value(this: &SvgAngle) -> f32;
33    #[wasm_bindgen(method, setter, js_class = "SVGAngle", js_name = "value")]
34    #[doc = "Setter for the `value` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
39    pub fn set_value(this: &SvgAngle, value: f32);
40    #[wasm_bindgen(
41        method,
42        getter,
43        js_class = "SVGAngle",
44        js_name = "valueInSpecifiedUnits"
45    )]
46    #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
51    pub fn value_in_specified_units(this: &SvgAngle) -> f32;
52    #[wasm_bindgen(
53        method,
54        setter,
55        js_class = "SVGAngle",
56        js_name = "valueInSpecifiedUnits"
57    )]
58    #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
63    pub fn set_value_in_specified_units(this: &SvgAngle, value: f32);
64    #[wasm_bindgen(method, getter, js_class = "SVGAngle", js_name = "valueAsString")]
65    #[doc = "Getter for the `valueAsString` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
70    pub fn value_as_string(this: &SvgAngle) -> ::alloc::string::String;
71    #[wasm_bindgen(method, setter, js_class = "SVGAngle", js_name = "valueAsString")]
72    #[doc = "Setter for the `valueAsString` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
77    pub fn set_value_as_string(this: &SvgAngle, value: &str);
78    #[wasm_bindgen(
79        catch,
80        method,
81        js_class = "SVGAngle",
82        js_name = "convertToSpecifiedUnits"
83    )]
84    #[doc = "The `convertToSpecifiedUnits()` method."]
85    #[doc = ""]
86    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/convertToSpecifiedUnits)"]
87    #[doc = ""]
88    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
89    pub fn convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>;
90    #[wasm_bindgen(
91        catch,
92        method,
93        js_class = "SVGAngle",
94        js_name = "newValueSpecifiedUnits"
95    )]
96    #[doc = "The `newValueSpecifiedUnits()` method."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/newValueSpecifiedUnits)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
101    pub fn new_value_specified_units(
102        this: &SvgAngle,
103        unit_type: u16,
104        value_in_specified_units: f32,
105    ) -> Result<(), JsValue>;
106}
107impl SvgAngle {
108    #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNKNOWN` const."]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
111    pub const SVG_ANGLETYPE_UNKNOWN: u16 = 0i64 as u16;
112    #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNSPECIFIED` const."]
113    #[doc = ""]
114    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
115    pub const SVG_ANGLETYPE_UNSPECIFIED: u16 = 1u64 as u16;
116    #[doc = "The `SVGAngle.SVG_ANGLETYPE_DEG` const."]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
119    pub const SVG_ANGLETYPE_DEG: u16 = 2u64 as u16;
120    #[doc = "The `SVGAngle.SVG_ANGLETYPE_RAD` const."]
121    #[doc = ""]
122    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
123    pub const SVG_ANGLETYPE_RAD: u16 = 3u64 as u16;
124    #[doc = "The `SVGAngle.SVG_ANGLETYPE_GRAD` const."]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
127    pub const SVG_ANGLETYPE_GRAD: u16 = 4u64 as u16;
128}