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