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