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