web_sys/features/
gen_SvgGradientElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGradientElement , typescript_type = "SVGGradientElement")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SvgGradientElement` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"]
14    pub type SvgGradientElement;
15    #[cfg(feature = "SvgAnimatedEnumeration")]
16    # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientUnits)]
17    #[doc = "Getter for the `gradientUnits` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientUnits)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"]
22    pub fn gradient_units(this: &SvgGradientElement) -> SvgAnimatedEnumeration;
23    #[cfg(feature = "SvgAnimatedTransformList")]
24    # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientTransform)]
25    #[doc = "Getter for the `gradientTransform` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientTransform)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGradientElement`*"]
30    pub fn gradient_transform(this: &SvgGradientElement) -> SvgAnimatedTransformList;
31    #[cfg(feature = "SvgAnimatedEnumeration")]
32    # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = spreadMethod)]
33    #[doc = "Getter for the `spreadMethod` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/spreadMethod)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"]
38    pub fn spread_method(this: &SvgGradientElement) -> SvgAnimatedEnumeration;
39    #[cfg(feature = "SvgAnimatedString")]
40    # [wasm_bindgen (structural , method , getter , js_class = "SVGGradientElement" , js_name = href)]
41    #[doc = "Getter for the `href` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/href)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgGradientElement`*"]
46    pub fn href(this: &SvgGradientElement) -> SvgAnimatedString;
47}
48impl SvgGradientElement {
49    #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_UNKNOWN` const."]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"]
52    pub const SVG_SPREADMETHOD_UNKNOWN: u16 = 0i64 as u16;
53    #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_PAD` const."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"]
56    pub const SVG_SPREADMETHOD_PAD: u16 = 1u64 as u16;
57    #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REFLECT` const."]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"]
60    pub const SVG_SPREADMETHOD_REFLECT: u16 = 2u64 as u16;
61    #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REPEAT` const."]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"]
64    pub const SVG_SPREADMETHOD_REPEAT: u16 = 3u64 as u16;
65}