web_sys/features/
gen_SvgMaskElement.rs1#![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 = SVGMaskElement , typescript_type = "SVGMaskElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgMaskElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
14 pub type SvgMaskElement;
15 #[cfg(feature = "SvgAnimatedEnumeration")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskUnits)]
17 #[doc = "Getter for the `maskUnits` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskUnits)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"]
22 pub fn mask_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration;
23 #[cfg(feature = "SvgAnimatedEnumeration")]
24 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = maskContentUnits)]
25 #[doc = "Getter for the `maskContentUnits` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskContentUnits)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"]
30 pub fn mask_content_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration;
31 #[cfg(feature = "SvgAnimatedLength")]
32 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = x)]
33 #[doc = "Getter for the `x` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/x)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
38 pub fn x(this: &SvgMaskElement) -> SvgAnimatedLength;
39 #[cfg(feature = "SvgAnimatedLength")]
40 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = y)]
41 #[doc = "Getter for the `y` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/y)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
46 pub fn y(this: &SvgMaskElement) -> SvgAnimatedLength;
47 #[cfg(feature = "SvgAnimatedLength")]
48 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = width)]
49 #[doc = "Getter for the `width` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/width)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
54 pub fn width(this: &SvgMaskElement) -> SvgAnimatedLength;
55 #[cfg(feature = "SvgAnimatedLength")]
56 # [wasm_bindgen (structural , method , getter , js_class = "SVGMaskElement" , js_name = height)]
57 #[doc = "Getter for the `height` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/height)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
62 pub fn height(this: &SvgMaskElement) -> SvgAnimatedLength;
63}
64impl SvgMaskElement {
65 #[doc = "The `SVGMaskElement.SVG_MASKTYPE_LUMINANCE` const."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
68 pub const SVG_MASKTYPE_LUMINANCE: u16 = 0i64 as u16;
69 #[doc = "The `SVGMaskElement.SVG_MASKTYPE_ALPHA` const."]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
72 pub const SVG_MASKTYPE_ALPHA: u16 = 1u64 as u16;
73}