maxcountryman_web_sys/features/
gen_SvgMaskElement.rs

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