Skip to main content

web_sys/features/
gen_SvgfeDisplacementMapElement.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 = "SvgElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "SVGFEDisplacementMapElement",
14        typescript_type = "SVGFEDisplacementMapElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `SvgfeDisplacementMapElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
22    pub type SvgfeDisplacementMapElement;
23    #[cfg(feature = "SvgAnimatedString")]
24    #[wasm_bindgen(
25        method,
26        getter,
27        js_class = "SVGFEDisplacementMapElement",
28        js_name = "in1"
29    )]
30    #[doc = "Getter for the `in1` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in1)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"]
35    pub fn in1(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString;
36    #[cfg(feature = "SvgAnimatedString")]
37    #[wasm_bindgen(
38        method,
39        getter,
40        js_class = "SVGFEDisplacementMapElement",
41        js_name = "in2"
42    )]
43    #[doc = "Getter for the `in2` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in2)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"]
48    pub fn in2(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString;
49    #[cfg(feature = "SvgAnimatedNumber")]
50    #[wasm_bindgen(
51        method,
52        getter,
53        js_class = "SVGFEDisplacementMapElement",
54        js_name = "scale"
55    )]
56    #[doc = "Getter for the `scale` field of this object."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/scale)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDisplacementMapElement`*"]
61    pub fn scale(this: &SvgfeDisplacementMapElement) -> SvgAnimatedNumber;
62    #[cfg(feature = "SvgAnimatedEnumeration")]
63    #[wasm_bindgen(
64        method,
65        getter,
66        js_class = "SVGFEDisplacementMapElement",
67        js_name = "xChannelSelector"
68    )]
69    #[doc = "Getter for the `xChannelSelector` field of this object."]
70    #[doc = ""]
71    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)"]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"]
74    pub fn x_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration;
75    #[cfg(feature = "SvgAnimatedEnumeration")]
76    #[wasm_bindgen(
77        method,
78        getter,
79        js_class = "SVGFEDisplacementMapElement",
80        js_name = "yChannelSelector"
81    )]
82    #[doc = "Getter for the `yChannelSelector` field of this object."]
83    #[doc = ""]
84    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)"]
85    #[doc = ""]
86    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"]
87    pub fn y_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration;
88    #[cfg(feature = "SvgAnimatedLength")]
89    #[wasm_bindgen(
90        method,
91        getter,
92        js_class = "SVGFEDisplacementMapElement",
93        js_name = "x"
94    )]
95    #[doc = "Getter for the `x` field of this object."]
96    #[doc = ""]
97    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/x)"]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"]
100    pub fn x(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength;
101    #[cfg(feature = "SvgAnimatedLength")]
102    #[wasm_bindgen(
103        method,
104        getter,
105        js_class = "SVGFEDisplacementMapElement",
106        js_name = "y"
107    )]
108    #[doc = "Getter for the `y` field of this object."]
109    #[doc = ""]
110    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/y)"]
111    #[doc = ""]
112    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"]
113    pub fn y(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength;
114    #[cfg(feature = "SvgAnimatedLength")]
115    #[wasm_bindgen(
116        method,
117        getter,
118        js_class = "SVGFEDisplacementMapElement",
119        js_name = "width"
120    )]
121    #[doc = "Getter for the `width` field of this object."]
122    #[doc = ""]
123    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/width)"]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"]
126    pub fn width(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength;
127    #[cfg(feature = "SvgAnimatedLength")]
128    #[wasm_bindgen(
129        method,
130        getter,
131        js_class = "SVGFEDisplacementMapElement",
132        js_name = "height"
133    )]
134    #[doc = "Getter for the `height` field of this object."]
135    #[doc = ""]
136    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/height)"]
137    #[doc = ""]
138    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"]
139    pub fn height(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength;
140    #[cfg(feature = "SvgAnimatedString")]
141    #[wasm_bindgen(
142        method,
143        getter,
144        js_class = "SVGFEDisplacementMapElement",
145        js_name = "result"
146    )]
147    #[doc = "Getter for the `result` field of this object."]
148    #[doc = ""]
149    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/result)"]
150    #[doc = ""]
151    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"]
152    pub fn result(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString;
153}
154impl SvgfeDisplacementMapElement {
155    #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_UNKNOWN` const."]
156    #[doc = ""]
157    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
158    pub const SVG_CHANNEL_UNKNOWN: u16 = 0i64 as u16;
159    #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_R` const."]
160    #[doc = ""]
161    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
162    pub const SVG_CHANNEL_R: u16 = 1u64 as u16;
163    #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_G` const."]
164    #[doc = ""]
165    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
166    pub const SVG_CHANNEL_G: u16 = 2u64 as u16;
167    #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_B` const."]
168    #[doc = ""]
169    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
170    pub const SVG_CHANNEL_B: u16 = 3u64 as u16;
171    #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_A` const."]
172    #[doc = ""]
173    #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"]
174    pub const SVG_CHANNEL_A: u16 = 4u64 as u16;
175}